ESP32 is not detected when uploading code

PepitoGrillo
Posts: 4
Joined: Thu Jul 25, 2024 8:03 pm

ESP32 is not detected when uploading code

Postby PepitoGrillo » Thu Mar 06, 2025 5:15 pm

Hello!

I have designed a custom board using an ESP32-S3. It's the first one that I've designed with an external flash, all the other standalone-chips I've used had an internal flash.

Problem is that when I try to upload an script, I get the following error:
esptool.py v4.6
Serial port COM5
Connecting....Traceback (most recent call last):

Code: Select all

  File "esptool.py", line 37, in <module>
Chip is ESP32-S3 (revision v0.2)
  File "esptool\__init__.py", line 1064, in _main
Features: WiFi, BLE
  File "esptool\__init__.py", line 859, in main
Crystal is 40MHz
  File "esptool\cmds.py", line 466, in write_flash
MAC: cc:ba:97:18:be:8c
  File "esptool\util.py", line 37, in flash_size_bytes
Uploading stub...
Running stub...
TypeError: argument of type 'NoneType' is not iterable
Stub running...
[21112] Failed to execute script 'esptool' due to unhandled exception!
Changing baud rate to 921600
Changed.
Configuring flash size...
the selected serial port Configuring flash size...
 does not exist or your board is not connected
I know that USB communication is OK, since I can connect to the board and I get the following:
Captura de pantalla 2025-03-06 180826.png
Captura de pantalla 2025-03-06 180826.png (83.08 KiB) Viewed 175 times
I may think that the problem is in the flash, since is the only thing I changed from previous desings and it seems to be freezing when it tries to access the flash.

The flash I am using is the following:

https://www.lcsc.com/datasheet/lcsc_dat ... C97521.pdf

And here the schematic:
JSx0395_DisplayCarrierBoard-Microcontroller.pdf
(141.96 KiB) Downloaded 58 times
And finally, here all the configurations I am using to upload the (empty) sketch:
Sin título.png
Sin título.png (33.92 KiB) Viewed 175 times
Do you have any advice on where should the error be?

Thank you very much!

Who is online

Users browsing this forum: No registered users and 82 guests