-
I don't have a problem erasing flash and loading firmware on an ESP32-S3 on a Espressif ESP32-S3-DevKitC-1 board, using the instructions on the Micropython website. No errors are reported. But when I try to open a REPL session I get a continuous, non-stop display of "invalid header: 0xffffffff" messages. I used the firmware file "GENERIC_S3-20220618-v1.19.1.uf2", and also tried the ".bin" version. I tried decreasing the upload baud rate to 115,200. There no longer seems to be a "-- verify" option in but I assume it now automatically verifies because I get a "hash of data verified" message. version is 4.4 and the command lines used were: esptool.py --port com14 erase_flash The development board is a genuine Espressif board, not a knock-off, purchased a couple of months ago and it worked just fine out of the box, using Visual Studio Code and Platform I/O to load a small "blink led" C++ program. But I really want to use Micropython, having used it on pyboards for a few years, with never a problem loading firmware on them. Any suggestions will be much appreciated. |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 15 replies
-
Try: esptool.py --chip esp32 --port com14 erase_flash and then esptool.py --chip esp32 --port com14 --baud 460800 write_flash -z 0x1000 esp32-20220618-v1.19.1.bin change to your .bin file. Also, you might need to change the --chip to your variant. |
Beta Was this translation helpful? Give feedback.
-
Explicitly which ESP32-S3-DevKitC-1 board is it? We've had a few reports that the Octal SPI (for flash/psram) variants have had some issues. I'd actually thought that they should work with standard (quad) SPI but it may not be the case... |
Beta Was this translation helpful? Give feedback.
-
It is the N8R8 version, with ESP32-S3-WROOM-1-N8R8 module. |
Beta Was this translation helpful? Give feedback.
-
I am familiar with this problem, lucky.
Pay attention to replace the correct serial port number and file name. |
Beta Was this translation helpful? Give feedback.
-
Thanks. That worked. I have the REPL. I am curious, however. You say this firmware doesn't use PSRAM but I'm uploading exactly the same file, except to address 0x0 instead of 0x1000. In fact, yesterday I tried uploading the "normal" way to address 0x0 and it didn't work. Is it something to do with the USB port (versus the UART one) and/or manually using the bootleader? |
Beta Was this translation helpful? Give feedback.
-
I finally got around to trying the N8 (no PSRAM) version, but I still get the same error messages (in red) when the board is reset: |
Beta Was this translation helpful? Give feedback.
-
Well guys, i could finally flash my esp32s3, just change the 0x1000 by 0 |
Beta Was this translation helpful? Give feedback.
-
Same problem with esp32 s3 china clone. (Note : flash at 0x00 not 0x10000) |
Beta Was this translation helpful? Give feedback.
I got the same results with the latest daily versions.
However, the problem is solved. I had accidentally used PSRAM pins 36 and 37 for an I2C bus and when originally setting that up I had missed the (obvious) note in Espressif's documentation for the DevKitC about not using those pins when the module has PSRAM. My bad. I have ordered an N8 (no PSRAM) version of the DevKitC which should allow me to use my existing setup until I get around to moving those I2C lines somewhere else.
Thanks for everyone's help.