Closed samuelbles07 closed 3 years ago
I check free heap size before calling SecureSocketsTransport_Connect
using esp_get_free_heap_size
is 239564 bytes.
And sometimes the debug showing:
Guru Meditation Error: Core 0 panic'ed (LoadStoreAlignment). Exception was unhandled.
Core 0 register dump:
PC : 0x4008b018 PS : 0x00060533 A0 : 0x80081710 A1 : 0x3ffb6420
0x4008b018: is_free at /Users/inventory-1/tools/amazon-freertos/vendors/espressif/esp-idf/components/heap/multi_heap.c:138
(inlined by) multi_heap_malloc_impl at /Users/inventory-1/tools/amazon-freertos/vendors/espressif/esp-idf/components/heap/multi_heap.c:439
I wonder if it's something?
@samuelbles07
Did you reconfigure stack size of main task? Default value is 3584 bytes, configured using CONFIG_ESP_MAIN_TASK_STACK_SIZE
which may not be sufficient for TLS operation. I recommend increasing this to at-least 6-7KB and then fine tune it based on high water mark (usage).
Hi @mahavirj ,
No, i don't configure anything of that scope. Where do i change it, from menuconfig
?
No, i don't configure anything of that scope. Where do i change it, from menuconfig?
idf.py menuconfig → Component config → Common ESP-related → Main task stack size
Alternatively, you may create new task to start your demo application code.
Yes that is the problem, thank you!
Hi,
My case is i am using amazon-freertos as submodule, and currently i want to integrate coreMQTT
mqtt_demo_mutual_auth
from demo directory to my main project. Everything in the main code is basically from the demo code, from wifi and mqtt. But when the code start executeSecureSocketsTransport_Connect()
, multi_heap is called. Below is the log.I don't know what happen, please help.
Thank you!