hello,
I am trying to program an esp32-wroom-32d module, purchased on lcsc.com site, mounted on a classical NodeMCU board.
Programming using the Arduino IDE fails. I have tried all known tricks (press BOOT, capacitor on EN pin, low baud rate, ....). It always fails.
There is a particular thing: pressing the RST button, which should force a reset, I see the following sequence on the serial terminal:
I (10) boot: ESP-IDF v3.0.7 2nd stage bootloader
I (10) boot: compile time 09:04:31
I (16) boot: Enabling RNG early entropy source...
I (16) boot: SPI Speed : 40MHz
I (18) boot: SPI Mode : DIO
I (22) boot: SPI Flash Size : 4MB
I (26) boot: Partition Table:
I (29) boot: ## Label Usage Type ST Offset Length
I (37) boot: 0 phy_init RF data 01 01 0000f000 00001000
I (44) boot: 1 otadata OTA data 01 00 00010000 00002000
I (52) boot: 2 nvs WiFi data 01 02 00012000 0000e000
I (59) boot: 3 at_customize unknown 40 00 00020000 000e0000
I (66) boot: 4 ota_0 OTA app 00 10 00100000 00180000
I (74) boot: 5 ota_1 OTA app 00 11 00280000 00180000
I (81) boot: End of partition table
I (86) boot: No factory image, trying OTA 0
I (90) esp_image: segment 0: paddr=0x00100020 vaddr=0x3f400020 size=0x20614 (132628) map
I (146) esp_image: segment 1: paddr=0x0012063c vaddr=0x3ffc0000 size=0x02d7c ( 11644) load
I (151) esp_image: segment 2: paddr=0x001233c0 vaddr=0x40080000 size=0x00400 ( 1024) load
I (153) esp_image: segment 3: paddr=0x001237c8 vaddr=0x40080400 size=0x0c848 ( 51272) load
I (183) esp_image: segment 4: paddr=0x00130018 vaddr=0x400d0018 size=0xdfc80 (916608) map
I (504) esp_image: segment 5: paddr=0x0020fca0 vaddr=0x4008cc48 size=0x02504 ( 9476) load
I (508) esp_image: segment 6: paddr=0x002121ac vaddr=0x400c0000 size=0x00064 ( 100) load
I (520) boot: Loaded app from partition at offset 0x100000
I (520) boot: Disabling RNG early entropy source...
1.1.3
I (621) wifi: wifi firmware version: 703e53b
I (622) wifi: config NVS flash: enabled
I (622) wifi: config nano formating: disabled
I (632) wifi: Init dynamic tx buffer num: 32
I (632) wifi: Init data frame dynamic rx buffer num: 32
I (632) wifi: Init management frame dynamic rx buffer num: 32
I (638) wifi: wifi driver task: 3ffdeeb8, prio:23, stack:3584
I (643) wifi: Init static rx buffer num: 10
I (646) wifi: Init dynamic rx buffer num: 32
I (651) wifi: wifi power manager task: 0x3ffe369c prio: 21 stack: 2560
I (686) wifi: mode : softAP (94:3c:c6:9b:ac:11)
I (693) wifi: mode : sta (94:3c:c6:9b:ac:10) + softAP (94:3c:c6:9b:ac:11)
I (697) wifi: mode : softAP (94:3c:c6:9b:ac:11)
I (701) wifi: set country: cc=CN schan=1 nchan=13 policy=1
In the row 86 I read "no factory image".
May be that the module need a preliminary setup (the "factory image")?
Has this ever happened to anyone?
Thank you
Gianluca
ESP32-WROOM-32D Boot Fail
-
- Posts: 9730
- Joined: Thu Nov 26, 2015 4:08 am
Re: ESP32-WROOM-32D Boot Fail
You can ignore that message; it refers to the fact that you can have a 'factory' partition that contains fallback, known good firmware that is put in there in your factory in the situation you are building a commercially developed product. You can configure the bootloader so that on e.g. a button press, you can go back to that firmware. By default, however, Arduino doesn't create a partition like that (because it's a bit wasteful on flash), and that's what the message refers to.
Re: ESP32-WROOM-32D Boot Fail
Hi,
I am experiencing an identical issue. The issue is an ESP32 WROOM 32 purchased from LCSC recently that does not enter serial flash boot mode. I am receiving the same message as Gianluca's post when resetting the esp32 as well as the following message when I attempt to put the esp32 into boot mode via holding BOOT and RST low then releasing RST.
Is the problem perhaps that these ESP32 chips were not configured correctly from the factory seeing that the chips used by Gianluca and I have may have come from the same batch? Is anyone also able to explain the meaning of the above serial readout and the serial readout from Gianluca's post?
I am unable to post schematic files of the circuit however I am confident that it is not a hardware problem since I was able to program an identical circuit in the past. I am using an FTDI connection to program the board.
Any advice is appreciated,
Cheers.
I am experiencing an identical issue. The issue is an ESP32 WROOM 32 purchased from LCSC recently that does not enter serial flash boot mode. I am receiving the same message as Gianluca's post when resetting the esp32 as well as the following message when I attempt to put the esp32 into boot mode via holding BOOT and RST low then releasing RST.
rst:0x1 (POWERON_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0xb (HSPI_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ets Jun 8 2016 00:22:57
Is the problem perhaps that these ESP32 chips were not configured correctly from the factory seeing that the chips used by Gianluca and I have may have come from the same batch? Is anyone also able to explain the meaning of the above serial readout and the serial readout from Gianluca's post?
I am unable to post schematic files of the circuit however I am confident that it is not a hardware problem since I was able to program an identical circuit in the past. I am using an FTDI connection to program the board.
Any advice is appreciated,
Cheers.
-
- Posts: 827
- Joined: Mon Jul 22, 2019 3:20 pm
Re: ESP32-WROOM-32D Boot Fail
I don't know what you see that appears identical to the OP. It looks like you have a pull-up on GPIO2 which is preventing the device from entering download mode.
https://github.com/espressif/esptool/wi ... read-error
https://github.com/espressif/esptool/wi ... read-error
Who is online
Users browsing this forum: No registered users and 92 guests