CoreDump not providing enough info
Posted: Fri Apr 19, 2019 1:53 am
hey everyone,
For some reason the coredump utility is providing me with nearly no info.
It either just says that a brownout procured or that it couldn't access some memory region or some other random info.
I had a look at kolbans book and in it he gets the exact line at which the error occured.
I cloned the esp-idf template and made the following changes to menuconfig:
component config ->ESP32-specific -> panic handler behaviour - > Print registers and halt
and component config->coredump -> Data destination: UART, Maximum number of tasks:64, delay before print to uart: 0:
After this I added this line to the code:
memcpy((void*)0x2000000, "VOPS", 4);
And it generates the following current thread stack:
==================== CURRENT THREAD STACK =====================
#0 esp_ipc_call_and_wait (cpu_id=33554432, func=0x1, arg=0x1, wait_for=IPC_WAIT_FOR_END) at /home/user/esp/esp-idf/components/esp32/ipc.c:107
#1 0x400d0e6d in _stext ()
#2 0x4008ded4 in rtc_clk_slow_freq_set (slow_freq=(unknown: 1074597384)) at /home/user/esp/esp-idf/components/soc/esp32/rtc_clk.c:251
The command I run to produce this is :
python ~/Desktop/esp32/esp-idf/components/espcoredump/espcoredump.py info_corefile -d 3 -t b64 -c ~/Desktop/dump.txt ~/Desktop/esp-idf-template/build/app-template.elf
I've tried a lot of variants of producing core dumps and each provides nearly no info in where the error exactly occurred.
Does anyone know what I might be doing incorrectly?
Any help will really be appreciated as debugging coredumps at this point has been very difficult
For some reason the coredump utility is providing me with nearly no info.
It either just says that a brownout procured or that it couldn't access some memory region or some other random info.
I had a look at kolbans book and in it he gets the exact line at which the error occured.
I cloned the esp-idf template and made the following changes to menuconfig:
component config ->ESP32-specific -> panic handler behaviour - > Print registers and halt
and component config->coredump -> Data destination: UART, Maximum number of tasks:64, delay before print to uart: 0:
After this I added this line to the code:
memcpy((void*)0x2000000, "VOPS", 4);
And it generates the following current thread stack:
==================== CURRENT THREAD STACK =====================
#0 esp_ipc_call_and_wait (cpu_id=33554432, func=0x1, arg=0x1, wait_for=IPC_WAIT_FOR_END) at /home/user/esp/esp-idf/components/esp32/ipc.c:107
#1 0x400d0e6d in _stext ()
#2 0x4008ded4 in rtc_clk_slow_freq_set (slow_freq=(unknown: 1074597384)) at /home/user/esp/esp-idf/components/soc/esp32/rtc_clk.c:251
The command I run to produce this is :
python ~/Desktop/esp32/esp-idf/components/espcoredump/espcoredump.py info_corefile -d 3 -t b64 -c ~/Desktop/dump.txt ~/Desktop/esp-idf-template/build/app-template.elf
I've tried a lot of variants of producing core dumps and each provides nearly no info in where the error exactly occurred.
Does anyone know what I might be doing incorrectly?
Any help will really be appreciated as debugging coredumps at this point has been very difficult