Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: soccerdude on July 26, 2008, 12:41:20 am
-
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
-
Hi soccerdude,
have a look at this thread:
http://forums.codeblocks.org/index.php/topic,8603.0.html
bye,
Mario
-
Thank you, Mario. This solved my problem:
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!!).
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.