Hi, I realized that the Sony thread-awareness changes for nuttx are in OpenOCD <http://openocd.org/>'s master branch now. I added an OpenOCD target for the SAMA5D3 and SAMA5D2 chips (though the D2 is still untested). This is based on work done by Olivier Schonken <https://github.com/olivierschonken/openocd-sama5>.
I have only tested with the Olimex ARM-Tiny-H JTAG adapter. <https://www.olimex.com/Products/ARM/JTAG/ARM-USB-TINY-H/> It seems to work ok, though not as bullet proof as the J-Link. But the J-Link doesn't have nuttx thread awareness. Right now the code is on this branch of my fork of OpenOCD: https://github.com/adamfeuer/openocd/tree/feature/sama5d3-support I used these instructions to get it running: Debugging a NuttX target with GDB and OpenOCD <https://micro-ros.github.io/docs/tutorials/advanced/debugging_gdb_openocd/> – you can follow these instructions but use the above branch. Here's the commandline I used invoke OpenOCD: /usr/local/bin/openocd -f > /usr/local/share/openocd/scripts/interface/ftdi/olimex-arm-usb-tiny-h.cfg > -f /usr/local/share/openocd/scripts/board/at91sama5d3-xpld.cfg -c init > You need to be at the U-Boot prompt for this to work the first time. Thereafter you can do "mon halt", and "load nuttx" and then debug as usual from there. It still needs some testing– when I have used it for a while I'll submit a patch to OpenOCD. If you use this and find or fix problems, let me know! Thanks to the Masatoshi Tateishi and team from Sony and to Olivier Schonken for their software! cheers adam -- Adam Feuer <a...@adamfeuer.com>