News:

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

Main Menu

How to build an AVR project

Started by soccerdude, July 26, 2008, 12:41:20 AM

Previous topic - Next topic

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


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


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.