ESP-WROOM-32 Problems programming with esptool.py etc
Posted: Thu Nov 08, 2018 3:03 am
Good day All,
I have spent hours trying to figure out this issue and have read as many similar posts I could fine, but alas I cannot figure out what I cannot program a custom PCB that has a ESP-WROOM-32 mounted to it. The design pretty much follows the Adafruit Feather ESP32 design with the exception that I am using a FTDI FT232R instead of the CP2104. I have checked,checked, and checked to the nth time and everything looks fine electrically. The strapping pins are correct and looking at the "boot:0x13" from reset, this value confirms this. I am using a lab quality 3.3V power supply and so there are no power supply issues. The ESP-WROOM-32 resets fine and goes into the default factory application:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
<I removed the remainder>
If I open up a dumb terminal program and manipulate the RTS and DTR signals I can reset the device fine. If I assert DTR (which holds GPIO0 low) and reset the chip I am able to get the ESP-WROOM-32 to enter into a serial download mode:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
At this point the module looks like it is working as expected. However, if I try and program the device via Arduino IDE it fails to connect and I get the following:
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
If I try using esptool.py directly with the appropriate command line parameters:
esptool.py --chip esp32 --port COM2 flash_id
I get pretty much the same result and the esptool is unable to connect to the device.
I do have a Adafruit Feather ESP32 board and I have no issues connecting and programming it with the Arduino IDE or directly with the esptool program and so I know there are no issues with my serial port or computer. To rule out a bad ESP-WROOM-32 module I assembled two other PCBs (one module from Adafruit and another from Mouser) and I am getting the same results.
So... I was curious do bare modules need to be programmed with a different bootloader in order to work the esptool/Arduino IDE? If not, can anyone offer some advice to help me track down my issue?
Thanks in advance!
Cheers,
Sam
I have spent hours trying to figure out this issue and have read as many similar posts I could fine, but alas I cannot figure out what I cannot program a custom PCB that has a ESP-WROOM-32 mounted to it. The design pretty much follows the Adafruit Feather ESP32 design with the exception that I am using a FTDI FT232R instead of the CP2104. I have checked,checked, and checked to the nth time and everything looks fine electrically. The strapping pins are correct and looking at the "boot:0x13" from reset, this value confirms this. I am using a lab quality 3.3V power supply and so there are no power supply issues. The ESP-WROOM-32 resets fine and goes into the default factory application:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
Falling back to built-in command interpreter.
OK
<I removed the remainder>
If I open up a dumb terminal program and manipulate the RTS and DTR signals I can reset the device fine. If I assert DTR (which holds GPIO0 low) and reset the chip I am able to get the ESP-WROOM-32 to enter into a serial download mode:
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
At this point the module looks like it is working as expected. However, if I try and program the device via Arduino IDE it fails to connect and I get the following:
esptool.py v2.3.1
Connecting........_____....._____....._____....._____....._____....._____....._____....._____....._____....._____
If I try using esptool.py directly with the appropriate command line parameters:
esptool.py --chip esp32 --port COM2 flash_id
I get pretty much the same result and the esptool is unable to connect to the device.
I do have a Adafruit Feather ESP32 board and I have no issues connecting and programming it with the Arduino IDE or directly with the esptool program and so I know there are no issues with my serial port or computer. To rule out a bad ESP-WROOM-32 module I assembled two other PCBs (one module from Adafruit and another from Mouser) and I am getting the same results.
So... I was curious do bare modules need to be programmed with a different bootloader in order to work the esptool/Arduino IDE? If not, can anyone offer some advice to help me track down my issue?
Thanks in advance!
Cheers,
Sam