Unable to flash new DevKetC - older DevKetC works fine
Posted: Wed Sep 04, 2019 7:19 pm
I have been running code on a ESP32 (Rev 1) DevKitC for a while that I had been given by someone else who had also been developing code on it. Flash, test, flash test.... the usual cycle.
I bought a new DevKitC from Amazon which, when I pluged in, powered up and monitored through COM3, reports scanning the local WiFi neighborhood and finding several SSID advertisements, like this: (Output from PuTTY at 115200 baud, so I know I can connect to the board.)
"
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:10212
entry 0x40078a00
Setup done
scan start
scan done
10 networks found
1: FBI Surveillance Van (-51)*
2: HOME-7C3B-2.4 (-69)*
3: xfinitywifi (-71)
4: Carter1 (-79)*
5: LeoK (-79)*
6: xfinitywifi (-80)
7: xfinitywifi (-81)
8: DIRECT-roku-240-D70321 (-82)*
9: FunkyTown (-92)*
10: xfinitywifi (-95)
"
And then it repeatedly reports scan results.
When I try to flash the new DevKitC using exactly the same tools and procedures (make flash) that worked on the older DevKitC, the attempt times out with the following error message:
"
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/home/Steve/esp/esp-idf/components/esptool_py/Makefile.projbuild:78: erase_flash] Error 2
"
I've tried pressing the on-board "boot" and "en" buttons both separately and simultaneously. I've tried "make erase_flash". No joy.
Then I put the old DevKitC with the Rev 1 ESP32 back on the breadboard - no changes to any wiring - and things worked just fine.
Is there something that I'm missing in getting this new DevKitC to accept a flash? Or do I have a defective DevKitC?
I bought a new DevKitC from Amazon which, when I pluged in, powered up and monitored through COM3, reports scanning the local WiFi neighborhood and finding several SSID advertisements, like this: (Output from PuTTY at 115200 baud, so I know I can connect to the board.)
"
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:812
load:0x40078000,len:0
load:0x40078000,len:10212
entry 0x40078a00
Setup done
scan start
scan done
10 networks found
1: FBI Surveillance Van (-51)*
2: HOME-7C3B-2.4 (-69)*
3: xfinitywifi (-71)
4: Carter1 (-79)*
5: LeoK (-79)*
6: xfinitywifi (-80)
7: xfinitywifi (-81)
8: DIRECT-roku-240-D70321 (-82)*
9: FunkyTown (-92)*
10: xfinitywifi (-95)
"
And then it repeatedly reports scan results.
When I try to flash the new DevKitC using exactly the same tools and procedures (make flash) that worked on the older DevKitC, the attempt times out with the following error message:
"
A fatal error occurred: Failed to connect to ESP32: Timed out waiting for packet header
make: *** [/home/Steve/esp/esp-idf/components/esptool_py/Makefile.projbuild:78: erase_flash] Error 2
"
I've tried pressing the on-board "boot" and "en" buttons both separately and simultaneously. I've tried "make erase_flash". No joy.
Then I put the old DevKitC with the Rev 1 ESP32 back on the breadboard - no changes to any wiring - and things worked just fine.
Is there something that I'm missing in getting this new DevKitC to accept a flash? Or do I have a defective DevKitC?