Commit c5bc9f8f authored by frodevan's avatar frodevan

Taktlause added

parents bac8b2b6 2e1f77f9
This diff is collapsed.
<<<<<<< HEAD
@echo off
IF [%1]==[] goto quit
echo Press Ctrl-C to exit
......@@ -10,4 +11,27 @@ pause
goto start
:quit
echo "Error: file argument missing (ex: imponator_omega.hex)"
\ No newline at end of file
echo "Error: file argument missing (ex: imponator_omega.hex)"
=======
@echo off
IF [%1]==[] (
set HEXFILE=imponator_omega.hex
) ELSE set HEXFILE=%1
IF EXIST %HEXFILE% (
echo Press Ctrl-C to exit
) ELSE goto quit
PATH=%PATH%;%programfiles(x86)%\Atmel\Studio\7.0\atbackend
:start
echo *Writing fuses...*
atprogram -t stk600 -i isp -d atmega168pa -cl 250khz write -fs --values E2DDF8
echo *Programming flash...*
atprogram -t stk600 -i isp -d atmega168pa -cl 1mhz program -fl -f %HEXFILE% --chiperase --verify
pause
goto start
:quit
echo "Error: no firmware file found (try 'program_imponator.bat [HEX/ELF file]')"
pause
>>>>>>> 2e1f77f9ec353bd6d0565acf9ee9c382a1b1ebc1
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment