I then move over to a custom board we are building using the ESP32-D2WD chip programming using the ESP-PROG board and I am having problems getting debugging working. I think the chip is being recognised correctly as OpenOCD is showing the following:
Code: Select all
Info : JTAG tap: esp32.cpu0 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : JTAG tap: esp32.cpu1 tap/device found: 0x120034e5 (mfg: 0x272 (Tensilica), part: 0x2003, ver: 0x1)
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Code: Select all
** Programming Started **
auto erase enabled
Info : Target halted. PRO_CPU: PC=0x4009171A (active) APP_CPU: PC=0x40000400
Info : Target halted. PRO_CPU: PC=0x4009171A (active) APP_CPU: PC=0x40000400
wrote 606208 bytes from file /Users/username/SoftwareDevelopment/ESP32/Blinky/build/Blinky.bin in 3.630915s (163.044 KiB/s)
** Programming Finished **
** Verify Started **
Info : Target halted. PRO_CPU: PC=0x4009171A (active) APP_CPU: PC=0x40000400
read 603680 bytes from file /Users/username/SoftwareDevelopment/ESP32/Blinky/build/Blinky.bin and flash bank 0 at offset 0x00010000 in 2.338097s (252.141 KiB/s)
contents match
** Verified OK **
Code: Select all
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Debug controller 0 was reset (pwrstat=0x5F, after clear 0x0F).
Info : esp32: Core 0 was reset (pwrstat=0x5F, after clear 0x0F).
The system does not hit any breakpoints in Eclipse and after a while I hit the Pause button and open the Debugger Console. Here I issue the bt command and get the following output:
Code: Select all
bt
#0 0x40007ba1 in ?? ()
#1 0x40000740 in ?? ()
I am using the same OpenOCD config file / command for this board as the WROVER board, namely:
Code: Select all
bin/openocd -s share/openocd/scripts -f interface/ftdi/esp32_devkitj_v1.cfg -f board/esp-wroom-32.cfg
Any other tips for resolving this would be appreciated. Note that I do not have access to the CHIP_PU pin or UART0 on this rev of the board. I've asked for this to be resolved on the next revision.
OpenOCD version 0.10.0-dev (2018-11-05-04:08)
Regards,
Mark