miketeachman / micropython-esp32-i2s-examples

Usage and examples for I2S support on the ESP32 microcontroller
MIT License
152 stars 29 forks source link

Cannot flash prebuilt image #20

Closed dylanbruinsma closed 3 years ago

dylanbruinsma commented 3 years ago

Hi, hope you can help me. I want to give the prebuilt flash a try, but it keeps giving me the following error: image I believe the flash address is wrong, but what can I do about this?

miketeachman commented 3 years ago

Hi @dylono96,

Can you please check your firmware image file? The size of 105472 bytes reported by the esptool does not seem correct. It should be 1444336 bytes.

Here is the esptool output when I erase and program an ESP32 board (WROOM module).

I hope this helps!

miket@basement MINGW64 ~/Documents/ESP8266-ESP32-Pyboard/Download ESP32
$ esptool.py --port COM4  erase_flash
esptool.py v2.8
Serial port COM4
Connecting........_
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b4:e6:2d:95:a6:c5
Uploading stub...
Running stub...
Stub running...
Erasing flash (this may take a while)...
Chip erase completed successfully in 4.3s
Hard resetting via RTS pin...

miket@basement MINGW64 ~/Documents/ESP8266-ESP32-Pyboard/Download ESP32
$ esptool.py --port COM4  --baud 921600 write_flash -z 0x1000 esp32-idf3-i2s-2020-05-13-v1-12.bin
esptool.py v2.8
Serial port COM4
Connecting......
Detecting chip type... ESP32
Chip is ESP32D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: b4:e6:2d:95:a6:c5
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 4MB
Compressed 1444336 bytes to 919693...
Wrote 1444336 bytes (919693 compressed) at 0x00001000 in 12.7 seconds (effective 908.3 kbit/s)...
Hash of data verified.

Leaving...
Hard resetting via RTS pin...
miketeachman commented 3 years ago

No response from submitter. assume issue is fixed. closing