Trying to reset an Adafruit QT Py ESP32 Pico and am getting the following: (https://www.adafruit.com/product/5395)
esptool --port /dev/ttyACM0 write_flash 0x0 qt-py-esp32-pico-factory-reset.bin
esptool.py v2.8
Serial port /dev/ttyACM0
Connecting.......
Detecting chip type... ESP32
Chip is unknown ESP32 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:0b:fb:69:4d:c0
Enabling default SPI flash mode...
Configuring flash size...
Warning: Could not auto-detect Flash size (FlashID=0xffffff, SizeID=0xff), defaulting to 4MB
Erasing flash...
A fatal error occurred: Timed out waiting for packet header
Once in a while when I reset the board it "works", as in the current binary will produce correct results on the serial monitor and the BLE app that monitors it.
However, most of the time I get the following output on the serial monitor:
rst:0x10 (RTCWDT_RTC_RESET),boot:0x33 (SPI_FAST_FLASH_BOOT)
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
invalid header: 0xffffffff
ets Jul 29 2019 12:21:46
Is there anything anyone can think of to return this to a state that I can flash something to it?
Can't flash QT Py ESP32 Pico
Moderators: adafruit_support_bill, adafruit
Please be positive and constructive with your questions and comments.
- Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Re: Can't flash QT Py ESP32 Pico
Also getting this error from Arduino IDE:
Sketch uses 235333 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16168 bytes (4%) of dynamic memory, leaving 311512 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.3
Serial port COM9
Connecting....
Chip is ESP32-PICO-V3-02 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, Embedded PSRAM, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:0b:fb:69:4d:c0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00049fff...
Flash params set to 0x023f
Compressed 17440 bytes to 12089...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Failed uploading: uploading error: exit status 2
Sketch uses 235333 bytes (17%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16168 bytes (4%) of dynamic memory, leaving 311512 bytes for local variables. Maximum is 327680 bytes.
esptool.py v3.3
Serial port COM9
Connecting....
Chip is ESP32-PICO-V3-02 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, Embedded PSRAM, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:0b:fb:69:4d:c0
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00001000 to 0x00005fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x00049fff...
Flash params set to 0x023f
Compressed 17440 bytes to 12089...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Failed uploading: uploading error: exit status 2
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Can't flash QT Py ESP32 Pico
Code: Select all
esptool.py v2.8
- Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Re: Can't flash QT Py ESP32 Pico
No change with v4.2
esptool.py v4.2
Serial port COM9
Connecting.....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-PICO-V3-02 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, Embedded PSRAM, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:0b:fb:69:4d:c0
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000b5fff...
Compressed 743936 bytes to 446187...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
esptool.py v4.2
Serial port COM9
Connecting.....
Detecting chip type... Unsupported detection protocol, switching and trying again...
Connecting....
Detecting chip type... ESP32
Chip is ESP32-PICO-V3-02 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, Embedded PSRAM, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: ac:0b:fb:69:4d:c0
Uploading stub...
Running stub...
Stub running...
WARNING: Failed to communicate with the flash chip, read/write operations will fail. Try checking the chip connections or removing any other hardware connected to IOs.
Configuring flash size...
Flash will be erased from 0x00000000 to 0x000b5fff...
Compressed 743936 bytes to 446187...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
- adafruit_support_carter
- Posts: 29168
- Joined: Tue Nov 29, 2016 2:45 pm
Re: Can't flash QT Py ESP32 Pico
Is there anything connected to the QT Py? Other than the USB cable.
- Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Re: Can't flash QT Py ESP32 Pico
I have tried several USB cables, different USB ports and also tried under linux and windows.
- adafruit2
- Posts: 22148
- Joined: Fri Mar 11, 2005 7:36 pm
Re: Can't flash QT Py ESP32 Pico
freaky - dont know what it is - can email support@adafruit for a new one in case there's something that happened in the chip somehow.
- Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Re: Can't flash QT Py ESP32 Pico
Thanks. I emailed support.
Please be positive and constructive with your questions and comments.