Not able to use JTAG and Debugger on Linux

Karim1993
Posts: 20
Joined: Mon Aug 27, 2018 4:28 am

Not able to use JTAG and Debugger on Linux

Postby Karim1993 » Fri Sep 14, 2018 6:16 am

Hi I have the below setup

Jlink + ESP32-DevKit-C + OpenOCD on Ubuntu 14.04 64 bit and I am not able to setup a breakpoint and I see few errors

I have enabled panic handler behaviour to Invoke GDBStub . I have attached the logs for openocd, debugger, esp32 .

Thanks
Attachments
openocd log.txt
(19.58 KiB) Downloaded 635 times
esp32 log.txt
(2.62 KiB) Downloaded 621 times
debugger log.txt
(2.85 KiB) Downloaded 617 times

Karim1993
Posts: 20
Joined: Mon Aug 27, 2018 4:28 am

Re: Not able to use JTAG and Debugger on Linux

Postby Karim1993 » Fri Sep 14, 2018 9:05 am

An Update on this ,

I have changed the adapter frequency to 2MHz as per the post ( https://github.com/espressif/openocd-esp32/issues/15)and it started working somehow , but I got a new error and after setting a break point and continuously pressing 'C' on gdb i received below error on
openocd :
Info : Target halted. PRO_CPU: PC=0x400D23CB (active) APP_CPU: PC=0x400E183A
Error: Error reading FreeRTOS thread name

gdb :
35 printf("GPIO : %d \n",BLINK_GPIO);
(gdb) c
Continuing.
Target halted. PRO_CPU: PC=0x400D23CB (active) APP_CPU: PC=0x400E183A

Could you please me this.

Thanks,
Karim

swkemb
Posts: 1
Joined: Sun Dec 16, 2018 4:55 am

Re: Not able to use JTAG and Debugger on Linux

Postby swkemb » Sun Dec 16, 2018 5:28 am

in board/esp-wroom-32.cfg

Code: Select all

# If single core debugging is required, uncomment the following line
# set ESP32_ONLYCPU 1

# To disable RTOS support, uncomment the following line
set ESP32_RTOS none #<--- uncomment here

# Tell OpenOCD which SPI flash voltage is used by the board (3.3 or 1.8)
refer Configuration of OpenOCD for specific targe under tips and tricks

Who is online

Users browsing this forum: Majestic-12 [Bot] and 95 guests