Compare commits
2 Commits
c3be39b4e5
...
3781ecb669
Author | SHA1 | Date | |
---|---|---|---|
3781ecb669 | |||
4c5b3add1d |
7
stm-firmware/program-device.gdb
Normal file
7
stm-firmware/program-device.gdb
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
target extended-remote :2331
|
||||||
|
monitor reset
|
||||||
|
load
|
||||||
|
monitor reset
|
||||||
|
kill
|
||||||
|
quit
|
||||||
|
|
18
stm-firmware/program-device.sh
Executable file
18
stm-firmware/program-device.sh
Executable 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
|
Loading…
x
Reference in New Issue
Block a user