Add scripts for device programming using JLINK
This commit is contained in:
parent
c3be39b4e5
commit
4c5b3add1d
|
@ -0,0 +1,4 @@
|
|||
target extended-remote :2331
|
||||
load
|
||||
monitor reset
|
||||
quit
|
|
@ -0,0 +1,17 @@
|
|||
#!/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
|
Loading…
Reference in New Issue