A querry regarding backtrace in ESP IDF 5.0.7
Posted: Fri Mar 28, 2025 7:12 am
Subject : A querry regarding backtrace in ESP IDF 5.0.7
Hello,
I am using ESP32-D0WDQ6 module and ESP-IDF version 5.0.7
I need to know that how to print the Backtrace information with Filename and line number as shown in,
https://docs.espressif.com/projects/esp ... debug.html
As this shows
2 allocations trace (100 entry buffer)
32 bytes (@ 0x3ffaf214) allocated CPU 0 ccount 0x2e9b7384 caller 0x400d276d:0x400d27c1
0x400d276d: leak_some_memory at /path/to/idf/examples/get-started/blink/main/./blink.c:27
0x400d27c1: blink_task at /path/to/idf/examples/get-started/blink/main/./blink.c:52
8 bytes (@ 0x3ffaf804) allocated CPU 0 ccount 0x2e9b79c0 caller 0x400d2776:0x400d27c1
0x400d2776: leak_some_memory at /path/to/idf/examples/get-started/blink/main/./blink.c:29
0x400d27c1: blink_task at /path/to/idf/examples/get-started/blink/main/./blink.c:52
40 bytes 'leaked' in trace (2 allocations)
total allocations 2 total frees 0
and In my case I am only getting this
2 allocations trace (100 entry buffer)
3072 bytes (@ 0x3ffcded4) allocated CPU 0 ccount 0x168b55bc caller 0x400937c0:0x400ddb1b
344 bytes (@ 0x3ffcead8) allocated CPU 0 ccount 0x168b5ebc caller 0x400937ce:0x400ddb1b
3416 bytes 'leaked' in trace (2 allocations)
total allocations 2 total frees 0
2 allocations trace (100 entry buffer)
16384 bytes (@ 0x3ffd3a88) allocated CPU 0 ccount 0x1791d208 caller 0x400937c0:0x400ddb6f
344 bytes (@ 0x3ffd7a8c) allocated CPU 0 ccount 0x1791dac4 caller
Not the Filenames and line number
By surfing i got to know that I need to do it manually
that i dont want to do
just want it to be printed with ESP suggested SDK APIs Supported in v5.0.7
Let me know in detail
Hello,
I am using ESP32-D0WDQ6 module and ESP-IDF version 5.0.7
I need to know that how to print the Backtrace information with Filename and line number as shown in,
https://docs.espressif.com/projects/esp ... debug.html
As this shows
2 allocations trace (100 entry buffer)
32 bytes (@ 0x3ffaf214) allocated CPU 0 ccount 0x2e9b7384 caller 0x400d276d:0x400d27c1
0x400d276d: leak_some_memory at /path/to/idf/examples/get-started/blink/main/./blink.c:27
0x400d27c1: blink_task at /path/to/idf/examples/get-started/blink/main/./blink.c:52
8 bytes (@ 0x3ffaf804) allocated CPU 0 ccount 0x2e9b79c0 caller 0x400d2776:0x400d27c1
0x400d2776: leak_some_memory at /path/to/idf/examples/get-started/blink/main/./blink.c:29
0x400d27c1: blink_task at /path/to/idf/examples/get-started/blink/main/./blink.c:52
40 bytes 'leaked' in trace (2 allocations)
total allocations 2 total frees 0
and In my case I am only getting this
2 allocations trace (100 entry buffer)
3072 bytes (@ 0x3ffcded4) allocated CPU 0 ccount 0x168b55bc caller 0x400937c0:0x400ddb1b
344 bytes (@ 0x3ffcead8) allocated CPU 0 ccount 0x168b5ebc caller 0x400937ce:0x400ddb1b
3416 bytes 'leaked' in trace (2 allocations)
total allocations 2 total frees 0
2 allocations trace (100 entry buffer)
16384 bytes (@ 0x3ffd3a88) allocated CPU 0 ccount 0x1791d208 caller 0x400937c0:0x400ddb6f
344 bytes (@ 0x3ffd7a8c) allocated CPU 0 ccount 0x1791dac4 caller
Not the Filenames and line number
By surfing i got to know that I need to do it manually
that i dont want to do
just want it to be printed with ESP suggested SDK APIs Supported in v5.0.7
Let me know in detail