Author Topic: can't compile for AVR  (Read 6247 times)

Offline dl2g12

  • Single posting newcomer
  • *
  • Posts: 2
can't compile for AVR
« 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!

Online stahta01

  • Lives here!
  • ****
  • Posts: 7591
    • My Best Post
Re: can't compile for AVR
« Reply #1 on: March 27, 2013, 01:50:07 pm »
Install the GNU AVR GCC Compiler.

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

Offline dl2g12

  • Single posting newcomer
  • *
  • Posts: 2
Re: can't compile for AVR
« Reply #2 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?

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: can't compile for AVR
« Reply #3 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.
(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!]

Offline danselmi

  • Developer
  • Almost regular
  • *****
  • Posts: 205
Re: can't compile for AVR
« Reply #4 on: March 27, 2013, 06:47:03 pm »
Check this one: http://winavr.sourceforge.net/
(does not depend on board/processor)