I was trying to program my ESP32_CAM module, but every time I got this error:
Serial port COM4
Connecting.................................
Chip is ESP32-D0WD-V3 (revision 3)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: 30:c6:f7:51:82:d4
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
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 0x0016efff...
Compressed 18528 bytes to 12759...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Has anyone had a similar problem?
asked May 24, 2022 at 20:02
1
This link says it means there is something wrong with the esp file system rendering it «broken»… Not sure if there is a way to fix the issue though.
EDIT:
I found that if I disconnected some of my peripherals from esp32, the error went away. Perhaps too much power was being drawn.
answered Aug 8, 2022 at 20:29
Carsten BrooksCarsten Brooks
1331 gold badge1 silver badge9 bronze badges
1
Loading
Please be positive and constructive with your questions and comments.
-
Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Can’t flash QT Py ESP32 Pico
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?
-
Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Re: Can’t flash QT Py ESP32 Pico
Post
by Indymx » Tue Aug 02, 2022 10:08 am
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
-
Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Re: Can’t flash QT Py ESP32 Pico
Post
by Indymx » Tue Aug 02, 2022 11:45 am
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)
-
Indymx
- Posts: 20
- Joined: Tue Mar 03, 2020 6:35 am
Please be positive and constructive with your questions and comments.
Board
ESP32-PICO-D4
Device Description
Custom PCB — ESP32 Pico D4.
PIR sensor connected to an analog pin, and another sensor connected to I2C — few buttons on a GPIO and RGB LED
Hardware Configuration
SD0-SD3 Unconnected
CMD, CLK Unconnected
IO16, IO17 Unconnected
IO0 only connected to programmer
IO2 connected to LED Anode (But removed to test if this was the issue)
IO12 (MTDI) connected with pull-down (also tested with this removed)
Using an old ESP32 Devkit C with the ESP32 module removed to flash with (connecting TX, RX, EN, IO0 GND to my module)
Version
v2.0.5
IDE Name
Arduino IDE / Espressif IDE
Operating System
Windows 10
Flash frequency
40MHz
PSRAM enabled
no
Upload speed
115200 to 921600
Description
I’m building a new revision of a prototype of a PCB with an ESP32 PICO D4 on it. In the old revision, I used an ESP32 WROOM module, but due to size issues, I had to change to PICO D4.
I had verified the hardware by running a hello world sketch and uploading it was successful.
Now it was time to upload the prototype firmware, so I changed the board type from Wroom to PICO32 and uploaded the firmware without any issue — But after the firmware was flashed, I could see the following message on the serial port:
`ets Jun 8 2016 00:22:57
rst:0x10 (RTCWDT_RTC_RESET),boot:0x17 (SPI_FAST_FLASH_BOOT)
flash read err, 1000
ets_main.c 371`
For now the device «seems bricked», since I cannot upload a new sketch / firmware. I have tried to let it autoconnect, and I have tried with the EN and boot button to flash, but I will get the following message when trying to upload a sketch:
esptool.py v4.2.1 Serial port COM3 Connecting.... Chip is ESP32-PICO-D4 (revision 1) Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None Crystal is 40MHz MAC: e8:9f:6d:09:8e:28 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.
So it seems like after flashing my previous firmware that I cannot connect to the flashchip — normally this is due to stapping pins (which is unconnected), so how can I flash a fresh bootloader when I’m not allowed to upload a sketch?
Sketch
void setup() { // put your setup code here, to run once: Serial.begin(115200); } void loop() { // put your main code here, to run repeatedly: Serial.println("Hello world!"); }
Debug Message
Sketch uses 245141 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 16440 bytes (5%) of dynamic memory, leaving 311240 bytes for local variables. Maximum is 327680 bytes.
esptool.py v4.2.1
Serial port COM3
Connecting....
Chip is ESP32-PICO-D4 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, Embedded Flash, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: e8:9f:6d:09:8e:28
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 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 0x0004bfff...
Compressed 17472 bytes to 12125...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
Failed uploading: uploading error: exit status 2
Other Steps to Reproduce
No response
I have checked existing issues, online documentation and the Troubleshooting Guide
- I confirm I have checked existing issues, online documentation and Troubleshooting guide.
Hi, I want to use the Micro-SD in 4-bit mode on ESP32-GATEWAY. Based on the schematic, it seems R9-R11 needs to be filled with 0-ohm resistors for this to happen.
Is this correct? My problem is that filling R11 specifically makes flashing fail. Here are the last lines of the flashing attempt log:
Changing baud rate to 460800
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 0x00007fff...
Flash will be erased from 0x00010000 to 0x00039fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Compressed 25392 bytes to 15880...
A fatal error occurred: Packet content transfer stopped (received 8 bytes)
CMake Error at run_serial_tool.cmake:56 (message):
C:/Espressif/python_env/idf4.4_py3.8_env/Scripts/python.exe
C:/Espressif/frameworks/esp-idf-v4.4.2/components/esptool_py/esptool/esptool.py
--chip esp32 failed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.