I can't inject compiled code into ESP32
Posted: Mon Oct 03, 2022 12:55 pm
I'm trying to inject code compiled by Arduino IDE into ESP32, but it's not possible. On the first board (ESP32), I was returning errors like
"A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x3b)! The chip needs to be in download mode."
, varying the hex returned depending on whether I was pressing the boot button or not! That's right, even pressing the boot button cannot inject the compiled code. Now, on the second board which was basically virgin (new) I was able to inject the code the first time without problems, but from the second time onwards, it returns the error
"A fatal error occurred: Failed to connect to ESP32: No serial data received."
even pressing the boot button! It happened with both boards, during the process, a blue led lit up, which I don't know the meaning of yet. How can I solve this problem? I'm waiting!
The operating system I'm working on is Ubuntu 20.04, on Arduino IDE, "Kit" board DOIT ESP32 DEVKIT V1, USB port ttyACM0.
Attempts like disconnecting and reconnecting the USB cable at both ends were not effective, test the cable to determine if everything is ok, restarting the Arduino IDE was not effective.
"A fatal error occurred: Failed to connect to ESP32: Wrong boot mode detected (0x3b)! The chip needs to be in download mode."
, varying the hex returned depending on whether I was pressing the boot button or not! That's right, even pressing the boot button cannot inject the compiled code. Now, on the second board which was basically virgin (new) I was able to inject the code the first time without problems, but from the second time onwards, it returns the error
"A fatal error occurred: Failed to connect to ESP32: No serial data received."
even pressing the boot button! It happened with both boards, during the process, a blue led lit up, which I don't know the meaning of yet. How can I solve this problem? I'm waiting!
The operating system I'm working on is Ubuntu 20.04, on Arduino IDE, "Kit" board DOIT ESP32 DEVKIT V1, USB port ttyACM0.
Attempts like disconnecting and reconnecting the USB cable at both ends were not effective, test the cable to determine if everything is ok, restarting the Arduino IDE was not effective.