Open Massimiliano-solutiontech opened 3 months ago
@Massimiliano-solutiontech Thanks for reporting the issue. I will test it and get back to you.
@Massimiliano-solutiontech It worked for me with the IDF 5.3 release, OpenOCD Open On-Chip Debugger v0.12.0-esp32-20240318 (2024-03-18-18:28)
and GNU gdb (esp-gdb) 14.2_20240403
Can you enable OpenOCD verbose log and attach the tog.txt ?
set pagination off
target remote :3333
mon debug_level 3
mon log_output log.txt
mon reset halt
maintenance flush register-cache
tb heap_trace_start
commands
mon esp sysview start file:///tmp/heap_log.svdat
c
end
tb heap_trace_stop
commands
mon esp sysview stop
end
c
And I need to warn you that we have an OpenOCD issue regarding flash size, which is fixed in the latest OpenOCD release. Make sure you set the flash size to at least 4MB in the menuconfig.
Answers checklist.
General issue report
I’m using
esp-idf v5.3
with anESP32-C6 WROOM devkit
, and I would like to track the heap usingSEGGER SystemView
. However, when I launch thegdbinit
script, it never stops (even though my code includesheap_trace_stop()
), and the generatedsvdat
file is empty except for the header. On the other hand, if I don’t track the heap and generate the binary log viaesp sysview start
, the file is correctly generated. However, if the log becomes too large, SystemView hangs during analysisgdbinit
heap_log.svdat