Merge pull request #337 from janchrillesen/master

Add JLink upload support for OSX
This commit is contained in:
Roger Clark 2017-09-01 09:28:50 +10:00 committed by GitHub
commit 5d4cbff491
1 changed files with 9 additions and 0 deletions

9
tools/macosx/jlink_upload Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
echo erase > "$1".jlink
echo loadbin "$1" , 0x8000000 >> "$1".jlink
echo r >> "$1".jlink
echo q >> "$1".jlink
/Applications/SEGGER/JLink/JLinkExe -device STM32F103C8 -if SWD -speed auto -CommanderScript "$1".jlink