reflow-oven-control-sw/stm-firmware/program-device.sh

18 lines
318 B
Bash
Raw Normal View History

#!/bin/bash
JLinkGDBServer -if SWD -device STM32F407VE &
sleep 2
# Check if GDB server is still running
gdbpid=`pidof JLinkGDBServer`
if [[ $gdbpid == "" ]]; then
echo ""
echo "GDB Server not running! Check target connection."
exit
fi
arm-none-eabi-gdb -x program-device.gdb reflow-controller.elf
kill $gdbpid