DFRobot W5500 sketch doesn't startwith ext.supply?

Hi,
I do not what is going on. I use DFRobot Ethernet W5500 board and when I create wery simple sketch like this:
it doesn't start when I'm powering the board with an external power supply? To be honest program start when I start "Serial monitor".
Problem doesn't appear when I comment everything related with serial port.
Do you know how to mitigate this problem?
Regards
Michał
I do not what is going on. I use DFRobot Ethernet W5500 board and when I create wery simple sketch like this:
Code: Select all
void setup() {
pinMode(13, OUTPUT);
while(!Serial);
Serial.begin(9600);
Serial.println(F("TEST"));
}
void loop() {
digitalWrite(13, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(13, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second
}
it doesn't start when I'm powering the board with an external power supply? To be honest program start when I start "Serial monitor".
Problem doesn't appear when I comment everything related with serial port.
Do you know how to mitigate this problem?
Regards
Michał
2015-11-23 23:52:49 Hello Machal,
Thanks for you feedback!
You are right, while(serial1) is waiting for serial1 ready, it's not for Uno or other board.
Leff
Thanks for you feedback!
You are right, while(serial1) is waiting for serial1 ready, it's not for Uno or other board.

2015-11-20 22:34:40 I've solved a problem, line
while(!Serial);
should be removed. In documentation we read "if(Serial) This will only return false if querying the Leonardo's USB CDC serial connection before it is ready.
tak wiec jak nie ma usb to wisi
ale to tylko ma miejsce na leonardo"
dyrex
while(!Serial);
should be removed. In documentation we read "if(Serial) This will only return false if querying the Leonardo's USB CDC serial connection before it is ready.
tak wiec jak nie ma usb to wisi
ale to tylko ma miejsce na leonardo"
