Unable to download firmware to ESP32-C3
-
- Posts: 6
- Joined: Sun Nov 22, 2020 8:23 pm
Unable to download firmware to ESP32-C3
Hello!
I'm a freelancer and I have been working on a somewhat simple ESP32-C3 project. I have developed a custom PCB using an ESP32-C3-MINI-1-N4, the module we got has the M4N4 engraving on it, the problem is that we haven't been able to download any new code, here is the log we have received from the ESP32:
21:27:05.455 -> Build:Feb 7 2021
21:27:05.455 -> rst:0x3 (RTC_SW_SYS_RST),boot:0x5 (DOWNLOAD(USB/UART0/1))
21:27:05.455 -> Saved PC:0x40048b82
21:27:05.455 -> Download boot modes disabled
21:27:05.455 -> ESP-ROM:esp32c3-api1-20210207
The strapping pins are shown to be in the right condition to make a UART download, but then it says that download boot modes are disabled. My first guess here is that these modules that we got from the PCB supplier have their eFuses pre-programmed. Is there a way to confirm if the eFuses have been burned to 1? Is there any serial we can check to confirm something like this? Is there any possibility that the eFuses are not the issue?
I haven't been able to test the eFuse Manager myself since the board is in the hands of my client, and he only has available the Arduino IDE and he doesn't have enough experience using idf.py.
Thank you in advance for your help!
I'm a freelancer and I have been working on a somewhat simple ESP32-C3 project. I have developed a custom PCB using an ESP32-C3-MINI-1-N4, the module we got has the M4N4 engraving on it, the problem is that we haven't been able to download any new code, here is the log we have received from the ESP32:
21:27:05.455 -> Build:Feb 7 2021
21:27:05.455 -> rst:0x3 (RTC_SW_SYS_RST),boot:0x5 (DOWNLOAD(USB/UART0/1))
21:27:05.455 -> Saved PC:0x40048b82
21:27:05.455 -> Download boot modes disabled
21:27:05.455 -> ESP-ROM:esp32c3-api1-20210207
The strapping pins are shown to be in the right condition to make a UART download, but then it says that download boot modes are disabled. My first guess here is that these modules that we got from the PCB supplier have their eFuses pre-programmed. Is there a way to confirm if the eFuses have been burned to 1? Is there any serial we can check to confirm something like this? Is there any possibility that the eFuses are not the issue?
I haven't been able to test the eFuse Manager myself since the board is in the hands of my client, and he only has available the Arduino IDE and he doesn't have enough experience using idf.py.
Thank you in advance for your help!
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Re: Unable to download firmware to ESP32-C3
Seems that chip has SecureBoot enabled. Is this something you or your customer might have done? If not, can you post a clear picture of the module, with the text and QR-code readable?
-
- Posts: 6
- Joined: Sun Nov 22, 2020 8:23 pm
Re: Unable to download firmware to ESP32-C3
As far as I know, if it was secureBoot the log would say something about it. Anyway, my client wouldn't have done anything like that, the project is using Arduino Core and he just tried downloading our firmware. Here is a picture of the chip, is not super clear but is understandable enough:ESP_Sprite wrote: ↑Fri Aug 23, 2024 4:59 amSeems that chip has SecureBoot enabled. Is this something you or your customer might have done? If not, can you post a clear picture of the module, with the text and QR-code readable?
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Re: Unable to download firmware to ESP32-C3
Thanks. I'll ask my colleague to look up the barcode on that one to see if it was supposed to be flashed+locked from the factory.
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Re: Unable to download firmware to ESP32-C3
I got a response, and that's a module that came pre-flashed with customer firmware and as such has download mode disabled. I'm afraid it's not usable for anyone but that customer. Can you tell me a bit more (if needed in private email, jeroen at espressif dot com) how you came by this module?
-
- Posts: 6
- Joined: Sun Nov 22, 2020 8:23 pm
Re: Unable to download firmware to ESP32-C3
Thank you for your confirmation. Our PCB supplier also populated the boards, so they are the ones who know the details about how these modules got to us. Parallel to this, I was also having an email conversation with someone from espressif through our PCB supplier, they also confirmed that these boards were pre-programmed. I suppose the PCB supplier is now in talks with their component supplier since that is where the module would have come from.ESP_Sprite wrote: ↑Tue Aug 27, 2024 7:26 amI got a response, and that's a module that came pre-flashed with customer firmware and as such has download mode disabled. I'm afraid it's not usable for anyone but that customer. Can you tell me a bit more (if needed in private email, jeroen at espressif dot com) how you came by this module?
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Re: Unable to download firmware to ESP32-C3
Clear, thank you.
Re: Unable to download firmware to ESP32-C3
Hey, I believe I might be having the same problem. Could I provide you with a picture of the qr code to see if it is the case?
I am unable to flash anything on my M4N4 module, and I can't seem to find any other issue/reason why my board might not work (I have not worked with any XXN4 modules before, so I cannot comment about those comparatively). IO2 and IO8 are pulled up, IO9 is pulled down with a button, and EN is pulled down with a button. Doing the correct download mode procedure (holding boot button, pressing reset button, releasing boot button) gives me a JTAG and COM* connection on Windows 11, however, esptool stops at `Connecting...` and gives me write timeout.
I would appreciate any help, and sorry for bumping up an old post, I could not find any way to contact you directly ESP_Sprite.
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Re: Unable to download firmware to ESP32-C3
No issue. I'll give you the reply from my colleague when they're back in a few days. What you could do is to start a terminal emulator on the serial port (115200,n,8,1) and reset the chip into bootloader mode: if this is a locked module, it likely says 'Download boot modes disabled' on the serial port.
-
- Posts: 9883
- Joined: Thu Nov 26, 2015 4:08 am
Who is online
Users browsing this forum: Google [Bot] and 52 guests