-->
Page 4 of 6

Re: Program save not persistent

PostPosted: Wed Feb 24, 2016 5:49 pm
by d1414213562
Thank you on your constant help. Changing to the nodemcu fixes the problem of repeated upload, now this error does not appear anymore.

But the original problem persists. Still no program is left in flash after power is disconnected.

Re: Program save not persistent

PostPosted: Thu Feb 25, 2016 4:08 am
by Fernando Garcia
d1414213562 wrote:Thank you on your constant help. Changing to the nodemcu fixes the problem of repeated upload, now this error does not appear anymore.

But the original problem persists. Still no program is left in flash after power is disconnected.


If it can help, I have just the same problem.

I have sketch that measure temperature, humidity and a sensor and upload the data to a MQTT server. If works well during days, but when I disconnect (just after uploading the sketch of after many hours) it lost its configuration.

I tested with two different NodeMCU of different manufactures with the same outcome.

Re: Program save not persistent

PostPosted: Thu Feb 25, 2016 9:32 am
by martinayotte
d1414213562 wrote:Still no program is left in flash after power is disconnected.

I don't think the Flash is emptied at all. I'm still convince that it is a Boot mode issue where GPIO2/GPIO0 are not HIGH when power is recycled, for some unknown reason.

Re: Program save not persistent

PostPosted: Thu Feb 25, 2016 10:23 am
by d1414213562
martinayotte wrote:
d1414213562 wrote:Still no program is left in flash after power is disconnected.

I don't think the Flash is emptied at all. I'm still convince that it is a Boot mode issue where GPIO2/GPIO0 are not HIGH when power is recycled, for some unknown reason.

And you were right! GPIO0 had a short circuit to the ground due to manufacture error of PCBs on which ESP was soldered on. Because of that, on every power-on it went to the bootloader mode..

@Ferndando, you might also for this mistake. Use the multimeter and measure resistance between GPIO0 / GPIO2 and gnd / 3.3V. If any mistakes as mine, you will see them.