Closed bwhitman closed 10 months ago
Yes because in the elf file, we have .flash.text
section instead of .text
You can rename the section names. e.g;
cp build/hello_world.elf build/gprof_hello_world.elf
xtensa-esp32s3-elf-objcopy -I elf32-xtensa-le --rename-section .flash.text=.text build/gprof_hello_world.elf
That fixed it. Thank you !
I wrote a HOWTO that brings all this together as I couldn't find it anywhere else, if someone comes looking for help here:
https://github.com/bwhitman/tulipcc/blob/main/docs/tulip_debug.md
@bwhitman Thanks for your support. I'll update our troubleshooting page as well.
OpenOCD version
Open On-Chip Debugger v0.12.0-esp32-20230921
Operating System
macOS
Using an IDE ?
no
OpenOCD command line
openocd -f board/esp32s3-builtin.cfg
ESP-IDF version
5.2-beta2
Problem Description
In separate terminal...
In third terminal
I always get
Debug Logs
No response
Expected behavior
Expected: that the xtensa gprof would understand xtensa elf .text sections.
Screenshots
No response