Commit 05d80d77 authored by Torbjørn Viem Ness's avatar Torbjørn Viem Ness

Oppdaterte skriptet til å defaulte til omega-koden, samt man trenger ikke...

Oppdaterte skriptet til å defaulte til omega-koden, samt man trenger ikke lenger å starte det gjennom atmel studio command-line...
parent 1abdd276
@echo off
IF [%1]==[] goto quit
echo Press Ctrl-C to exit
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\Atmel Studio 6.2\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 %1 --verify
atprogram -t stk600 -i isp -d atmega168pa -cl 1mhz program -fl -f %HEXFILE% --verify
pause
goto start
:quit
echo "Error: file argument missing (ex: imponator_omega.hex)"
\ No newline at end of file
echo "Error: no firmware file found (try 'program_imponator.bat [HEX/ELF file]')"
pause
\ No newline at end of file
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