Advertisement
Guest User

Untitled

a guest
May 25th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. FOR %%I IN (.) DO SET projekt=%%~nI%%~xI
  2.  
  3. C:\avr\bin\avr-gcc -c -mmcu=atmega32 -Wall -Werror -Os -DF_CPU=16000000UL %projekt%.c -o %projekt%.o
  4.  
  5. IF %ERRORLEVEL% EQU 0 (
  6. C:\avr\bin\avr-gcc -mmcu=atmega32 %projekt%.o -o %projekt%.elf
  7. C:\avr\bin\avr-objcopy -O ihex -R .eeprom %projekt%.elf %projekt%.hex
  8. C:\"Program Files"\KamPROGAVR\KamPROGAVRc -d -f %projekt%.hex
  9. )
  10.  
  11. cmd /k
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement