Launching Arduino IDE 2 makes my ESP32 app start

Hi,

I've been working with the BLE Server example, uneventfully. The firmware is uploaded, is running, etc. After a while I close Arduino IDE and disconnect the USB cable.

When I connect the cable back, the example seems dead. It only starts when I launch the Arduino IDE.

The situation is mentioned here, but the discussion seems to me inconclusive.

It makes perfect sense that things like this

void setup() {
  Serial.begin(115200);
  Serial.println("Starting BLE work!");
...

should be thoroughly disabled in any release build. My current settings:

I'm not quite sure about the board, it's 38-pin FCC ID 2AC7Z-ESPWROOM32, I can't see the exact match.

What would be the right approach to my workflow?

How do you know it isn't running before?

I've got LCD 16x2 output right from the start, 1 and counting every second :smile:

I am sorry, I don't understand. You uploaded a working sketch, and when the board has power it works according to the LCD. What is it that bothers you?

Not sure if I follow you... If you have line like this:
while (!Serial);
it hangs your code there until Esp has serial connection.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.