ESP32 WROOM 32D + JLink JTAG + Debugging not working

irfan93
Posts: 4
Joined: Thu Jul 07, 2022 2:05 pm

ESP32 WROOM 32D + JLink JTAG + Debugging not working

Postby irfan93 » Thu Jul 07, 2022 7:15 pm

Hello,

I am pretty new to ESP32 platform and I am currently working of another person's development who have completely depended on the UART to debug. I prefer if I am able to do inline debugging. I am hoping someone can point me on my mistake here to get this working.

I followed the instructions as per https://mcuoneclipse.com/2019/09/22/ecl ... r-j-link/ .

My OpenOCD is version: v0.10.0-esp32-20210401
My GDB is version GNU gdb (crosstool-NG esp-2021r1) 8.1.0.20180627-git

The problem occurs when while running the OpenOCD, the GDB hardware debugging fails.

The error occurs,when I start the xtensa-esp32-elf-gdb -x gdbinit build/gateway.elf:
The gdbinit file look like this:

Code: Select all

target remote :3333
set remote hardware-watchpoint-limit 2
mon reset halt
flushregs
htb app_main
c
This is the OpenOCD log:

Code: Select all

esp32@esp32-kubuntu-22:~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/interface$ openocd -f interface/jlink.cfg -f board/esp-wroom-32.cfg
Open On-Chip Debugger  v0.10.0-esp32-20210401 (2021-04-01-15:45)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 4000 kHz

WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Info : Listening on port 6666 for tcl connections
Info : Listening on port 4444 for telnet connections
Info : J-Link Ultra V4 compiled Mar  7 2019 15:19:46
Info : Hardware version: 4.00
Info : VTarget = 3.282 V
Info : clock speed 4000 kHz
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.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : Listening on port 3333 for gdb connections
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Info : accepting 'gdb' connection on tcp/3333
Warn : No symbols for FreeRTOS!
Error: Target not examined yet
Error executing event gdb-attach on target esp32.cpu0:

Error: Target not halted
Error: auto_probe failed
Error: Connect failed. Consider setting up a gdb-attach event for the target to prepare target for GDB connect, or use 'gdb_memory_map disable'.
Error: attempted 'gdb' connection rejected
And when I run the openocd with app memory offset, the OpenOCD crashed before i can even ran gdb:

Code: Select all

esp32@esp32-kubuntu-22:~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/interface$ openocd -f interface/jlink.cfg -f board/esp-wroom-32.cfg -c "init; halt;  esp appimage_offset 0x20000"
Open On-Chip Debugger  v0.10.0-esp32-20210401 (2021-04-01-15:45)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 4000 kHz

WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Info : J-Link Ultra V4 compiled Mar  7 2019 15:19:46
Info : Hardware version: 4.00
Info : VTarget = 3.289 V
Info : clock speed 4000 kHz
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 : Listening on port 3333 for gdb connections
Error: Target not examined yet
I ran the same call for OpenOCD as above without the halt:

Code: Select all

esp32@esp32-kubuntu-22:~/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/interface$ openocd -f interface/jlink.cfg -f board/esp-wroom-32.cfg -c "init;  esp appimage_offset 0x20000"
Open On-Chip Debugger  v0.10.0-esp32-20210401 (2021-04-01-15:45)
Licensed under GNU GPL v2
For bug reports, read
        http://openocd.org/doc/doxygen/bugs.html
adapter speed: 4000 kHz

WARNING: boards/esp-wroom-32.cfg is deprecated, and may be removed in a future release.
Info : J-Link Ultra V4 compiled Mar  7 2019 15:19:46
Info : Hardware version: 4.00
Info : VTarget = 3.282 V
Info : clock speed 4000 kHz
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 : Listening on port 3333 for gdb connections
Info : esp32.cpu0: Debug controller was reset.
Info : esp32.cpu0: Core was reset.
Error: Target not halted
Error: auto_probe failed
Error: Failed to find bank 'esp32.cpu0.irom'!

irfan93
Posts: 4
Joined: Thu Jul 07, 2022 2:05 pm

