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

Offline illumin123

  • Single posting newcomer
  • *
  • Posts: 3
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... :-)

Offline aozima

  • Multiple posting newcomer
  • *
  • Posts: 12
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.

Offline illumin123

  • Single posting newcomer
  • *
  • Posts: 3
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
« Last Edit: December 26, 2009, 05:49:19 pm by illumin123 »

Offline aozima

  • Multiple posting newcomer
  • *
  • Posts: 12
Extract to  "path\CodeBlocks\share\CodeBlocks\templates\wizard"
overwrite it!

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

Offline illumin123

  • Single posting newcomer
  • *
  • Posts: 3
Ah okay. ;-)

UTC +1 XD

Thanks a lot and good nigh!