Compare commits

...

2 Commits

Author SHA1 Message Date
3781ecb669 Update programming scripts 2020-02-15 23:09:23 +01:00
4c5b3add1d Add scripts for device programming using JLINK 2020-02-15 22:25:53 +01:00
2 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,7 @@
target extended-remote :2331
monitor reset
load
monitor reset
kill
quit

18
stm-firmware/program-device.sh Executable file
View File

@ -0,0 +1,18 @@
#!/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
sleep 2
kill $gdbpid