Author Topic: creating an avr project for atxmega256a3b  (Read 5158 times)

Offline arechavel

  • Single posting newcomer
  • *
  • Posts: 6
creating an avr project for atxmega256a3b
« 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

Offline jens

  • Administrator
  • Lives here!
  • *****
  • Posts: 7265
    • Jens' unofficial debian-repository for the Code::Blocks - IDE
Re: creating an avr project for atxmega256a3b
« Reply #1 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 ?

Offline arechavel

  • Single posting newcomer
  • *
  • Posts: 6
Re: creating an avr project for atxmega256a3b
« Reply #2 on: May 15, 2012, 03:35:57 pm »
Yes, I just verified it

Offline arechavel

  • Single posting newcomer
  • *
  • Posts: 6
Re: creating an avr project for atxmega256a3b
« Reply #3 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.

Offline arechavel

  • Single posting newcomer
  • *
  • Posts: 6
Re: creating an avr project for atxmega256a3b
« Reply #4 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.