Last active
October 26, 2021 10:19
-
-
Save sdrshnptl/70d5a06294f186c2e9e04bd28bf9da65 to your computer and use it in GitHub Desktop.
Arduino DUE jtag segger j-link SWD in VS Code platformio
This file contains 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
[env:due] | |
platform = atmelsam | |
board = due | |
framework = arduino | |
monitor_speed = 115200 | |
;upload_speed = 115200 | |
debug_build_flags = -O1 -ggdb3 -g3 ;//Resolve compile issue | |
debug_tool = custom ;//j-link segger in SWD mode | |
debug_port = :2331 | |
debug_init_break = tbreak app_main ;//Stop at code executation on reset | |
debug_server = | |
C:/Program Files/SEGGER/JLink/JLinkGDBServerCL.exe ;//Locate file from installation | |
-singlerun | |
-if | |
SWD | |
-select | |
USB | |
-port | |
2331 | |
-device | |
SAM3X8E ;// Select device properly | |
debug_init_cmds = | |
define pio_reset_halt_target | |
monitor reset | |
monitor halt | |
end | |
define pio_reset_run_target | |
monitor clrbp | |
monitor reset | |
monitor go | |
end | |
target extended-remote $DEBUG_PORT | |
monitor clrbp | |
monitor speed auto | |
pio_reset_halt_target | |
$LOAD_CMDS | |
$INIT_BREAK |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment