void setup not lauching

NicolasPlen
Posts: 3
Joined: Wed Aug 21, 2019 8:27 am

void setup not lauching

Postby NicolasPlen » Tue Sep 10, 2019 12:11 pm

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
Attachments
Capture.JPG
Capture.JPG (37.61 KiB) Viewed 2678 times

Agree007
Posts: 103
Joined: Mon Sep 18, 2017 7:11 pm
Location: Copenhagen

Re: void setup not lauching

Postby Agree007 » Tue Sep 10, 2019 5:19 pm

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.

Who is online

Users browsing this forum: No registered users and 72 guests