Code::Blocks Forums

User forums => Help => Topic started by: dl2g12 on March 27, 2013, 01:15:00 pm

Title: can't compile for AVR
Post by: dl2g12 on March 27, 2013, 01:15:00 pm
when I create a new project for AVR and atmega644p, it always comes up with a pop-up box saying ' Can not find compiler executable in your configured search path's for GNU AVR GCC Compiler.' And I try to use Setting-Compiler-GNU AVR GCC Compiler-Toolchain executbles . In the Compiler's installation directory, it shows C:\WinAVR which is not exist in the computer and I choose Auto-detect, but it shows 'Could not auto-detect installation path of GNU AVR GCC Compiler. Do you want to use this compiler's default installation directory?'
I download code-blocks from http://www.codeblocks.org/downloads/26 , and I've tried both codeblocks-12.11mingw-setup.exe and codeblocks-12.11mingw-setup_user.exe . But they both show the same problem.  I've tried uninstall and install several times. I install it to D:\ and my system is Windows 7 64 bit.
Could someone help me with it? I am struggling on this for an hour. I'd really appreciate if someone could help!
Title: Re: can't compile for AVR
Post by: stahta01 on March 27, 2013, 01:50:07 pm
Install the GNU AVR GCC Compiler.

Tim S.
Title: Re: can't compile for AVR
Post by: dl2g12 on March 27, 2013, 04:55:17 pm
Install the GNU AVR GCC Compiler.

Tim S.
Thank you for answering, could you please give me a little more detail about where and how I can install it ? I'm a really beginner. And also I thought that both GCC compiler and GDB debugger for AVR target are already included in the MinGW version, but it seems not, is it there?
Title: Re: can't compile for AVR
Post by: oBFusCATed on March 27, 2013, 05:55:30 pm
No, they aren't included.

The AVR compiler I think depends on the board/processor you're targeting, so check the docs or the vendor of you board/processor if there isn't a compiler or instructions how to get the compiler.
Title: Re: can't compile for AVR
Post by: danselmi on March 27, 2013, 06:47:03 pm
Check this one: http://winavr.sourceforge.net/ (http://winavr.sourceforge.net/)
(does not depend on board/processor)