Open rei-vilo opened 3 years ago
Hi @rei-vilo ,
unfortunately RTX5
(the rtos used as base for mbed) is not supported by many debuggers (the only official one is https://github.com/pyocd/pyOCD ). I started to port the rtos awareness to openocd some time ago but it's still a work in progress (https://github.com/facchinm/OpenOCD/tree/rtx5).
The situation, as far as I know, is:
picoprobe
It might change in the near future since we are in touch with Segger but I can't promise anything. If you are interested in any openocd specific build I'll be glad to send you more instructions :wink:
Thank you for the detailed answer and multiple pointers.
It seems rather surprising that two industry standards, ARM mbed and Segger, haven't teamed up to bring J-Link to mbedOS.
As a matter of facts, I've already asked Segger a related question at Raspberry Pi Pico RP2040 - Cortex-M HardFault Exception.
Anyway, I'll go through the different options. I have a second Pico as picoprobe
and this solution seems to be supported by the cortex-debug extension on Visual Studio Code.
How to debug an Arduino program with the Segger J-Link?
-g3 -ggdb
The mbed RTOS plug-in doesn't seem to be listed among the standard options for the JLinkGDBServer.
The debugger stops at the two breakpoints...
...then loops endlessly. Pausing shows the error...
...with code
Thank you!