Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@fboris
Created November 3, 2017 16:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fboris/c52a43eb474aa7adb773d7eff49794f2 to your computer and use it in GitHub Desktop.
Save fboris/c52a43eb474aa7adb773d7eff49794f2 to your computer and use it in GitHub Desktop.
jlink swd
# 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