Add MCU eraser scripts.

This commit is contained in:
László Monda
2017-04-22 23:19:21 +02:00
parent d27be47fc7
commit 501e33c83d
3 changed files with 10 additions and 0 deletions

2
scripts/erase-mcu.bat Normal file
View File

@@ -0,0 +1,2 @@
"c:\Program Files (x86)\SEGGER\JLink_V612d\JLink.exe" -If SWD -CommandFile erase-mcu.jlink
pause

5
scripts/erase-mcu.jlink Normal file
View File

@@ -0,0 +1,5 @@
speed 4000
device MK22FN512xxx12
connect
erase
exit

3
scripts/erase-mcu.sh Executable file
View File

@@ -0,0 +1,3 @@
#!/bin/sh
JLinkExe -If SWD -CommandFile erase-mcu.jlink