Go Down

Topic: Nothing appears on arduino DUE screen (Read 1 time) previous topic - next topic

panpap

Mar 07, 2014, 10:48 am Last Edit: Mar 07, 2014, 11:04 am by panpap Reason: 1
Hello all.

I am trying to run a very simple "Hello World" code, but nothing appears on my serial screen
Evetything looks fine, arduino is connected, the code is compiled, and succesfully verified. But nothing appears on screen. Here is my code, any ideas?

void setup()                    // run once, when the sketch starts
{
 Serial.begin(9600);           // set up Serial library at 9600 bps
 

}

void loop()                       // run over and over again
{
Serial.println("Hello world!");        // prints hello with ending line break                            
}


panpap

Still nothing, in all the computers i've tried!

Any help? Please!

Gericom

Did you connect using programming or native port?
Subscribe my youtube channel: http://www.youtube.com/user/MKDS3

panpap

#4
Mar 12, 2014, 09:08 am Last Edit: Mar 12, 2014, 09:23 am by panpap Reason: 1
native port. When i use programming port i get the following error:

SAM-BA operation failed

Patouf

If you use the native port you muste use "SerialUSB" for communication with the computer.
L.C.

Gericom


If you use the native port you muste use "SerialUSB" for communication with the computer.

Exactly. Thats why I asked.
Subscribe my youtube channel: http://www.youtube.com/user/MKDS3

panpap

So, what should i do? Can you please help me a litle more on that?
I had never used the Due board before and i am really annoyed at the moment...

panpap

I used the Programming Port and it finally works! But i think prefer the Serial one, just because the arduino box is only designed for this one!

Gericom

When using the native port, do it like this:
Code: [Select]

void setup()                    // run once, when the sketch starts
{
  SerialUSB.begin(9600);           // set up Serial library at 9600 bps
}

void loop()                       // run over and over again
{
SerialUSB.println("Hello world!");        // prints hello with ending line break                             
}
Subscribe my youtube channel: http://www.youtube.com/user/MKDS3

Go Up