Added JLink upload to Windows and fixed intermitten JLink upload issues
This commit is contained in:
parent
293b693996
commit
6bbb5dc506
|
@ -215,6 +215,7 @@ genericSTM32F103C.menu.upload_method.BMPMethod.build.upload_flags=-DCONFIG_MAPLE
|
||||||
genericSTM32F103C.menu.upload_method.jlinkMethod=JLink
|
genericSTM32F103C.menu.upload_method.jlinkMethod=JLink
|
||||||
genericSTM32F103C.menu.upload_method.jlinkMethod.upload.protocol=jlink
|
genericSTM32F103C.menu.upload_method.jlinkMethod.upload.protocol=jlink
|
||||||
genericSTM32F103C.menu.upload_method.jlinkMethod.upload.tool=jlink_upload
|
genericSTM32F103C.menu.upload_method.jlinkMethod.upload.tool=jlink_upload
|
||||||
|
genericSTM32F103C.menu.upload_method.jlinkMethod.build.upload_flags=-DCONFIG_MAPLE_MINI_NO_DISABLE_DEBUG=1 -DSERIAL_USB -DGENERIC_BOOTLOADER
|
||||||
|
|
||||||
########################### Generic STM32F103R ###########################
|
########################### Generic STM32F103R ###########################
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,7 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo loadbin "$1" , 0x8000000 > "$1".jlink
|
|
||||||
|
echo erase > "$1".jlink
|
||||||
|
echo loadbin "$1" , 0x8000000 >> "$1".jlink
|
||||||
echo r >> "$1".jlink
|
echo r >> "$1".jlink
|
||||||
echo q >> "$1".jlink
|
echo q >> "$1".jlink
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,19 @@
|
||||||
|
rem: @echo off
|
||||||
|
rem: Note %~dp0 get path of this batch file
|
||||||
|
rem: Need to change drive if My Documents is on a drive other than C:
|
||||||
|
set driverLetter=%~dp0
|
||||||
|
set driverLetter=%driverLetter:~0,2%
|
||||||
|
%driverLetter%
|
||||||
|
cd %~dp0
|
||||||
|
rem: the two line below are needed to fix path issues with incorrect slashes before the bin file name
|
||||||
|
set tmpBinFilePath=%1
|
||||||
|
set tmpBinFilePath=%tmpBinFilePath:/=\%
|
||||||
|
|
||||||
|
rem: create commander script file with the tmp bin that the Arduino IDE creates
|
||||||
|
|
||||||
|
@echo erase > %tmpbinfilepath%.jlink
|
||||||
|
@echo loadbin %tmpbinfilepath% , 0x8000000 >> %tmpbinfilepath%.jlink
|
||||||
|
@echo r >> %tmpbinfilepath%.jlink
|
||||||
|
@echo q >> %tmpbinfilepath%.jlink
|
||||||
|
|
||||||
|
JLink.exe -device STM32F103C8 -if SWD -speed auto -CommanderScript %tmpBinFilePath%.jlink
|
Loading…
Reference in New Issue