Skip to content

Instantly share code, notes, and snippets.

@ladislas

ladislas/openocd.sh

Created Jan 7, 2020
Embed
What would you like to do?
/usr/local/bin/openocd \
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/board/st_nucleo_wb55.cfg \
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/interface/stlink-v2-1.cfg \
-c init \
-c "reset init"
/usr/local/bin/openocd \
-f /usr/local/Cellar/open-ocd/HEAD-db23c13/share/openocd/scripts/board/st_nucleo_wb55.cfg \
-c "init; reset halt"
arm-none-eabi-gdb --args \
-target-select remote localhost:3333 \
-file-exec-and-symbols "./BUILD/NUCLEO_WB55RG/GCC_ARM-DEBUG/HelloWorld.elf" \
-interpreter-exec console "monitor reset" \
-interpreter-exec console "monitor halt" \
-interpreter-exec console "monitor arm semihosting enable" \
-target-download
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment