Page 1 of 1

download problem

Posted: Sun Mar 25, 2018 9:54 pm
by Beroy40
Hello
I have a download problem with a ESP32 WROOM. l connects well but seems not to detect FLASH. Here is the error message.
I check everything, change the ESP but still the same.
Do you have an idea.
thank you in advance

Archiving built core (caching) in: C:\Users\Luc\AppData\Local\Temp\arduino_cache_916759\core\core_espressif_esp32_esp32_FlashMode_qio,FlashFreq_80,FlashSize_4M,UploadSpeed_921600,DebugLevel_none_3e5d3f9bb53412721363cb0cb542074b.a
Le croquis utilise 154674 octets (11%) de l'espace de stockage de programmes. Le maximum est de 1310720 octets.
Les variables globales utilisent 10832 octets (3%) de mémoire dynamique, ce qui laisse 284080 octets pour les variables locales. Le maximum est de 294912 octets.
esptool.py v2.1
Connecting........_
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Compressed 8192 bytes to 47...

A fatal error occurred: Timed out waiting for packet content
A fatal error occurred: Timed out waiting for packet content

Re: download problem

Posted: Sun Mar 25, 2018 10:12 pm
by ESP_Angus
Hi Beroy,

What hardware (development board, etc) is connected to the WROOM? Is it possible something is connected to the SPI flash GPIOs of the WROOM module (GPIOs 6-11 inclusive)?

Re: download problem

Posted: Mon Mar 26, 2018 6:44 am
by Beroy40
Hello and thank you for your answer.
No nothing is connected to GPIO6-> GPIO11.
see diagram. I do not know what to do anymore.
Thanks for your help

Re: download problem

Posted: Mon Mar 26, 2018 6:49 am
by Beroy40
Here is the part to lower the code.
And here is what I have as a message on the COM port (normal mode):
rst: 0x1 (POWERON_RESET), boot: 0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ands Jun 8 2016 00:22:57

rst: 0x10 (RTCWDT_RTC_RESET), boot: 0x33 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371
ands Jun 8 2016 00:22:57
.
.
.

Re: download problem

Posted: Tue Mar 27, 2018 6:22 am
by ESP_Angus
If there are no shorts or other assembly/soldering problems on those same pins on the board then it's possible your WROOM has a faulty flash chip.

Re: download problem

Posted: Tue Mar 27, 2018 6:36 am
by WiFive
boot: 0x33 (SPI_FAST_FLASH_BOOT)

This means gpio12 is pulled high at boot (1-wire/i2c pull-up) selecting 1.8v flash voltage which is not correct for wroom32. Gpio12 should be pulled low at boot.

Re: download problem

Posted: Tue Mar 27, 2018 6:57 am
by Beroy40
THANK YOU MUCH, you're right.
I am really stupid because I had read that on the datasheet but I had not made the connection between MTDI and GPIO12.
Everything is working properly!

Re: download problem

Posted: Mon Apr 23, 2018 5:29 am
by ningappa BS
even am getting the same problem, what is the solution for that.

Re: download problem

Posted: Sat Apr 28, 2018 9:01 pm
by Beroy40
As WiFive said, Gpio12 must be pulled down at startup.