0
\$\begingroup\$

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

\$\endgroup\$
  • \$\begingroup\$ Does it work if you upload it with Arduino IDE? \$\endgroup\$ – posipiet Feb 20 '12 at 18:51
  • \$\begingroup\$ "with an additional main()"... So you have 2 mains? \$\endgroup\$ – Kellenjb Feb 20 '12 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\$ – user1159898 Feb 20 '12 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 Feb 21 '12 at 12:35
  • \$\begingroup\$ Have you tried pressing reset on the board after loading code? \$\endgroup\$ – Toby Jaffey Feb 21 '12 at 17:18
1
\$\begingroup\$

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.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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