-
Notifications
You must be signed in to change notification settings - Fork 7.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vTaskDelay in a global constructor causes: Guru Meditation Error: Core 0 panic'ed (LoadProhibited). (IDFGH-13727) #14596
Comments
Hi @mmirad, It maybe possible that the constructor is called even before the scheduler has started. This would mean that several kernel objects may not have been created yet and it could result in the error that you see. Could you provide some information about where or how is the constructor getting called in your application? |
Here is a small sample of my code with the parts that affect this.
Just remember that the same code for version 4.3 works correctly, what could be the reason? |
@mmirad Thanks for the code snippet. The issue arrises because the |
Thanks for your answers. Yes, or just avoid vTaskDelay() in the constructor. But my concern for asking this question was that there was something a bit more painful that was causing this. And I wasn't seeing it. Well, I was also curious as to why it was working in version 4.3. |
Add some extra logs v5.3 (without vTaskDelay on ADC constructor, if not crash): logs v4.3 (with vTaskDelay on ADC constructor): |
Not using |
Answers checklist.
IDF version.
v5.3 and
v5.3.1-244-g4d0db7045d
Espressif SoC revision.
ESP32-WROVER (With ESP_PROG)
Operating System used.
Windows
How did you build your project?
Eclipse IDE
If you are using Windows, please specify command line type.
None
Development Kit.
Power Supply used.
USB
What is the expected behavior?
Call the constructor in the global region and continues with the program
What is the actual behavior?
The device is continuous restarting:
Guru Meditation Error: Core 0 panic'ed (LoadProhibited). Exception was unhandled.
Steps to reproduce.
Debugger stops on before crash:
Debug Logs.
More Information.
No response
The text was updated successfully, but these errors were encountered: