Feather Esp32-S3 2M PSRAM Packet content transfer stopped

Please tell us which board you are using.
For CircuitPython issues, ask in the Adafruit CircuitPython forum.

Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.
Locked
User avatar
thoerig
 
Posts: 2
Joined: Sat Aug 06, 2022 4:18 pm

Feather Esp32-S3 2M PSRAM Packet content transfer stopped

Post by thoerig »

Using the Arduino IDE, I am unable to successfully upload a sketch to the Feather Esp32-S3 w 2M PSRAM. The final error is:
A fatal error occurred: Packet content transfer stopped (received 25 bytes).
I haven't been able to find a definitive description of the error or a solution.

It doesn't always fail at the same spot in the download, sometimes more or less of the flash actually gets programmed, which makes for interesting output when the board is reset.

At the moment I backed off to the 2.0.3 version of the espressif, but I also tried 2.0.4 with the same results.

I really need a definitive explanation of the error, and a possible solution, or is the board bad is some manner?

Here's a dump of last run in the IDE:
Arduino: 1.8.19 (Linux), Board: "Adafruit Feather ESP32-S3 No PSRAM, USB-OTG, Enabled, Disabled, Disabled, Default 4MB with spiffs (1.2MB APP/1.5MB SPIFFS), 240MHz (WiFi), 80MHz, 460800, None"

Sketch uses 237305 bytes (18%) of program storage space. Maximum is 1310720 bytes.
Global variables use 20764 bytes (6%) of dynamic memory, leaving 306916 bytes for local variables. Maximum is 327680 bytes.
Forcing reset using 1200bps open/close on port /dev/ttyACM0
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
PORTS {/dev/ttyACM0, /dev/ttyS0, } / {/dev/ttyACM0, /dev/ttyS0, } => {}
Uploading using selected port: /dev/ttyACM0
python3 /home/tim/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 460800 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 8MB 0x0 /tmp/arduino_build_803041/Blink.ino.bootloader.bin 0x8000 /tmp/arduino_build_803041/Blink.ino.partitions.bin 0xe000 /home/tim/.arduino15/packages/esp32/hardware/esp32/2.0.3/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino_build_803041/Blink.ino.bin 0x410000 /home/tim/.arduino15/packages/esp32/hardware/esp32/2.0.3/variants/adafruit_feather_esp32s3_nopsram/tinyuf2.bin
esptool.py v3.3-dev
Serial port /dev/ttyACM0
Connecting...
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: f4:12:fa:5a:21:94
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 460800
Changed.
Configuring flash size...
Flash will be erased from 0x00000000 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 0x0004afff...
Flash will be erased from 0x00410000 to 0x00438fff...
Compressed 22672 bytes to 14284...
Writing at 0x00000000... (100 %)
Wrote 22672 bytes (14284 compressed) at 0x00000000 in 0.5 seconds (effective 353.5 kbit/s)...

A fatal error occurred: Packet content transfer stopped (received 25 bytes)
A fatal error occurred: Packet content transfer stopped (received 25 bytes)



This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather Esp32-S3 2M PSRAM Packet content transfer stoppe

Post by mikeysklar »

The error message you are seeing appears to be specific to running the Arduino IDE on Linux, but there is a work around.
A fatal error occurred: Packet content transfer stopped (received 25 bytes)
https://blog.yelvlab.cn/archives/637/

Code: Select all

idf.py menuconfig
 serial flasher config-->Disable download stub

User avatar
thoerig
 
Posts: 2
Joined: Sat Aug 06, 2022 4:18 pm

Re: Feather Esp32-S3 2M PSRAM Packet content transfer stoppe

Post by thoerig »

Thanks. That helped. I don't have idf.py, but i was able to extract the esptool.py command from the arduino ide, add the --no-stub, and then run the new command in a terminal with python3. e.g.

original command from output window of arduino ide when 'upload' is selected:
python3 /home/tim/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 /tmp/arduino_build_310510/HelloWorldSerial.ino.bootloader.bin 0x8000 /tmp/arduino_build_310510/HelloWorldSerial.ino.partitions.bin 0xe000 /home/tim/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino_build_310510/HelloWorldSerial.ino.bin

I added the --no-stub between '--after hard_reset write_flash'
python3 /home/tim/.arduino15/packages/esp32/tools/esptool_py/3.3.0/esptool.py --chip esp32s3 --port /dev/ttyACM0 --baud 921600 --before default_reset --after hard_reset --no-stub write_flash -z --flash_mode dio --flash_freq 80m --flash_size 4MB 0x0 /tmp/arduino_build_310510/HelloWorldSerial.ino.bootloader.bin 0x8000 /tmp/arduino_build_310510/HelloWorldSerial.ino.partitions.bin 0xe000 /home/tim/.arduino15/packages/esp32/hardware/esp32/2.0.4/tools/partitions/boot_app0.bin 0x10000 /tmp/arduino_build_310510/HelloWorldSerial.ino.bin

I run the above new command in a terminal window. I'm using ubuntu 22.04 in a vmware vm.

At some point I'll figure out how to get the --no-stub into the arduino ide configuration, but for now I have a working solution.

User avatar
mikeysklar
 
Posts: 13936
Joined: Mon Aug 01, 2016 8:10 pm

Re: Feather Esp32-S3 2M PSRAM Packet content transfer stoppe

Post by mikeysklar »

Good work. Thanks for sharing the syntax you came up with the --no-stub placement.

Locked
Please be positive and constructive with your questions and comments.

Return to “Feather - Adafruit's lightweight platform”