Skip to content

HardwareSerial brick my ESP32 Pls Help ! #1375

@Fbo06

Description

@Fbo06

Hello, i use this script and it seems that it brick my ESP32 WEMOS LOLIN32 V1.0.0
now when i try to upload any script, i have a ....----....---- until the message : A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
How can i erase these bad script ?

Please Help if you can. thank you.

#include <HardwareSerial.h>
HardwareSerial MySerial(0);
void setup() {
MySerial.begin(115200, SERIAL_8N1, 16, 17);
}
void loop() {
while (MySerial.available() > 0) {
uint8_t byteFromSerial = MySerial.read();
// Do something
}

//Write something like that
MySerial.write(rand());

}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions