Arduino hex
DOS script finds Arduino HEX
<dos> rem nikos version REM Find_Hex for Arduino REM Locate the current HEX files from REM use of the Arduino 1.0 compiler SET HEX="" SET EPP="" ECHO OFF CLS C: rem CD \ dir %temp%\*.hex /s /b >HexIsHere.txt dir %temp%\*.eep /s /b >EPPIsHere.txt
ECHO. ECHO. SET /P HEX= <HexIsHere.txt SET /P EPP= <EPPIsHere.txt rem Explorer %HEX% rem "C:\Program Files\Notepad++\notepad++.exe" HexIsHere.txt
REM "C:\Program Files\Notepad++\notepad++.exe" EPPIsHere.txt
copy HexIsHere.txt F:\opt\WORKSPACES\arduino\ALL_HEX copy EPPIsHere.txt F:\opt\WORKSPACES\arduino\ALL_HEX copy %HEX% F:\opt\WORKSPACES\arduino\ALL_HEX copy %EPP% F:\opt\WORKSPACES\arduino\ALL_HEX
REM "C:\Program Files\Atmel\AVR Tools\STK500\STK500.EXE" -dATmega168PA -e -ie%EPP% -pe -ve -cUSB -s -wt -b -I1000000 -J
"C:\Program Files\Atmel\AVR Tools\STK500\STK500.EXE" -dATmega168PA -e -ie%EPP% -pe -ve -if%HEX% -pf -vf -cUSB -s -wt -b -I1000000 -J -fDFF8 -FDFF8-EFF -GFF
PAUSE
</dos>
<dos>
rem nikos version
REM Find_Hex for Arduino
REM Locate the current HEX files from
REM use of the Arduino 1.0 compiler
SET HEX="" SET EPP="" ECHO OFF CLS
CD F:\opt\WORKSPACES\arduino\ALL_HEX\AIRC_REMOTE dir
ECHO. ECHO.
"C:\Program Files\Atmel\AVR Tools\STK500\STK500.EXE" -dATmega168PA -e -ieAIRC_REMOTE.cpp.eep -pe -ve -ifAIRC_REMOTE.cpp.hex -pf -vf -cUSB -s -wt -b -I1000000 -J -fDFF8 -FDFF8-EFF -GFF PAUSE </dos>
AVR COMMAND LINE TOOLS
- Download AVR CommandLineTools
- AVR Studio 4 command line tools. Usefull for automating production programming etc.
Command-line-STK500.EXE programs ARDUINO from DOS script
File:Arduino-hex-2.jpg File:Arduino-hex-3.jpg File:Arduino-hex-4.jpg
- TIP
- Erase all previous folders that contain .hex files, so only one is send for programming
- Script will not work with more than one .hex
- Erase all previous folders that contain .hex files, so only one is send for programming
- STK500 command line User manual