Debugging in Eclipse
Posted: Tue Apr 25, 2017 12:04 am
Hi guys.
I am still struggling to have Eclipse work with the esp32 and openocd / gdb at least in OSX.
Setup:
OSX 10.11.6
OpenOcd from EspressIf
JTAG is a Flyswatter2
App to debug: Blinky
History: OpenOcd and xtensa gdb work directly as in a previous post (viewtopic.php?f=2&t=1720)
So far I been able to do the process "manually", meaning, one terminal has openocd and another the xtensa gdb.
Openocd starts Ok, then xtensa gdb starts Ok. Need to do a continue and the blink app blinks. Then I can stop it, set breakpoints, check variables, stack, etc.
Interfacing via Eclipse simply wont work.
It calls the same OpenOcd and xtensa gdb, but will not debug (openOcd is running and also xtensa-gdb). App is not running and there is no Resume button. If I Suspend it lists all the threads an the stops at the first thread, WHICH I HAVE NO IDEA what it is, but a simple j 0x40000xxxxx.
Matthias at https://www.matthias-jentsch.de/2017/02 ... d-openocd/ seems to have done it (Ubuntu) but since this is OSX. He sent some instruction regarding configuration of debugging but they were the same as mine.
If I force the Set the Program Counter at hex it goes to the app_main but it will not continue or advance the program counter and hence, no blinking.
Really weird.
Anybody?
Regards.
I am still struggling to have Eclipse work with the esp32 and openocd / gdb at least in OSX.
Setup:
OSX 10.11.6
OpenOcd from EspressIf
JTAG is a Flyswatter2
App to debug: Blinky
History: OpenOcd and xtensa gdb work directly as in a previous post (viewtopic.php?f=2&t=1720)
So far I been able to do the process "manually", meaning, one terminal has openocd and another the xtensa gdb.
Openocd starts Ok, then xtensa gdb starts Ok. Need to do a continue and the blink app blinks. Then I can stop it, set breakpoints, check variables, stack, etc.
Interfacing via Eclipse simply wont work.
It calls the same OpenOcd and xtensa gdb, but will not debug (openOcd is running and also xtensa-gdb). App is not running and there is no Resume button. If I Suspend it lists all the threads an the stops at the first thread, WHICH I HAVE NO IDEA what it is, but a simple j 0x40000xxxxx.
Matthias at https://www.matthias-jentsch.de/2017/02 ... d-openocd/ seems to have done it (Ubuntu) but since this is OSX. He sent some instruction regarding configuration of debugging but they were the same as mine.
If I force the Set the Program Counter at hex it goes to the app_main but it will not continue or advance the program counter and hence, no blinking.
Really weird.
Anybody?
Regards.