Code::Blocks Forums

User forums => Help => Topic started by: illumin123 on December 26, 2009, 03:04:56 pm

Title: cc1: Fehler: fehlendes Argument für »-mmcu=« (C::B 8.02 | Ubuntu 9.10 x64)
Post by: illumin123 on December 26, 2009, 03:04:56 pm
Hello guy's and Merry Christmas!

I want to use C::B to Programm an atmega32 on an Linux OS. (Ubuntu 9.10 x64)
I use the Wizzard for avr programming and i think i've selectet everything right. (it must be wrong, because it doesn't work. XD)
Okay... If i want to Build my files in the Buildlog Appears:

Code
-------------- Build: Release in test1 ---------------

Compiling: main.c
cc1: Fehler: fehlendes Argument für »-mmcu=«
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
 

I've tryed to uncheck the atmega32 option in the debugger and compiler settings and wrote it to the manualy arguments. But it doesn't work, too. I get the same message.
I have installed the avr-gcc again, because I thought there was an mistake. but nothing get changed.

Thanks for helping a newbie... :-)
Title: Re: cc1: Fehler: fehlendes Argument für »-mmcu=« (C::B 8.02 | Ubuntu 9.10 x64)
Post by: aozima on December 26, 2009, 05:30:08 pm
you must selectet  you cpu type is M32;

If you forget it,
you can:
project --> build options -->project name(not debug & release)-->link setting
addd the other options : -mmcu=atmega32
good luck for you!


and,you can use my wizard!
selectet  the atmega16 default;
selectet  avr-size after!

[attachment deleted by admin]
Title: Re: cc1: Fehler: fehlendes Argument für »-mmcu=« (C::B 8.02 | Ubuntu 9.10 x64)
Post by: illumin123 on December 26, 2009, 05:46:41 pm
Thank you aozima.
Sometimes it is so simple... XD

You are right. I have to set it like:

Code
project --> build options -->project name(not debug & release)-->link setting
addd the other options : -mmcu=atmega32

Now it works fine. Thank you!

edit:

ähm.... Could you tell me how to use your wizzard? I just try a little bit now. but maybe you will be faster with explaining than me witch trying. :-D
Title: Re: cc1: Fehler: fehlendes Argument für »-mmcu=« (C::B 8.02 | Ubuntu 9.10 x64)
Post by: aozima on December 26, 2009, 05:55:07 pm
Extract to  "path\CodeBlocks\share\CodeBlocks\templates\wizard"
overwrite it!

I'm UTC+8,I will sleeping....
Title: Re: cc1: Fehler: fehlendes Argument für »-mmcu=« (C::B 8.02 | Ubuntu 9.10 x64)
Post by: illumin123 on December 26, 2009, 06:00:04 pm
Ah okay. ;-)

UTC +1 XD

Thanks a lot and good nigh!