Files
KaOs d270131062 RevE-light development version
WARNING: The files in this commit are our current development version. The hardware and software is not functional yet - so do not use it. We will not answer any support inquiry regarding this version at the moment.
2017-11-23 14:40:40 +00:00

22 lines
763 B
Batchfile

@ECHO OFF
REM This script programs the Chameleon using batchisp (Atmel Flip) and DFU (device firmware upgrade via USB)
REM You need to install Flip, otherwise it does not work
REM Make sure to adjust the COMPORT variable to the actual com port the CDC Device enumerates as
REM This is necessary to send the upgrade command and thus set the chameleon into DFU mode
SET COMPORT=COM5
SET TIMEOUT=5
SET COMMAND=UPGRADE
ECHO Trying to set bootloader mode on Chameleon-Mini on %COMPORT%
@MODE %COMPORT% baud=11 parity=n data=8 stop=1 to=off xon=off odsr=off octs=off dtr=off rts=off idsr=off > nul
@ECHO. > \\.\%COMPORT%
@ECHO %COMMAND% > \\.\%COMPORT%
ECHO Waiting for DFU Bootloader
ping 127.0.0.1 -n %TIMEOUT% -w 1000 > nul
ECHO Start Programming
make dfu-flip