The issue I observed is, heap memory free space is getting decreased during application execution and when heap memory is around 500 bytes, ESP32-S3 goes in to unidentified state where BLE and GPIO wake up are also not working. Only it starts working once power is reset.
I checked free heap memory using function 'xPortGetFreeHeapSize' during program execution.
I have enabled task watchdog and panic handler invoked on task watchdog timeout.
I have also checked without initializing BLE. I am facing same issue.
Can anyone elaborate on this issue?
I am working on ESP32-S3-Mini-1-N8 module. I am using GATT server example. In this application,
Initialization for timer is as follows: / GPtimer 2 - 10ms / gptimer2 = NULL; QueueHandle_t Timer_queue2 = xQueueCreate(10, sizeof(example_queue_element_t)); if (!Timer_queue2) { return; } gptimer_config_t timer_config2 = { .clk_src = GPTIMER_CLK_SRC_DEFAULT, .direction = GPTIMER_COUNT_UP, .resolution_hz = 1000000, // 1MHz, 1 tick=1us }; ESP_ERROR_CHECK(gptimer_new_timer(&timer_config2, &gptimer2));
The issue I observed is, heap memory free space is getting decreased during application execution and when heap memory is around 500 bytes, ESP32-S3 goes in to unidentified state where BLE and GPIO wake up are also not working. Only it starts working once power is reset. I checked free heap memory using function 'xPortGetFreeHeapSize' during program execution. I have enabled task watchdog and panic handler invoked on task watchdog timeout. I have also checked without initializing BLE. I am facing same issue. Can anyone elaborate on this issue?
Thanks