@echo off cd c avr-gcc -Os -mmcu=atmega328p timer328.c -o bin.elf if ERRORLEVEL 1 goto ERROR rem avr-gcc -Os -g -mmcu=atmega328p -Wl,-Map,timer.map -o bin.elf bin.o rem avr-objdump -h -S bin.elf >timer.lst avr-size -x bin.elf avr-objcopy -O ihex bin.elf bin.hex hidspx -pu -d5 -fl11110111 bin.hex if ERRORLEVEL 1 pause erase bin.elf erase bin.hex goto END :ERROR pause :END cd ..