@echo off avr-gcc -Os -mmcu=attiny2313 %0.c -o elffile if ERRORLEVEL 1 goto ERROR rem avr-gcc -Os -g -mmcu=attiny2313 -Wl,-Map,%0.map -o elffile objfile rem avr-objdump -h -S elffile >%0.lst avr-size -x elffile avr-objcopy -O ihex elffile hexfile avrspx -pu -d5 -fl11101101 hexfile if ERRORLEVEL 1 pause rem erase objfile erase elffile erase hexfile goto END :ERROR pause :END