Flashing failure on ESP SPI ATTACH with 'get flash id error'
Posted: Fri Apr 14, 2017 10:24 am
Hi
I have a WROOM32 on a breadboard using a FTDI USB/UART for comms. In a terminal I can see that the ESP32 is going into flash download mode correctly. Following other forum post answers I have used an independant 3.3V supply for the ESP32 (Bench supply and breadboard plug in supply) - both show same result. When I try to run 'make flash' I get the following:
NariseS@Narise MSYS /E/Electronics/Eclipse/ProjectZippy
$ python /e/Electronics/Eclipse/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port COM9 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 /E/Electronics/Eclipse/ProjectZippy/build/bootloader/bootloader.bin 0x10000 /E/Electronics/Eclipse/ProjectZippy/build/app-template.bin 0x8000 /E/Electronics/Eclipse/ProjectZippy/build/partitions_singleapp.bin
esptool.py v2.0-beta2
Connecting......
Uploading stub...
Running stub...
Stub running...
Attaching SPI flash...
Configuring flash size...
Flash params set to 0x0220
Compressed 13824 bytes to 7638...
A fatal error occurred: Timed out waiting for packet content
In the ESP download tool the console reports this:
pic path: ./RESOURCE/SYNC_S.bmp
***********************
chip sync ok!
ESP32 set baud: 115200
Changing baud rate to 115200
Changed.
mac l: 0xc404160cL
mac h: 0x9b240a
crc_cal: 155
crc_read: 155
crc_test: 0
ESP32 mac crc ok
48bit mac
MAC AP : 240AC404160D
MAC STA: 240AC404160C
get mac res: True
('tttest uuuuuuuuuuart : uart reg: ', 342)
(' baudrate: ', 115200)
get crystal: 39398400
SEND ESP SPI ATTACH CMD
get flash id error
com closed*********************
pic path: ./RESOURCE/ERROR_S.bmp
***********************
KEY PATH NONE...
Any help would be appreciated.
I have also checked the following:
Pin 14 left loating
Pin 24 tied to 0V
Pin 25 tied to 0V
Nothing connected between pins 17 and 22
I noticed before selecting the flash size manually that the flash script was also unable to automatically determine the flash size.
Regards
John
I have a WROOM32 on a breadboard using a FTDI USB/UART for comms. In a terminal I can see that the ESP32 is going into flash download mode correctly. Following other forum post answers I have used an independant 3.3V supply for the ESP32 (Bench supply and breadboard plug in supply) - both show same result. When I try to run 'make flash' I get the following:
NariseS@Narise MSYS /E/Electronics/Eclipse/ProjectZippy
$ python /e/Electronics/Eclipse/esp-idf/components/esptool_py/esptool/esptool.py --chip esp32 --port COM9 --baud 115200 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size 4MB 0x1000 /E/Electronics/Eclipse/ProjectZippy/build/bootloader/bootloader.bin 0x10000 /E/Electronics/Eclipse/ProjectZippy/build/app-template.bin 0x8000 /E/Electronics/Eclipse/ProjectZippy/build/partitions_singleapp.bin
esptool.py v2.0-beta2
Connecting......
Uploading stub...
Running stub...
Stub running...
Attaching SPI flash...
Configuring flash size...
Flash params set to 0x0220
Compressed 13824 bytes to 7638...
A fatal error occurred: Timed out waiting for packet content
In the ESP download tool the console reports this:
pic path: ./RESOURCE/SYNC_S.bmp
***********************
chip sync ok!
ESP32 set baud: 115200
Changing baud rate to 115200
Changed.
mac l: 0xc404160cL
mac h: 0x9b240a
crc_cal: 155
crc_read: 155
crc_test: 0
ESP32 mac crc ok
48bit mac
MAC AP : 240AC404160D
MAC STA: 240AC404160C
get mac res: True
('tttest uuuuuuuuuuart : uart reg: ', 342)
(' baudrate: ', 115200)
get crystal: 39398400
SEND ESP SPI ATTACH CMD
get flash id error
com closed*********************
pic path: ./RESOURCE/ERROR_S.bmp
***********************
KEY PATH NONE...
Any help would be appreciated.
I have also checked the following:
Pin 14 left loating
Pin 24 tied to 0V
Pin 25 tied to 0V
Nothing connected between pins 17 and 22
I noticed before selecting the flash size manually that the flash script was also unable to automatically determine the flash size.
Regards
John