Electronic – Arduino code compiles both on Eclipse and on AVR Studio 5, but only Eclipse version is functional

arduinoavreclipse

I'm trying to choose an IDE for arduino development. I installed both Eclipse and AVR Studio 5. And configured them using the instruction on the Arduino site (for Eclipse) and those two tutorials (AVR Freaks, EngBlaze) for the AVR Studio.

I've written a simple project in Eclipse. The code compiles and work as expected when uploaded to the Arduino (Atmega2560). I then used the same code and created an AVR Studio project.

On AVR Studio my code compiles just fine (so it seems) but when I upload it to the board (using the same avrdude configuration) the board only flashes the L led (pin 13) at a what seems like 1 second rate.

Ideas anyone?

Best Answer

AVR Studio uses the atmel compiler (IAR). What compiler does Eclipse use (I'm guessing gcc). There are differences in the extensions and in the standard libraries for different compilers.