Code::Blocks Forums

User forums => Embedded development => Topic started by: drnicolas on February 20, 2011, 02:22:15 pm

Title: Codeblocks generates empty "-mmcu=" in makefile
Post by: drnicolas on February 20, 2011, 02:22:15 pm
 :shock:
I am new to Codeblocks and this is my first try to convert an existing project with 7 source files to codeblocks

The first run with WinAVR gives me the following lines:
avr-gcc.exe -Wall -mmcu= -DF_CPU=16000000UL  -mmcu=at90can128 -Wall -g     -c ..\..\CAN-Adapter\CANUSB-Adapter\Firmware\CAN2USB_Konverter.c -o obj\Debug\CAN-Adapter\CANUSB-Adapter\Firmware\CAN2USB_Konverter.o
cc1.exe: error: missing argument to "-mmcu="

AT first, I thought I have forgotten to hook one of the target -µC, but after hooking the AT90CAN128, I always get this empty -mmcu .... - and I can't find the reason.
Title: Re: Codeblocks generates empty "-mmcu=" in makefile
Post by: oBFusCATed on February 20, 2011, 02:37:39 pm
Check you options in Project -> Build options and in Settings -> Compiler & Debugger -> Compiler -> [your compiler]
Title: Re: Codeblocks generates empty "-mmcu=" in makefile
Post by: scarphin on April 10, 2011, 02:51:57 pm
I can't find anything called cc1.exe in the latest winavr distribution, what is it used for? Are u sure u have the correct settings for compiler and compiler paths?
Title: Re: Codeblocks generates empty "-mmcu=" in makefile
Post by: oBFusCATed on April 10, 2011, 03:00:28 pm
Most of the time gcc calls it and it is part of gcc's distribution.
On my windows install it is in "c:\MinGW\libexec\gcc\mingw32\4.4.0\"