Skip to content

Instantly share code, notes, and snippets.

@meee1
Created July 2, 2025 04:10
Show Gist options
  • Select an option

  • Save meee1/50938a4c74d3cc24b2d1cdb6c50ed7a3 to your computer and use it in GitHub Desktop.

Select an option

Save meee1/50938a4c74d3cc24b2d1cdb6c50ed7a3 to your computer and use it in GitHub Desktop.
wsl jlink to windows
#!/bin/sh
killall JLinkGDBServerCL.exe
killall socat
# Start JLink GDB Server with specified parameters
"/mnt/c/Program Files/SEGGER/JLink_V812a/JLinkGDBServerCL.exe" -singlerun -nogui -if swd -port 50000 -swoport 50001 -telnetport 50002 -device STM32H757ZI -nolocalhostonly -rtos GDBServer/RTOSPlugin_ChibiOS.so &
sleep 1
socat TCP-LISTEN:50000,bind=127.0.0.1 TCP-CONNECT:172.25.32.1:50000
fg
fg
fg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment