I have built a custom board with an ES32-S2 chip, I am trying to upload a test sketch to it using the UART and an FTD2204 adapter. It does seem to toggle the IO0 and EN correctly, but it seems it is timing out as folows:
A fatal error occurred: Failed to connect to ESP32-S2: Timed out waiting for packet header
Are ESP32-S2 bare chips missing the bootloader?
attached also my schematics, can anyone please help? I am frustrated, I have tried everything.
Cannot seem to enter Boot mode using the esptool!
-
- Posts: 4
- Joined: Fri Sep 01, 2023 9:50 am
Cannot seem to enter Boot mode using the esptool!
- Attachments
-
- Schematics
- image.png (24.75 KiB) Viewed 7957 times
Last edited by RamiMehyar on Sun Sep 03, 2023 7:03 pm, edited 1 time in total.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Cannot seem to enter Boot mode using the esptool!
Are you seeing anything on the serial monitor? You should see a boot loop if there is no firmware at all installed. You should see "waiting for download" if gpio0 is pulled to ground.
If not, you either have an issue with the serial lines, or else you are not supplying adequate power to the device.
If not, you either have an issue with the serial lines, or else you are not supplying adequate power to the device.
-
- Posts: 4
- Joined: Fri Sep 01, 2023 9:50 am
Re: Cannot seem to enter Boot mode using the esptool!
Thank you for trying to help! No, i do not see anything on the monitor! Did you take a look at the power rails on the schematics? Do you think there is something wrong with it?
The power comes currently from the ESP-prog which i have read has an adequate power supply.
The power comes currently from the ESP-prog which i have read has an adequate power supply.
-
- Posts: 826
- Joined: Mon Jul 22, 2019 3:20 pm
Re: Cannot seem to enter Boot mode using the esptool!
I would put it on a bench power supply and watch the draw at boot. It should be using ~80mA, with a small cyclical increase as it attempts to access the flash on each reboot. Make sure that when you ground the EN pin that the power goes near zero.
-
- Posts: 4
- Joined: Fri Sep 01, 2023 9:50 am
Re: Cannot seem to enter Boot mode using the esptool!
Wierd, its pulling 6.7 mA constant and 3.1 mA when i pull EN LOW. And EN goes to 0 V when i pull it down.
-
- Posts: 4
- Joined: Fri Sep 01, 2023 9:50 am
Re: Cannot seem to enter Boot mode using the esptool!
My bad guys, i didnt know that a xtal was mandatory to run the chip, i didnt have it on my design if you could notice from the schematics. I have to redesign my board...
I have the esp32-s2 with the embedded 4mb rom and 2mb ram, is the external flash rom mandatory in this case?
I have the esp32-s2 with the embedded 4mb rom and 2mb ram, is the external flash rom mandatory in this case?
-
- Posts: 9725
- Joined: Thu Nov 26, 2015 4:08 am
Re: Cannot seem to enter Boot mode using the esptool!
No. You shouldn't supply external flash on the flash pins when the part has internal flash.RamiMehyar wrote: ↑Tue Sep 12, 2023 5:42 pmI have the esp32-s2 with the embedded 4mb rom and 2mb ram, is the external flash rom mandatory in this case?
Who is online
Users browsing this forum: No registered users and 72 guests