void setup not lauching

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 ?


Capture.JPG (37.61 KiB) Viewed 295 times

Posts: 44
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
so you are sure the serial connection is ready before you start writing to it.

Who is online

Users browsing this forum: Cabbi_, Majestic-12 [Bot] and 12 guests