Skip to content

Instantly share code, notes, and snippets.

@gamblor21
Last active March 14, 2023 00:18
Show Gist options
  • Save gamblor21/23c04033c7c986f1fd06343ba9a273cb to your computer and use it in GitHub Desktop.
Save gamblor21/23c04033c7c986f1fd06343ba9a273cb to your computer and use it in GitHub Desktop.
Using WSL and JTAG
Steps:
1. Start JlinkRemoteServer on windows
1a. If any issues check firewall rules that WSL can access it
2. In WSL run: JLinkGDBServerCLExe -device ATSAMD51G19A -if SWD -ip 172.30.240.1
2a. IP may change that is windows machine IP (find with ip route command in WSL)
3. arm-none-eabi-gdb build/firmware.elf
3a. target extended-remote :2331
Ensure JTab RST is hooked to Reset (or enable on ItsyBitsy M4 worked)
https://wiki.segger.com/WSL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment