Page 1 of 1

Not able to use JTAG and Debugger on Linux

Posted: Fri Sep 14, 2018 6:16 am
by Karim1993
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

Re: Not able to use JTAG and Debugger on Linux

Posted: Fri Sep 14, 2018 9:05 am
by Karim1993
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

Re: Not able to use JTAG and Debugger on Linux

Posted: Sun Dec 16, 2018 5:28 am
by swkemb
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