blob: 8253d059c338c72bb62afc97ec1ae3808c758c81 (
plain)
1
2
3
4
5
6
7
8
9
|
#!/bin/bash
# @file run.sh
# Starts openocd and connects gdb to the target, for programming/debugging
#
openocd -f /usr/local/share/openocd/scripts/board/st_nucleo_l4.cfg &
sleep 1 # Need to wait some time for openocd to connect
gdb-multiarch -ex "target remote localhost:3333" main.elf
pkill openocd # Ensure openocd exits when we're done
|