If you have a JLink probe, you can use our Visual Studio Code extension to debug your firmware with it. You will need to install the extension first, for it we have a special chapter in this documentation.
There is a little difference between installation with the Portable version and the standalone extension.
Debugging with Portable Version
If you downloaded our Portable version of Visual Studio Code you should have all the required dependencies in the
code-portable-data (macOS) folder.
The only thing that you will need to install is JLink drivers if you don’t have them already.
Go to the
hardwario-code/data/tower/toolchain/SEGGER/JLink/USBDriver/ and run the
After that, you should be good to go.
You have to update the UDEV rules for the JLink to work. Just copy the command below and replace
PATH_TO_HARDWARIO_CODE with the actual path to the
sudo cp PATH_TO_HARDWARIO_CODE/hardwario-code/data/tower/toolchain/SEGGER/JLink/99-jlink.rules /etc/udev/rules.d/99-jlink.rule
You have to unplug and plug the JLink and reboot your system after executing the command.
After that, you should be able to start debugging with JLink.
On macOS, the JLink should be detected automatically.
There are no additional steps needed.