Code::Blocks Forums

User forums => Embedded development => Topic started by: arechavel on May 14, 2012, 11:26:14 pm

Title: creating an avr project for atxmega256a3b
Post by: arechavel on May 14, 2012, 11:26:14 pm
Hello,

  I created an avr project for the atxmega256a3b, I installed on my linux pc avr-gcc 4.5.1
  I configured the settings of the compiler as follows
  from the menu > settings > compiler and debugger - in selected compiler drop down list box - selected GNU AVR GCC Compiler, then selected
  the TAB toolchain executables and in the compiler installation directory text box typed in the path to the compiler
 
  I also wrote a little program for testing and then I tried to build it

  It displays
 
  Compiling: main.c
  /bin/sh: avr-gcc: command not found

  what am I missing that it does not work ???

 thank you
Title: Re: creating an avr project for atxmega256a3b
Post by: Jenna on May 15, 2012, 12:09:13 am
Are you sure the compiler is installed and the executables are located in the bin-folder below the compilers's master path ?
Title: Re: creating an avr project for atxmega256a3b
Post by: arechavel on May 15, 2012, 03:35:57 pm
Yes, I just verified it
Title: Re: creating an avr project for atxmega256a3b
Post by: arechavel on May 15, 2012, 03:53:17 pm
Also when I type in avr-gcc on the terminal I get
avr-gcc: no input files

which means the compiler is installed.
Title: Re: creating an avr project for atxmega256a3b
Post by: arechavel on May 15, 2012, 04:01:17 pm
My compiler installation path was wrong
it was
/usr/local/avr8-gnu-toolchain-linux_x86/bin

I changed it to

/usr/local/avr8-gnu-toolchain-linux_x86

Now it works

Thank you.