News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

cc1: Fehler: fehlendes Argument für »-mmcu=« (C::B 8.02 | Ubuntu 9.10 x64)

Started by illumin123, December 26, 2009, 03:04:56 PM

Previous topic - Next topic

illumin123

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:


-------------- 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... :-)

aozima

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]
Sorry for my poor english.

illumin123

Thank you aozima.
Sometimes it is so simple... XD

You are right. I have to set it like:


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

aozima

Extract to  "path\CodeBlocks\share\CodeBlocks\templates\wizard"
overwrite it!

I'm UTC+8,I will sleeping....
Sorry for my poor english.

illumin123