awmichel / blind-controller

MIT License
0 stars 0 forks source link

Debugging w/ Xtensa & OpenOCD #1

Open awmichel opened 3 weeks ago

awmichel commented 3 weeks ago

Try to get debugger working with the Xtensa architecture, which requires OpenOCD. Looks like some binaries aren't in the expected directories after following the directions in the ESP-RS docs.

Error: /Users/***/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin/xtensa-esp32-elf-nm failed! statics/global/functions may not be properly classified: Error: spawn /Users/***/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin/xtensa-esp32-elf-nm ENOENT
    Expecting `nm` next to `objdump`. If that is not the problem please report this.
Error: objdump failed! statics/globals/functions may not be properly classified: Error: spawn /Users/***/.espressif/tools/xtensa-esp-elf-gdb/14.2_20240403/xtensa-esp-elf-gdb/bin/xtensa-esp32-elf-objdump ENOENT
    ENOENT means program not found. If that is not the issue, please report this problem.
awmichel commented 3 weeks ago

Sounds like the NodeMCU ESP-32S I have doesn't connect the JTAG debug interface of the ESP32 to the USB port, so a secondary USB-Serial interface must be used and manually connected to the JTAG pins on the ESP32. https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-guides/jtag-debugging/configure-other-jtag.html#configure-other-jtag-interface