How to flash the ESP32 ?
How to flash the ESP32 ?
Hello,
Is it possible to flash an ESP32 from the ESP32 DevKit (ESP32-Core-Board-V2) ?
If yes, what should be the manip ? The same as if I want to flash the ESP32-Core-Board but instead, I connect the RX / TX pin of the Dev Kit, to the RX / TX of the ESP32 ?
Then I simply Ground EN / IO pin of the ESP32 when I want to flash it ?
Thanks.
Alexis,
Is it possible to flash an ESP32 from the ESP32 DevKit (ESP32-Core-Board-V2) ?
If yes, what should be the manip ? The same as if I want to flash the ESP32-Core-Board but instead, I connect the RX / TX pin of the Dev Kit, to the RX / TX of the ESP32 ?
Then I simply Ground EN / IO pin of the ESP32 when I want to flash it ?
Thanks.
Alexis,
Re: How to flash the ESP32 ?
Yes, that would work. Make sure you connect TX and RX the right way, and then ground GPIO0 and toggle EN before uploading. Make sure you connect EN pin of the DevKitC to ground, to keep it in reset.
Re: How to flash the ESP32 ?
Hello,
Thanks for your answer.
What do you mean exactly by "Make sure you connect TX and RX the right way" ?
Should I connect direclty the RXD0/TXD0 from the DevKitC to the RXD0/TXD0 of the ESP32 I want to flash ?
Or should I remove R17 / R18 from the DevKitC and then connect directly the RXD0/TXD0 of the ESP32 I want to flash to the RXD/TXD of the DevKitC ?
Thanks for your answer.
What do you mean exactly by "Make sure you connect TX and RX the right way" ?
Should I connect direclty the RXD0/TXD0 from the DevKitC to the RXD0/TXD0 of the ESP32 I want to flash ?
Or should I remove R17 / R18 from the DevKitC and then connect directly the RXD0/TXD0 of the ESP32 I want to flash to the RXD/TXD of the DevKitC ?
Re: How to flash the ESP32 ?
I mean that you need to make sure that TXD of CP2102 on the DevKitC board goes to RXD of the ESP32 and vice versa. Or just connect them and then try swapping connection if it doesn't work.
Re: How to flash the ESP32 ?
Well ok, it's exactly what I've done but it does not work.
I cannot detect the ESP32 and so flash it.
I will keep working on this to figure out...
I cannot detect the ESP32 and so flash it.
I will keep working on this to figure out...
Re: How to flash the ESP32 ?
A useful first step is to connect any serial terminal program to the interface at 115200bps. Then reset the chip (toggle EN low then high).
If the UART flashing mode is correctly initialised, you should see this output when EN goes high:
... which means you can then run esptool.py (or make flash, or the GUI flashing tool), and get correct results.
If you see nothing, verify power, pin connections, etc. and keep trying until you see something.
If you see a similar but different message, the ESP32 is going into a different boot mode. Verify the "strapping pins" mentioned in the datasheet.
If the UART flashing mode is correctly initialised, you should see this output when EN goes high:
Code: Select all
rst:0x1 (POWERON_RESET),boot:0x6 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_FEO_V2))
waiting for download
If you see nothing, verify power, pin connections, etc. and keep trying until you see something.
If you see a similar but different message, the ESP32 is going into a different boot mode. Verify the "strapping pins" mentioned in the datasheet.
Re: How to flash the ESP32 ?
Hello,
Thanks for your help.
I've finally been able to flash the ESP32. It was a Hardware issue with another component at the end.
Just a last question regarging flashing the ESP32.
Is there any tool available for Mass Production yet ? Or is it still too early in the ESP32 Release ?
Thanks for your help.
I've finally been able to flash the ESP32. It was a Hardware issue with another component at the end.
Just a last question regarging flashing the ESP32.
Is there any tool available for Mass Production yet ? Or is it still too early in the ESP32 Release ?
Re: How to flash the ESP32 ?
There is a "FLASH_DOWNLOAD_TOOL" available for download from Espressif website. Essentially it's a GUI for esptool.py, plus some features to combine binaries and modify them before flashing.
You can also use esptool.py itself ($IDF_PATH/components/esptool_py/esptool/esptool.py). Since it is a console tool, it is fairly easy to script/automate.
Finally, the most "mass" option is to mass-program flash chips before they are soldered to the PCBs. Many component vendors offer flash mass-programming services.
You can also use esptool.py itself ($IDF_PATH/components/esptool_py/esptool/esptool.py). Since it is a console tool, it is fairly easy to script/automate.
Finally, the most "mass" option is to mass-program flash chips before they are soldered to the PCBs. Many component vendors offer flash mass-programming services.
-
- Posts: 1
- Joined: Sat Sep 23, 2017 12:03 pm
Re: How to flash the ESP32 ?
What am I doing wrong? The esp32 will not boot after flashing with below parameters. But when I use the Arduino IDE I can upload working sketches.
C:\Users\peter\Downloads\ESPEasy_v2.0.0-dev12>esptool.py -p com4 -b 921600 -c auto write_flash 0x1000 ESPEasy_v2.0.0-dev12_normal_4096.bin
esptool.py v2.1
Connecting........___
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 566528 bytes to 373377...
Wrote 566528 bytes (373377 compressed) at 0x00001000 in 6.1 seconds (effective 740.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...
C:\Users\peter\Downloads\ESPEasy_v2.0.0-dev12>esptool.py -p com4 -b 921600 -c auto write_flash 0x1000 ESPEasy_v2.0.0-dev12_normal_4096.bin
esptool.py v2.1
Connecting........___
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Flash params set to 0x0220
Compressed 566528 bytes to 373377...
Wrote 566528 bytes (373377 compressed) at 0x00001000 in 6.1 seconds (effective 740.1 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting...
Re: How to flash the ESP32 ?
Afaik espeasy is a esp8266 firmware that won't run on esp32. Second, you have to flash a bootloader, partition table, and app to esp32.
https://esp-idf.readthedocs.io/en/lates ... notes.html
https://esp-idf.readthedocs.io/en/lates ... notes.html
Who is online
Users browsing this forum: No registered users and 66 guests