hexagon5un / AVR-Programming

Code examples for the book "Make: AVR Programming"
http://littlehacks.org/AVR-Programming
MIT License
744 stars 340 forks source link

Windows 10. avr-gcc and avrdude want different MCU strings #41

Closed cmacu4 closed 5 years ago

cmacu4 commented 5 years ago

At first I hit "make flash" and get this: avrdude I change "atmega16a" to "m16" in the Makefile and it worked. But then i edited the code and when compiling it I get this: avrgcc I change it back to "atmega16". It compiles but avrdude complains again. To fix this i replaced "MCU" in line 51 with the appropriate string for avr-gcc ("atmega16a" in my case) Just thought I should mention this here.