Re: ESP32 WROOM 32D + JLink JTAG + Debugging not working

Postby irfan93 » Tue Jul 12, 2022 4:52 pm

Update:
I had the Hello World Project working with the ESP32WROOM with the JTAG(jLink). I was able to do it with the esp-idf version 4.4.
I just followed this instruction: https://github.com/espressif/idf-eclips ... bugging.md

Now I repeated this steps with my custom project that is only have a single core running on RTOS. The esp-idf tool-chain is also based on version 4.3. The below is the error I am arriving at whenever I tried to debug:

Code: Select all

Open On-Chip Debugger  v0.11.0-esp32-20211220 (2021-12-20-15:42)
Licensed under GNU GPL v2
For bug reports, read
	http://openocd.org/doc/doxygen/bugs.html
User : 13 0 options.c:63 configuration_output_handler(): debug_level: 3
User : 14 0 options.c:63 configuration_output_handler(): 
Debug: 15 0 options.c:244 add_default_dirs(): bindir=/builds/idf/openocd-esp32/_build/../openocd-esp32/bin
Debug: 16 0 options.c:245 add_default_dirs(): pkgdatadir=/builds/idf/openocd-esp32/_build/../openocd-esp32/share/openocd
Debug: 17 0 options.c:246 add_default_dirs(): exepath=/home/esp32/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin
Debug: 18 0 options.c:247 add_default_dirs(): bin2data=../share/openocd
Debug: 19 1 configuration.c:42 add_script_search_dir(): adding /home/esp32/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts
Debug: 20 1 configuration.c:42 add_script_search_dir(): adding /home/esp32/.config/openocd
Debug: 21 1 configuration.c:42 add_script_search_dir(): adding /home/esp32/.openocd
Debug: 22 1 configuration.c:42 add_script_search_dir(): adding /home/esp32/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin/../share/openocd/site
Debug: 23 1 configuration.c:42 add_script_search_dir(): adding /home/esp32/.espressif/tools/openocd-esp32/v0.11.0-esp32-20211220/openocd-esp32/bin/../share/openocd/scripts
Debug: 24 1 command.c:146 script_debug(): command - gdb_port 3333
Debug: 26 1 command.c:146 script_debug(): command - telnet_port 4444
Debug: 28 1 command.c:146 script_debug(): command - tcl_port 6666
User : 30 1 options.c:63 configuration_output_handler(): 3.3User : 31 1 options.c:63 configuration_output_handler(): 
Debug: 32 1 configuration.c:97 find_file(): found /home/esp32/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/interface/jlink.cfg
Debug: 33 1 command.c:146 script_debug(): command - echo DEPRECATED! use 'adapter driver' not 'interface'
User : 35 1 command.c:769 jim_echo(): DEPRECATED! use 'adapter driver' not 'interface'
Debug: 36 1 command.c:146 script_debug(): command - adapter driver jlink
Debug: 38 1 configuration.c:97 find_file(): found /home/esp32/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/target/esp32.cfg
Debug: 39 1 command.c:146 script_debug(): command - transport select jtag
Debug: 40 1 command.c:146 script_debug(): command - echo DEPRECATED! use 'adapter speed' not 'adapter_khz'
User : 42 1 command.c:769 jim_echo(): DEPRECATED! use 'adapter speed' not 'adapter_khz'
Debug: 43 1 command.c:146 script_debug(): command - adapter speed 4000
Debug: 45 1 core.c:1822 jtag_config_khz(): handle jtag khz
Debug: 46 1 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 47 1 core.c:1785 adapter_khz_to_speed(): convert khz to interface specific speed value
Debug: 48 1 configuration.c:97 find_file(): found /home/esp32/.espressif/tools/openocd-esp32/v0.10.0-esp32-20210401/openocd-esp32/share/openocd/scripts/target/esp_common.cfg
Debug: 49 1 command.c:146 script_debug(): command - add_help_text program_esp write an image to flash, address is only required for binary images. verify, reset, exit, compress are optional
Debug: 51 1 command.c:1115 help_add_command(): added 'program_esp' help text
Debug: 52 1 command.c:146 script_debug(): command - add_usage_text program_esp <filename> [address] [verify] [reset] [exit] [compress]
Debug: 54 1 command.c:1141 help_add_command(): added 'program_esp' usage text
Debug: 55 1 command.c:146 script_debug(): command - add_help_text program_esp_bins write all the images at address specified in flasher_args.json generated while building idf project
Debug: 57 1 command.c:1115 help_add_command(): added 'program_esp_bins' help text
Debug: 58 1 command.c:146 script_debug(): command - add_usage_text program_esp_bins <build_dir> flasher_args.json [verify] [reset] [exit] [compress]
Debug: 60 1 command.c:1141 help_add_command(): added 'program_esp_bins' usage text
Debug: 61 1 command.c:146 script_debug(): command - add_help_text esp_get_mac Print MAC address of the chip from EFUSE_BLK0_RDATA1_REG and EFUSE_BLK0_RDATA2_REG. Use a `format` argument to return formatted MAC value
Debug: 63 1 command.c:1115 help_add_command(): added 'esp_get_mac' help text
Debug: 64 1 command.c:146 script_debug(): command - add_usage_text esp_get_mac [format]
Debug: 66 1 command.c:1141 help_add_command(): added 'esp_get_mac' usage text
Debug: 67 1 command.c:146 script_debug(): command - jtag newtap esp32 cpu0 -irlen 5 -expected-id 0x120034e5
Debug: 68 1 tcl.c:572 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu0, Dotted: esp32.cpu0, 4 params
Debug: 69 1 tcl.c:596 jim_newtap_cmd(): Processing option: -irlen
Debug: 70 1 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id
Debug: 71 1 core.c:1488 jtag_tap_init(): Created Tap: esp32.cpu0 @ abs position 0, irlen 5, capture: 0x1 mask: 0x3
Debug: 72 1 command.c:146 script_debug(): command - jtag newtap esp32 cpu1 -irlen 5 -expected-id 0x120034e5
Debug: 73 1 tcl.c:572 jim_newtap_cmd(): Creating New Tap, Chip: esp32, Tap: cpu1, Dotted: esp32.cpu1, 4 params
Debug: 74 1 tcl.c:596 jim_newtap_cmd(): Processing option: -irlen
Debug: 75 1 tcl.c:596 jim_newtap_cmd(): Processing option: -expected-id
Debug: 76 1 core.c:1488 jtag_tap_init(): Created Tap: esp32.cpu1 @ abs position 1, irlen 5, capture: 0x1 mask: 0x3
Debug: 77 1 command.c:146 script_debug(): command - target create esp32.cpu0 esp32 -endian little -chain-position esp32.cpu0 -coreid 0 -rtos FreeRTOS
Debug: 78 1 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 79 1 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 80 1 FreeRTOS.c:1242 FreeRTOS_create(): FreeRTOS_create
Debug: 81 1 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 82 1 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 83 1 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 84 1 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 85 1 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 86 1 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 87 1 command.c:376 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 88 2 command.c:376 register_command(): command 'esp' is already registered in 'esp32.cpu0' context
Debug: 89 2 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu0' context
Debug: 90 2 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu0' context
Debug: 91 2 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu0' context
Debug: 92 2 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu0' context
Debug: 93 2 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu0' context
Debug: 94 2 command.c:376 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 95 2 command.c:146 script_debug(): command - esp32.cpu0 configure -work-area-phys 0x40090000 -work-area-virt 0x40090000 -work-area-size 0x3400 -work-area-backup 1
Debug: 96 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 97 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 98 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 99 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 100 2 command.c:146 script_debug(): command - esp32.cpu0 configure -alt-work-area-phys 0x3FFC0000 -alt-work-area-virt 0x3FFC0000 -alt-work-area-size 0x10000 -alt-work-area-backup 1
Debug: 101 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 102 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 103 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 104 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 105 2 command.c:146 script_debug(): command - flash bank esp32.cpu0.flash esp32 0x0 0 0 0 esp32.cpu0
Debug: 107 2 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 108 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 109 2 tcl.c:1319 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 110 2 command.c:146 script_debug(): command - flash bank esp32.cpu0.irom esp32 0x0 0 0 0 esp32.cpu0
Debug: 112 2 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 113 2 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 114 2 command.c:376 register_command(): command 'compression' is already registered in 'esp' context
Debug: 115 2 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp' context
Debug: 116 2 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context
Debug: 117 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 118 2 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 119 2 command.c:376 register_command(): command 'compression' is already registered in 'esp32' context
Debug: 120 2 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp32' context
Debug: 121 2 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32' context
Debug: 122 2 tcl.c:1319 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 123 2 command.c:146 script_debug(): command - flash bank esp32.cpu0.drom esp32 0x0 0 0 0 esp32.cpu0
Debug: 125 2 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 126 2 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 127 2 command.c:376 register_command(): command 'compression' is already registered in 'esp' context
Debug: 128 2 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp' context
Debug: 129 2 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context
Debug: 130 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 131 2 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 132 2 command.c:376 register_command(): command 'compression' is already registered in 'esp32' context
Debug: 133 2 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp32' context
Debug: 134 2 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32' context
Debug: 135 2 tcl.c:1319 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 136 2 command.c:146 script_debug(): command - target create esp32.cpu1 esp32 -endian little -chain-position esp32.cpu1 -coreid 1 -rtos FreeRTOS
Debug: 137 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 138 2 target.c:2218 target_free_all_working_areas_restore(): freeing all working areas
Debug: 139 2 FreeRTOS.c:1242 FreeRTOS_create(): FreeRTOS_create
Debug: 140 2 command.c:376 register_command(): command 'xtensa' is already registered in '<global>' context
Debug: 141 2 command.c:376 register_command(): command 'set_permissive' is already registered in 'xtensa' context
Debug: 142 2 command.c:376 register_command(): command 'maskisr' is already registered in 'xtensa' context
Debug: 143 2 command.c:376 register_command(): command 'smpbreak' is already registered in 'xtensa' context
Debug: 144 2 command.c:376 register_command(): command 'perfmon_enable' is already registered in 'xtensa' context
Debug: 145 2 command.c:376 register_command(): command 'perfmon_dump' is already registered in 'xtensa' context
Debug: 146 2 command.c:376 register_command(): command 'tracestart' is already registered in 'xtensa' context
Debug: 147 2 command.c:376 register_command(): command 'tracestop' is already registered in 'xtensa' context
Debug: 148 2 command.c:376 register_command(): command 'tracedump' is already registered in 'xtensa' context
Debug: 149 2 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 150 2 command.c:376 register_command(): command 'semihost_basedir' is already registered in 'esp' context
Debug: 151 2 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 152 2 command.c:376 register_command(): command 'apptrace' is already registered in 'esp' context
Debug: 153 2 command.c:376 register_command(): command 'sysview' is already registered in 'esp' context
Debug: 154 2 command.c:376 register_command(): command 'sysview_mcore' is already registered in 'esp' context
Debug: 155 2 command.c:376 register_command(): command 'gcov' is already registered in 'esp' context
Debug: 156 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 157 2 command.c:376 register_command(): command 'smp' is already registered in 'esp32' context
Debug: 158 2 command.c:376 register_command(): command 'smp_on' is already registered in 'esp32' context
Debug: 159 2 command.c:376 register_command(): command 'smp_off' is already registered in 'esp32' context
Debug: 160 2 command.c:376 register_command(): command 'smp_gdb' is already registered in 'esp32' context
Debug: 161 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 162 2 command.c:376 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 163 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 164 2 command.c:376 register_command(): command 'set_permissive' is already registered in 'esp32' context
Debug: 165 2 command.c:376 register_command(): command 'maskisr' is already registered in 'esp32' context
Debug: 166 2 command.c:376 register_command(): command 'smpbreak' is already registered in 'esp32' context
Debug: 167 2 command.c:376 register_command(): command 'perfmon_enable' is already registered in 'esp32' context
Debug: 168 2 command.c:376 register_command(): command 'perfmon_dump' is already registered in 'esp32' context
Debug: 169 2 command.c:376 register_command(): command 'tracestart' is already registered in 'esp32' context
Debug: 170 2 command.c:376 register_command(): command 'tracestop' is already registered in 'esp32' context
Debug: 171 2 command.c:376 register_command(): command 'tracedump' is already registered in 'esp32' context
Debug: 172 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 173 2 command.c:376 register_command(): command 'semihost_basedir' is already registered in 'esp32' context
Debug: 174 2 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 175 2 command.c:376 register_command(): command 'apptrace' is already registered in 'esp32' context
Debug: 176 2 command.c:376 register_command(): command 'sysview' is already registered in 'esp32' context
Debug: 177 3 command.c:376 register_command(): command 'sysview_mcore' is already registered in 'esp32' context
Debug: 178 3 command.c:376 register_command(): command 'gcov' is already registered in 'esp32' context
Debug: 179 3 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 180 3 command.c:376 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 181 3 command.c:376 register_command(): command 'esp' is already registered in 'esp32.cpu1' context
Debug: 182 3 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu1' context
Debug: 183 3 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu1' context
Debug: 184 3 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu1' context
Debug: 185 3 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu1' context
Debug: 186 3 command.c:376 register_command(): command 'esp32' is already registered in 'esp32.cpu1' context
Debug: 187 3 command.c:376 register_command(): command 'flashbootstrap' is already registered in 'esp32' context
Debug: 188 3 command.c:146 script_debug(): command - flash bank esp32.cpu1.flash esp32 0x0 0 0 0 esp32.cpu1
Debug: 190 3 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 191 3 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 192 3 command.c:376 register_command(): command 'compression' is already registered in 'esp' context
Debug: 193 3 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp' context
Debug: 194 3 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context
Debug: 195 3 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 196 3 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 197 3 command.c:376 register_command(): command 'compression' is already registered in 'esp32' context
Debug: 198 3 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp32' context
Debug: 199 3 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32' context
Debug: 200 3 tcl.c:1319 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 201 3 command.c:146 script_debug(): command - flash bank esp32.cpu1.irom esp32 0x0 0 0 0 esp32.cpu1
Debug: 203 3 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 204 3 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 205 3 command.c:376 register_command(): command 'compression' is already registered in 'esp' context
Debug: 206 3 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp' context
Debug: 207 3 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context
Debug: 208 3 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 209 3 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 210 3 command.c:376 register_command(): command 'compression' is already registered in 'esp32' context
Debug: 211 3 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp32' context
Debug: 212 3 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32' context
Debug: 213 3 tcl.c:1319 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 214 3 command.c:146 script_debug(): command - flash bank esp32.cpu1.drom esp32 0x0 0 0 0 esp32.cpu1
Debug: 216 3 command.c:376 register_command(): command 'esp' is already registered in '<global>' context
Debug: 217 3 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp' context
Debug: 218 3 command.c:376 register_command(): command 'compression' is already registered in 'esp' context
Debug: 219 3 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp' context
Debug: 220 3 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp' context
Debug: 221 3 command.c:376 register_command(): command 'esp32' is already registered in '<global>' context
Debug: 222 3 command.c:376 register_command(): command 'appimage_offset' is already registered in 'esp32' context
Debug: 223 3 command.c:376 register_command(): command 'compression' is already registered in 'esp32' context
Debug: 224 3 command.c:376 register_command(): command 'verify_bank_hash' is already registered in 'esp32' context
Debug: 225 3 command.c:376 register_command(): command 'flash_stub_clock_boost' is already registered in 'esp32' context
Debug: 226 3 tcl.c:1319 handle_flash_bank_command(): 'esp32' driver usage field missing
Debug: 227 3 command.c:146 script_debug(): command - target smp esp32.cpu0 esp32.cpu1
Debug: 228 3 target.c:6062 jim_target_smp(): 3
Debug: 229 3 target.c:6072 jim_target_smp(): esp32.cpu0 
Debug: 230 3 target.c:6072 jim_target_smp(): esp32.cpu1 
Debug: 231 3 command.c:146 script_debug(): command - esp32.cpu0 esp32 flashbootstrap 3.3
Debug: 233 3 command.c:146 script_debug(): command - esp32.cpu0 xtensa maskisr on
Debug: 235 3 command.c:146 script_debug(): command - esp32.cpu0 xtensa smpbreak BreakIn BreakOut
Debug: 237 3 xtensa.c:744 xtensa_smpbreak_set(): esp32.cpu0: set smpbreak=30000, state=1
Debug: 238 3 xtensa.c:744 xtensa_smpbreak_set(): esp32.cpu1: set smpbreak=30000, state=1
Debug: 239 3 command.c:146 script_debug(): command - esp32.cpu0 esp semihost_basedir .
Debug: 241 3 command.c:146 script_debug(): command - esp32.cpu0 configure -event gdb-attach 
	$_TARGETNAME_0 xtensa smpbreak BreakIn BreakOut
	# necessary to auto-probe flash bank when GDB is connected
	halt

Debug: 242 3 command.c:146 script_debug(): command - esp32.cpu1 configure -event gdb-attach 
		$_TARGETNAME_1 xtensa smpbreak BreakIn BreakOut
		# necessary to auto-probe flash bank when GDB is connected
		halt
	
Debug: 243 3 command.c:146 script_debug(): command - add_help_text program_esp32 write an image to flash, address is only required for binary images. verify, reset, exit are optional
Debug: 245 3 command.c:1115 help_add_command(): added 'program_esp32' help text
Debug: 246 3 command.c:146 script_debug(): command - add_usage_text program_esp32 <filename> [address] [verify] [reset] [exit]
Debug: 248 3 command.c:1141 help_add_command(): added 'program_esp32' usage text
Debug: 249 4 command.c:146 script_debug(): command - echo Flashing /home/esp32/Programming/source/esp32/esp-idf_GATEWAY/build/partition_table/partition-table.bin at 0x8000
User : 251 4 command.c:769 jim_echo(): Flashing /home/esp32/Programming/source/esp32/esp-idf_GATEWAY/build/partition_table/partition-table.bin at 0x8000
Debug: 252 4 command.c:146 script_debug(): command - init
Debug: 254 4 command.c:146 script_debug(): command - target init
Debug: 256 4 command.c:146 script_debug(): command - target names
Debug: 257 4 command.c:146 script_debug(): command - esp32.cpu0 cget -event gdb-flash-erase-start
Debug: 258 4 command.c:146 script_debug(): command - esp32.cpu0 configure -event gdb-flash-erase-start reset init
Debug: 259 4 command.c:146 script_debug(): command - esp32.cpu0 cget -event gdb-flash-write-end
Debug: 260 4 command.c:146 script_debug(): command - esp32.cpu0 configure -event gdb-flash-write-end reset halt
Debug: 261 4 command.c:146 script_debug(): command - esp32.cpu0 cget -event gdb-attach
Debug: 262 4 command.c:146 script_debug(): command - esp32.cpu1 cget -event gdb-flash-erase-start
Debug: 263 4 command.c:146 script_debug(): command - esp32.cpu1 configure -event gdb-flash-erase-start reset init
Debug: 264 4 command.c:146 script_debug(): command - esp32.cpu1 cget -event gdb-flash-write-end
Debug: 265 4 command.c:146 script_debug(): command - esp32.cpu1 configure -event gdb-flash-write-end reset halt
Debug: 266 4 command.c:146 script_debug(): command - esp32.cpu1 cget -event gdb-attach
Debug: 267 4 target.c:1661 handle_target_init_command(): Initializing targets...
Debug: 268 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'litbase' (152) does not exist
Debug: 269 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'ptevaddr' (153) does not exist
Debug: 270 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'rasid' (154) does not exist
Debug: 271 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'itlbcfg' (155) does not exist
Debug: 272 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'dtlbcfg' (156) does not exist
Debug: 273 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mepc' (157) does not exist
Debug: 274 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'meps' (158) does not exist
Debug: 275 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesave' (159) does not exist
Debug: 276 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesr' (160) does not exist
Debug: 277 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mecr' (161) does not exist
Debug: 278 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mevaddr' (162) does not exist
Debug: 279 4 semihosting_common.c:100 semihosting_common_init():  
Debug: 280 4 semihosting_common.c:100 semihosting_common_init():  
Debug: 281 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'litbase' (152) does not exist
Debug: 282 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'ptevaddr' (153) does not exist
Debug: 283 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'rasid' (154) does not exist
Debug: 284 4 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'itlbcfg' (155) does not exist
Debug: 285 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'dtlbcfg' (156) does not exist
Debug: 286 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mepc' (157) does not exist
Debug: 287 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'meps' (158) does not exist
Debug: 288 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesave' (159) does not exist
Debug: 289 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mesr' (160) does not exist
Debug: 290 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mecr' (161) does not exist
Debug: 291 5 xtensa.c:2379 xtensa_build_reg_cache(): Special reg 'mevaddr' (162) does not exist
Debug: 292 5 semihosting_common.c:100 semihosting_common_init():  
Debug: 293 5 semihosting_common.c:100 semihosting_common_init():  
Debug: 294 5 jlink.c:648 jlink_init(): Using libjaylink 0.2.0-git-f73ad5e (compiled with 0.2.0-git-f73ad5e).
Debug: 295 6 jlink.c:526 jaylink_log_handler(): Found device (VID:PID = 1366:0101, bus:address = 001:004).
Debug: 296 7 jlink.c:526 jaylink_log_handler(): Device: USB address = 0.
Debug: 297 7 jlink.c:526 jaylink_log_handler(): Device: Serial number = 504502658.
Debug: 298 7 jlink.c:526 jaylink_log_handler(): Allocating new device instance.
Debug: 299 7 jlink.c:526 jaylink_log_handler(): Found 1 USB device(s).
Debug: 300 8 jlink.c:526 jaylink_log_handler(): Trying to open device (bus:address = 001:004).
Debug: 301 8 jlink.c:526 jaylink_log_handler(): Using endpoint 81 (IN) and 01 (OUT).
Error: 302 8 jlink.c:526 jaylink_log_handler(): Failed to claim interface: LIBUSB_ERROR_BUSY.
Error: 303 8 jlink.c:631 jlink_open_device(): Failed to open device: unspecified error.
Error: 304 8 jlink.c:683 jlink_init(): No J-Link device found.
Debug: 305 8 jlink.c:526 jaylink_log_handler(): Device destroyed (bus:address = 001:004).
Debug: 306 8 command.c:629 run_command(): Command 'init' failed with error code -100
Debug: 307 8 command.c:146 script_debug(): command - echo ** OpenOCD init failed **
User : 309 8 command.c:769 jim_echo(): ** OpenOCD init failed **
Debug: 310 8 command.c:146 script_debug(): command - shutdown error
User : 312 8 server.c:755 handle_shutdown_command(): shutdown command invoked
Debug: 313 8 command.c:629 run_command(): Command 'shutdown' failed with error code -4
Debug: 314 8 command.c:146 script_debug(): command - echo ** Flashing Failed **
User : 316 8 command.c:769 jim_echo(): ** Flashing Failed **
User : 317 8 options.c:63 configuration_output_handler(): -1User : 318 8 options.c:63 configuration_output_handler(): 
Debug: 319 8 command.c:146 script_debug(): command - echo Started by GNU MCU Eclipse
User : 321 10 command.c:769 jim_echo(): Started by GNU MCU Eclipse
Info : 322 10 server.c:312 add_service(): Listening on port 6666 for tcl connections
Info : 323 10 server.c:312 add_service(): Listening on port 4444 for telnet connections
Debug: 324 10 command.c:146 script_debug(): command - init
Debug: 326 10 esp_xtensa.c:131 esp_xtensa_target_deinit(): start
Debug: 327 10 xtensa.c:2533 xtensa_target_deinit(): start
openocd: ../src/jtag/core.c:343: jtag_checks: Assertion `jtag_trst == 0' failed.
Debug: 328 10 server.c:611 sig_handler(): Ignored extra Signal 6

Who is online

Users browsing this forum: No registered users and 46 guests