run_gdb_v1_1.sh 600 B

1234567891011121314151617
  1. #!/bin/bash
  2. # This script runs GDB with openocd and stlink to
  3. # allow debugging and seeing the SWO log output in realtime.
  4. killall orbuculum
  5. killall orbcat
  6. rm -f swo.log
  7. arm-none-eabi-gdb \
  8. -iex 'target extended | openocd -f interface/stlink.cfg -f target/stm32f1x.cfg -c "gdb_port pipe"' \
  9. -iex 'mon reset_config srst_only' \
  10. -iex 'mon halt' \
  11. -iex 'mon tpiu config internal swo.log uart false 38400000 2000000' \
  12. -iex 'shell bash -m -c "orbuculum -f swo.log &"' \
  13. -iex 'shell bash -m -c "orbcat -c 0,%c &"' \
  14. .pio/build/ZuluSCSIv1_1/firmware.elf