Created
July 2, 2025 04:10
-
-
Save meee1/50938a4c74d3cc24b2d1cdb6c50ed7a3 to your computer and use it in GitHub Desktop.
wsl jlink to windows
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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