User forums > Using Code::Blocks
AVR XMEGA ?
Jenna:
Have a look inside the projects options, the target options and the global compiler options in "Settings -> Compiler and Debugger -> Global compiler settingss -> GNU AVR GCC Compiler (or however it is called on windows and only if you use this toolchain, what's recommended I think)" , to be absolutely sure that nothing resides there, that has accidently slipped in.
RoboMike:
There was one more in there:
avr-gcc.exe -Wall -mmcu= -DF_CPU=16000000UL -g -c main.c -o obj\Debug\main.o
cc1.exe: error: missing argument to "-mmcu="
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
As you can see, however, the first -mmcu is not getting set. I can't seem to find a way to set this via the UI - is there?
How are the other AVR settings built into C::B ? Maybe I can copy / edit and create another one?
RoboMike:
Now this is interesting .
After looking for mmcu I found the settings in the MinGW\info\as.info where I found avr5 setting - and thought it might work.
So, I just selected that and also got:
avr-gcc.exe -Wall -mmcu= -DF_CPU=16000000UL -mmcu=avr5 -g -c main.c -o obj\Debug\main.o
cc1.exe: error: missing argument to "-mmcu="
Process terminated with status 1 (0 minutes, 0 seconds)
0 errors, 0 warnings
Am I doing something wrong, or have I found a bug? :?
RoboMike:
Ok. So I created a new project , selected AVR5.
Now, I was able to change mmcu to atxmega128a1 in the build options -> linker settings page.
However, when I compile the application the settings that are passed to the compiler are:
avr-gcc.exe -mmcu=avr5 -Wall -DF_CPU=16000000UL -g .....
:(
Any ideas?
Jenna:
Have a look at the projects "Build options -> Compiler flags".
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version