M5Stack - RESOLVED - No Boot Unless Serial Port Connected (ext power no worky)

I've got an M5Stack DinMeter board based on StampS3 ESP32 controller. It works fine while developing and plugged in with usb data cable. If I try to power the board using external power or usb power-only cable, the power led lights on the board but the display remains blank and the code does not run - almost like sleep mode.

I am new to ESP32 and understand that my board has sleep and wake functionality, but I would suspect that default operation would be to start/run when dc power is applied... I looked through demo code but see nothing related to powering board without data cable.

Anyone have experience with M5Stack or similar issues? There must be something in code or flash option that needs to be set that I am missing...

TIA

When running setup() does the code wait for a serial port to be available? Something like:

while (!serial);

Not seeing your code we can only guess.

Spot on lol :laughing:

In fact I did have such a reference - I was testing NTP with example code and did not notice that line was included. I am new to ESP32 (and also C++) and did not make that connection.

You da man! Thanks!

EDIT - code always runs what you tell it, not what you intend :wink:

Glad you got it working. Have fun.