Skip to content

Instantly share code, notes, and snippets.

@maxpeng
Last active August 15, 2023 23:12
Show Gist options
  • Save maxpeng/e3a857c22615db6f87a73219949954fd to your computer and use it in GitHub Desktop.
Save maxpeng/e3a857c22615db6f87a73219949954fd to your computer and use it in GitHub Desktop.
[How to configure PlatformIO to debug code via JLink] #mbed #platformio #jlink
; PlatformIO Project Configuration File
;
; Build options: build flags, source filter
; Upload options: custom upload port, speed and extra flags
; Library options: dependencies, extra library storages
; Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; http://docs.platformio.org/page/projectconf.html
[env:nucleo_f429zi]
platform = ststm32
board = nucleo_f429zi
framework = mbed
; Debug options
debug_tool = custom
debug_server =
D:/lang/segger/jlink/JLinkGDBServer
-singlerun
-if
SWD
-select
USB
-port
2331
-device
STM32F429ZI
@dzid26
Copy link

dzid26 commented Aug 15, 2023

Alternatively just:

upload_protocol = jlink
debug_tool = jlink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment