stmos/run.sh

10 lines
339 B
Bash
Raw Normal View History

2018-10-10 23:31:10 -04:00
#!/bin/bash
# @file run.sh
# Starts openocd and connects gdb to the target, for programming/debugging
#
openocd -f /usr/share/openocd/scripts/board/st_nucleo_l476rg.cfg &
2018-10-21 22:34:39 -04:00
sleep 1 # Need to wait some time for openocd to connect
2018-10-10 23:31:10 -04:00
gdb-multiarch -ex "target remote localhost:3333" main.elf
2018-10-21 22:34:39 -04:00
pkill openocd # Ensure openocd exits when we're done