USB to Serial ESP bootloader issues
Posted: Wed Feb 13, 2019 9:29 pm
I've got a system with a SAMD51 microcontroller connected to an ESP32 WROOM32 module. I'm uning the Arduino IDE and I'm trying to use the SAMD51 as a USB to Serial converter in order to flash new code onto the ESP32.
The SAMD51 (An Adafruit Metro M4) sets the appropriate pins on the ESP32 on startup to set it into bootloader mode and I get this message on a serial monitor when it starts up:
When I pick the ESP32 Dev Module in the Arduino IDE, select the serial port and attempt to compile and uploade test code to the ESP32 it gets stuck trying to communicate and I get a timeout error:
The SAMD51 (An Adafruit Metro M4) sets the appropriate pins on the ESP32 on startup to set it into bootloader mode and I get this message on a serial monitor when it starts up:
This data comes from the ESP32, into the D51 via a UART and then to the USB Serial port so I know that the ESP32 is booting up correctly into bootloader mode. I have also done loopback tests to ensure that the serial connection between the two is working both ways and is not producing errors (at 115200 baud).ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
When I pick the ESP32 Dev Module in the Arduino IDE, select the serial port and attempt to compile and uploade test code to the ESP32 it gets stuck trying to communicate and I get a timeout error:
Nothing I have done so far has fixed this and I don't understand why - Is it to do with the USB device being identified as an Adafruit Metro M4 or is it something else?esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____.....