You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
341 B
Bash

#!/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 &
6 years ago
sleep 1 # Need to wait some time for openocd to connect
gdb-multiarch -ex "target remote localhost:3333" main.elf
6 years ago
pkill openocd # Ensure openocd exits when we're done