Skip to content

Instantly share code, notes, and snippets.

@rubeniskov
Created October 21, 2020 18:39
Show Gist options
  • Save rubeniskov/ce217245a85558f3a971869ff7c57a51 to your computer and use it in GitHub Desktop.
Save rubeniskov/ce217245a85558f3a971869ff7c57a51 to your computer and use it in GitHub Desktop.
arm-none-eabi-gdb +openocd
arm-none-eabi-gdb \
-iex 'target extended | openocd \
--debug \
-f interface/stlink.cfg \
-f target/stm32f1x.cfg \
-c "gdb_port pipe"' \
-iex 'mon halt' \
-iex 'mon tpiu config internal swo.log uart false 2000000' \
-iex 'shell bash -m -c "orbuculum -f swo.log &"' \
-iex "file $(pwd)/ucm.elf" \
-iex 'shell bash -m -c "orbcat -c 0,%c &"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment