I’m not sure if this is a hardware or firmware issue. When I flash firmware using mos into my ESP32, it starts the FW as soon as the flash completes. If I then power off the ESP32 and then back on, the FW does not start.
Is there something special I need to do to get the FW to start when the device is powered up?
It should start right away. Are you powering up through VIN/GROUND or the USB?
I have several random problems, when I power it up from VIN, as there is a peak current consumption as Wifi Starts, it could not be solved by placing a capacitor, so I ended up powering the unit from USB
I think the definitely solución is to delay in 1 or 2 seconds the wifi start from the library. That should avoid the initial peak current at boot. Let me know if you manage to modify it. The USB power is protected by a diode that is not present in the VIN power
No joy. It does not start when powered via USB or VIN. The only time it starts is if MOS is running when I plug it in to USB, or right after I flash it.
Wow, I plugged it into a 2A wall cube (that plugs into an electrical outlet) and it came up and booted. So we’re back to this being a current inrush issue?
But then, why would it matter if I have mos running or not?
For me it was that, the problem (I think), is that even with 2A through VIN, it still gets stuck on Wifi Start peak consumption, USB input has a diode that prevents that peak, although through VIN, the problem is random, but my units are headless, so I cannot risk a boot hang from VIN.
Yo don’t need MOS for the device to run, MOS is for logging and flashing (testing), after that, OTA updates are your best mate once you have an update for an stable firmware
Well what I meant about mos, is that if I plug it in to my MacBook USB port and mos is running, it boots. All is good. If mos is not running, it does not boot. So if this is current inrush related, what i it about mos running that makes it boot?
My device will also be headless but I need to power via VIN so I’ll have to find a fix for that.
Theres something when power up from a PC, that signals something to the board maybe. As a solution I’m currently using this conectors for plugging through USB
Maybe you should play with delaying the Wifi Start from the library
UPDATE: As I look at the boards datasheet, I see he used GPIO2 as the SD card chip select. I also see that GPIO2 is related to boot, so maybe there is an issue there.