Created
November 3, 2017 16:51
-
-
Save fboris/c52a43eb474aa7adb773d7eff49794f2 to your computer and use it in GitHub Desktop.
jlink swd
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
# openocd setup | |
source [find interface/jlink.cfg] | |
transport select swd | |
source [find target/stm32f1x.cfg] | |
# write image and restart target | |
proc program () { | |
init | |
reset init | |
halt | |
flash write_image erase out/test.bin 0x08000000 | |
reset run | |
shutdown | |
} | |
# reset target and attach to debug | |
proc attach () { | |
init | |
reset run | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment