diff --git a/scripts/erase-mcu.bat b/scripts/erase-mcu.bat new file mode 100644 index 0000000..22af9a1 --- /dev/null +++ b/scripts/erase-mcu.bat @@ -0,0 +1,2 @@ +"c:\Program Files (x86)\SEGGER\JLink_V612d\JLink.exe" -If SWD -CommandFile erase-mcu.jlink +pause diff --git a/scripts/erase-mcu.jlink b/scripts/erase-mcu.jlink new file mode 100644 index 0000000..0e37aa5 --- /dev/null +++ b/scripts/erase-mcu.jlink @@ -0,0 +1,5 @@ +speed 4000 +device MK22FN512xxx12 +connect +erase +exit diff --git a/scripts/erase-mcu.sh b/scripts/erase-mcu.sh new file mode 100755 index 0000000..e8638ac --- /dev/null +++ b/scripts/erase-mcu.sh @@ -0,0 +1,3 @@ +#!/bin/sh + +JLinkExe -If SWD -CommandFile erase-mcu.jlink