Go Down

Topic: Sketch's not running on DUE (Read 2836 times) previous topic - next topic


I have just received my first Arduino's, a DUE and I also purchased a UNO.
I am using the Arduino 1.5.3 IDE
I have uploaded "hello world" and "blink" sketches to the UNO and they both work fine  :)
I have changed the board to "Arduino Due (programming port) " and uploaded the same sketches.
The lower pane of the IDE reports:-

Verify successful
Set boot flash true
CPU reset.

Green and orange LED's are on. The LED's next to the power socket flash while uploading.
The sketch's don't appear to run  :(. With the "Hello world" sketch on the Due there is nothing in the serial monitor, and no flashing LED with the blink sketch.

Can anybody help to get the Due board running ?


This Blink (slightly modified for fun) Sketch works on my Due R3:

Code: [Select]

// Pin 13 has an LED connected on the Arduino Due board.
//  (yellow, next to the power pin)
// give it a name:
int led = 13;

// the setup routine runs once when you press reset:
void setup() {               
  // initialize the digital pin as an output.
  pinMode(led, OUTPUT);     

// the loop routine ... loops
void loop() {
  digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);               // wait for 0.1 second
  digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW
  delay(400);               // wait for 0.4 second


Sep 11, 2013, 04:21 pm Last Edit: Sep 11, 2013, 04:52 pm by Ewan Reason: 1
Thanks Gary, I got your blink sketch working on the both boards  :).
The problem was I didn't know I needed to push the reset button to start the sketch running.

Still can't get anything in the serial monitor with the hello world sketch ????


That is can't get anything in the serial monitor when using the Due, the UNO works fine


Don't know what I did, but it's all working now


With my three Due R3's, they all reset automatically after the
update of the program, and start running without needing
to press any "reset" button.

Do you have a genuine R3, or a clone of some sort?

Yes, others seem to report similar "flaky" problems.

Is there an official "fix" to this flaky reset problem?


Yep, its a clone  :smiley-roll-blue:.  Somewhere, I read you can burn the standard boot loader into RAM and disable the ROM boot loader, that was new in the DUE


Go Up