User forums > Using Code::Blocks

How to build an AVR project

(1/1)

soccerdude:
Hello,

I'm trying to build an AVR project for my atTiny24 chip but i'm not sure what to do.  C::B keeps complaining that the project is using an invalid compiler [YOUR ANSWER IS ALREADY THERE. SEARCH THE FORUMS!].  I tried building the project with the "Tiny C Compiler" and the "GNU AVR GCC Compiler" to no avail.  Could anyone help?

Also, is there a good tutorial on how to program AVR chips using C::B?

Thanks

mariocup:
Hi soccerdude,

have a look at this thread:

http://forums.codeblocks.org/index.php/topic,8603.0.html

bye,

Mario

soccerdude:
Thank you, Mario.  This solved my problem:
 

--- Quote from: mariocup on June 14, 2008, 10:43:32 pm ---go to menu "Settings->Compiler and debugger" of codeblocks. Then select you compiler in the drog down list and choose the tab "Toolchain executables". Now configure the path of the compiler binaries e.g. /usr/local. Do not add the bin-path (read the note!!).


--- End quote ---

Just a note for future readers: there are different "bin" folders in the WinAVR folder (inside "utils" and "avr" for example).  Make sure you find all the programs listed in C::B exactly as they appear in "Toolchain Executables" by adding the necessary paths under the "Additional Paths" tab.

Navigation

[0] Message Index

Go to full version