Is it possible to disable esp32-s2's download mode?

frotaitalos
Posts: 13
Joined: Tue Nov 01, 2022 8:32 pm

Is it possible to disable esp32-s2's download mode?

Postby frotaitalos » Mon Apr 03, 2023 9:29 pm

Hi, I have a custom board with an Esp32-S2 MCU soldered right onto my pcb. In this project there is a capacitor connected to the boot pin, I got this idea from some schematics I saw on the internet and in datasheets. But what happens is that when starting the esp32 for the first time it goes directly into download mode, I need to turn off the power and power up again, I found out today that removing the capacitor on the boot pin this behavior ends, but I already have some units of this product circulating around , so I would like to know if it is possible to eliminate this behavior via modification in the bootloader.

I hope I was clear in the description above, I'm using google translate, if it wasn't clear, let me know so I can rephrase my problem
Attachments
Captura de tela 2023-04-03 181944.png
Captura de tela 2023-04-03 181944.png (8.39 KiB) Viewed 1717 times

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Is it possible to disable esp32-s2's download mode?

Postby ESP_Sprite » Tue Apr 04, 2023 1:59 am

No, that is not possible. The low level on IO0 invokes the download mode in the ROM bootloader, and since that is in ROM (not flash or EEPROM), you aren't able to change that.

frotaitalos
Posts: 13
Joined: Tue Nov 01, 2022 8:32 pm

Re: Is it possible to disable esp32-s2's download mode?

Postby frotaitalos » Tue Apr 04, 2023 1:59 pm

ESP_Sprite wrote:
Tue Apr 04, 2023 1:59 am
No, that is not possible. The low level on IO0 invokes the download mode in the ROM bootloader, and since that is in ROM (not flash or EEPROM), you aren't able to change that.
Is there any way to try and fix this via custom bootloader? I already have some units of this product and a recall to remove only one capacitor would be very costly, could you confirm if this problem can be circumvented via a custom bootloader, or do I really need to do a recall?
Attachments
Captura de tela 2023-04-04 105559.png
Captura de tela 2023-04-04 105559.png (40.93 KiB) Viewed 1634 times

ESP_Sprite
Posts: 9764
Joined: Thu Nov 26, 2015 4:08 am

Re: Is it possible to disable esp32-s2's download mode?

Postby ESP_Sprite » Wed Apr 05, 2023 12:20 am

No it is not, as I said before, the low level on IO0 makes the chip go into the (non-replacable) ROM bootloader; any custom 2nd stage bootloader will never be called. I'm afraid you'll indeed have to do a recall.

Who is online

Users browsing this forum: asargent and 105 guests