Help using Eclipse with AVR

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi
I'm trying to get Eclipse to work for AVR but with no luck.

I'm using Eclipse 3.3 Europa with CDT version 4.0 and the avr-eclipse plugin version 20070807 from this site http://sourceforge.net/projects/avr-eclipse/

I extracted the two plugin folders into the eclipse plugin folder and copied the bat file into the winavr/bin directory.

I made a new project by File -> New C Project -> AVR Cross Target Project. I added a source file, but when i try to build it, the console says:

make -k all
Building target: as.elf
Invoking: Linker
avr-gcc -Wl,-Map,.map -mmcu=atmega16 -o"as.elf" ./as.obj
c:/winavr-20070525/bin/../lib/gcc/avr/4.1.2/../../../../avr/lib/avr5/crtm16.o: In function `__vectors':
../../../../../avr-libc-1.4.6/crt1/gcrt1.S:51: undefined reference to `main'
make: *** [as.elf] Error 1
make: Target `all' not remade because of errors.

In the problems pane, this appears:

../../../../../avr-libc-1.4.6/crt1/gcrt1.S undefined reference to `main'

When i try to 'Run as' the .c file, as 'Run Local C/C++ Application', I get the error 'Launch failed no binaries'

What should i do?
Any help is appreciated.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Aak wrote:
Hi
../../../../../avr-libc-1.4.6/crt1/gcrt1.S undefined reference to `main'

When i try to 'Run as' the .c file, as 'Run Local C/C++ Application', I get the error 'Launch failed no binaries'

What should i do?
Any help is appreciated.

Add a routine named main().

Knut

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I found the fault! There was a main() function, but I hadn't clicked the Save button. :oops:

Now it works. Thanks.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Ok, now I can't get the program to run. Is it possible to run and debug programs in Eclipse. How do i do it?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I would also like to make debugger work within eclipse, if anyone knows how to do that, please advice us how to do that.

Currently when i try to setup debug launcher, it is saying [Debugger]: The CPU is not supported by selected debugger.

Thanks

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Make a search for "eclipse" in the search box to the left.

Regards
Vidar (Z)

----------------------------------------------------------

"The fool wonders, the wise man asks"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hmm, I had searched before creating this topic, and didn't find any solution. So I guess simulating with Eclipse is not possible right now..

Thanks