ESP32 - Flashing does not work
Posted: Mon Sep 19, 2016 2:40 pm
Hello,
I've just got a fresh off the press ESP32 developer module (yet to hit the market i presume) and and expansion board providing UART-USB. Trying to make it work at least enough to compile and upload the IDF sample application. But the flashing does not seem to work. Below are the details, the results are reproducible.
The device boots normally and runs the existing flashed program right now. I managed to connect GPIO0 to GND and got the ESP32 to boot in download mode. I get this report on UART.
Very happy about it, trying to run the esp tool from IDF to do some basic operations, like flash_id and reading flash, I get it to work and get decent result.
But the actual flashing does not work. I get the following result:
When I disconnect the GPIO0 to boot normally, I continue to get the factory programmed program functionality. Happy to get any advice on locating the root cause of this issue.
--best rgds
Marcin
I've just got a fresh off the press ESP32 developer module (yet to hit the market i presume) and and expansion board providing UART-USB. Trying to make it work at least enough to compile and upload the IDF sample application. But the flashing does not seem to work. Below are the details, the results are reproducible.
The device boots normally and runs the existing flashed program right now. I managed to connect GPIO0 to GND and got the ESP32 to boot in download mode. I get this report on UART.
Code: Select all
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x3 (DOWNLOAD_BOOT(UART0/UART1/SDIO_REI_REO_V2))
waiting for download
Code: Select all
>>>>>$ python /home/nathan/tools/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 flash_id
esptool.py v2.0-dev
Connecting...
Uploading stub...
Calling 4009068c
Stub running...
Manufacturer: ef
Device: 4016
Code: Select all
>>>>>$ python /home/nathan/tools/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port /dev/ttyUSB0 --baud 115200 write_flash --flash_mode qio --flash_freq 40m 0x1000 /home/nathan/Projects/test-esp32-1/build/bootloader/bootloader.bin 0x10000 /home/nathan/Projects/test-esp32-1/build/app-template.bin 0x4000 /home/nathan/Projects/test-esp32-1/build/partitions_singleapp.bin
esptool.py v2.0-dev
Connecting...
Uploading stub...
Calling 4009068c
Stub running...
Attaching SPI flash...
Configuring flash size...
Erasing flash...
Took 0.01s to erase flash block
Wrote 16384 bytes at 0x00001000 in 1.4 seconds (91.0 kbit/s)...
File md5: 190703f7d3c17e0d1ba9150fb29f0760
Flash md5: 03a74fe0d612a329564b7d1c5cb4e88e
A fatal error occurred: MD5 of file does not match data in flash!
--best rgds
Marcin