I'm trying to compile a simple project to program some of my ATMEGA uCs. When I run it I get this output:
Build succeeded with 0 Warnings...
avr-gcc.exe -mmcu=avr5 -Wall -gdwarf-2 -std=gnu99 -Os -funsigned-char -funsigned-bitfields -fpack-struct -fshort-enums -MD -MP -MT test.o -MF dep/test.o.d -c ../test.c
cc1: error: invalid option `mcu=avr5'
I'm doing this using AVR Studio 4.13 SP1 with the WinAVR 20070525 build on Windows Vista 32-bit. I've tried multiple values in make for MCU for 3 of my different uCs as well as levels like 'avr5' and none of them work. This happens on any project I try to build, including my new one, ones from this site, and even some old projects that I knew previously compiled.
Going to the \bin directory in WinAVR and running avr-gcc.exe directly with a dummy output gives the same output:
C:\WinAVR\bin>avr-gcc -mmcu=atmega16 main.c
cc1: error: invalid option `mcu=atmega16'
Emphases are mine.
Any thoughts? Thanks in advance.