Page 1 of 1

void setup not lauching

Posted: Tue Sep 10, 2019 12:11 pm
by NicolasPlen
I am starting my setup function with a Serial.print("I am starting"). It seems that nothing is being set up at all as you can see on the picture attached.

However, this only happens time to time with no apparent reasons. And when it launches properly, the setup is being rebooted in the middle of it for no reasons (but always at the same stage, after the SD set and before the wifi connection). It does so like twice (or in-definitively up until I unplug/replug the SD (however it should just fail and not reset)) before going through all the set up properly.

Is my hardware broken (it is brand new) ? Could it be linked to the code ? Any tips on how to solve it ?

Thanks

Nicolas

Re: void setup not lauching

Posted: Tue Sep 10, 2019 5:19 pm
by Agree007
Have you set the correct speed with
Serial. begin(115200);
and use a small
delay(1000);
so you are sure the serial connection is ready before you start writing to it.