Skip to content

A very serious error occurred during the compilation and burning of large programs on ESP32-S3 using PlatformIO #1543

Closed
@qkqwork

Description

@qkqwork

Project information: The UI was generated using eez studio and the lvgl framework. Previously developed using Arduino IDE, now attempting to switch to Vscode+PlatformIO development (where the problem occurred)
And I use ESP32-S3-WROOM-1-N16R8-Module to debelop.

Now I have encountered a very troublesome problem:
1.When I used Ardouino IDE to compile and upload before, everything was normal.
2.However, when I compiled and uploaded it on VSCODE, everything seemed normal and IDE did not output any errors or reports
3.But after the upload was successful, my machine did not respond at all. Even worse, when I tried to re upload:
The following is the error message generated by VSCode during the second burning process (when ESP32 has already encountered issues):
(Everything was normal earlier, and now we are burning it):

Writing at 0x000f5050... (82 %)
Writing at 0x000fa745... (85 %)
Writing at 0x000ffcba... (87 %)
Writing at 0x00105326... (89 %)

A serial exception error occurred: Cannot configure port, something went wrong. Original message: OSError(22, '指定不存在的设备。', None, 433)
Note: This error originates from pySerial. It is likely not a problem with esptool, but with the hardware connection or drivers.
For troubleshooting steps visit: https://docs.espressif.com/projects/esptool/en/latest/troubleshooting.html
*** [upload] Error 1
  1. At the same time, the normal Arduino IDE cannot upload programs. In the end, I saved this by using LeXin's ESP flashing tool. After I was rescued, the Arduino IDE was functioning normally again, but Platformio was still unavailable
  2. Afterwards, I made various attempts, such as modifying configurations, changing partition tables, and so on. It's useless
  3. This issue only occurs when compiling and uploading this "large" project using platformIO. When I try to compile and upload small programs(such as "Blink") using platformIO, no problems occur

And this is platformio.ini in my project:

[env:esp32s3]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
board_build.arduino.partitions = default_16MB.csv

I've also tried this one:

[env:esp32-s3-devkitc-1]
platform = espressif32
board = esp32-s3-devkitc-1
framework = arduino
monitor_speed = 115200
upload_speed = 921600
upload_protocol = esptool
board_build.partitions = large_spiffs_16MB.csv
board_build.memory_type = qio_opi
board_build.flash_mode = qio
board_build.psram_type = opi
board_upload.flash_size = 16MB
board_upload.maximum_size = 16777216

BUT none of them can prevent problems from happening : (

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions