I just started with my first Arduino project. I am trying out the Blink example. I have set up eclipse for arduino 1.0 and the code compiles without errors (both lib project and blink project). I used the tutorial at: http://arduino.cc/playground/Code/Eclipse When I upload the code to the board using the upload button avrdude says successful upload but the code never runs. I am using an unmodified blink code supplied with an additional main() to sequence the init, setup and loop.

What am I missing? Can someone help me out?

Edit: Here is the code I am trying to run. It is the eclipse blink project linked at the end of the tutorial above. Link: https://github.com/ricovangenugten/Arduino-Blink-Eclipse-Project/tree/master/Blink

  • \$\begingroup\$ Does it work if you upload it with Arduino IDE? \$\endgroup\$
    – posipiet
    Commented Feb 20, 2012 at 18:51
  • \$\begingroup\$ "with an additional main()"... So you have 2 mains? \$\endgroup\$
    – Kellenjb
    Commented Feb 20, 2012 at 19:17
  • \$\begingroup\$ It works if I upload the code using the arduino IDE. When I add a main function to sequence the code in eclipse IDE it does not work. My library ArduinoCore does not have a main. \$\endgroup\$ Commented Feb 20, 2012 at 22:41
  • \$\begingroup\$ I am still unclear as to what you have done. It sounds like you are saying that the original code works, but when you change it, it no longer works. If this is the case edit the question to add the code you are adding. \$\endgroup\$
    – Kellenjb
    Commented Feb 21, 2012 at 12:35
  • \$\begingroup\$ Have you tried pressing reset on the board after loading code? \$\endgroup\$ Commented Feb 21, 2012 at 17:18

1 Answer 1


This question has been open for a while and I have been scratching my head for a long time but it finally worked just minutes ago!!!

This is what finally worked for me: http://www.arduino.cc/playground/Code/Eclipse#Arduino_core_library In this tutorial, scroll down to "Arduino target reset for uploading" look under the Linux section for the following instructions: "Instead of using programmer stk500v1 with AVRdude, use programmer arduino and it creates the reset automatically. In the project properties, change AVR -> AVRDude, Programmer tab, Programmer configuration. Edit the existing one or add a new one."

Although I am using win7 x64 this change worked for me when I used it with a baud rate of 115200.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.