I have written a simple program using amazon freertos. I am using ESP32-WROOM-32UE module. If I use vTaskDelay in the app_main function, the ESP32 restarts. But if I use 9 or less than 9 value in the vTaskDelay, it works.
My question is, why esp32 restarts if I use more than 9ms delay in the app_main function?
My Code:
Code: Select all
int app_main(void)
{
printf("Hello World \r\n");
prvMiscInitialization();
config_gpio();
display_task_create();
while(1){
vTaskDelay(100 / portTICK_PERIOD_MS);
}
return 0;
}
Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception)
Debug exception reason: BREAK instr
Core 0 register dump:
PC : 0x40081258 PS : 0x00000016 A0 : 0x40080306 A1 : 0x3ffc01b0