News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

can't compile for AVR

Started by dl2g12, March 27, 2013, 01:15:00 PM

Previous topic - Next topic

dl2g12

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!

stahta01

Install the GNU AVR GCC Compiler.

Tim S.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

dl2g12

Quote from: stahta01 on March 27, 2013, 01:50:07 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?

oBFusCATed

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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

danselmi

Check this one: http://winavr.sourceforge.net/
(does not depend on board/processor)
spell checker plugin: [url="http://developer.berlios.de/projects/spellchecker/"]http://developer.berlios.de/projects/spellchecker/[/url]
nassi shneiderman plugin: [url="http://developer.berlios.de/projects/nassiplugin"]http://developer.berlios.de/projects/nassiplugin[/url]