ESP32C3 download via builtin USB-JTAG frequently failed with random error messages

Board: Custom Board with ESP32C3-FH4, selected esp32-c3-devkitc-02 as platformio target
Download method: Builtin USB-JTAG
Platformio.ini configuration:
[env:esp32-c3-devkitc-02]
platform = espressif32
board = esp32-c3-devkitc-02
framework = arduino
upload_speed = 9600

Environment: PlatformIO on VSCode, chose Arduino as development platform

CPU: Intel i7-14650HX
OS: Windows 11 Pro Workstation

Problem Describtion:
When I tried to download via builtin USB-JTAG, the following error messages pop up randomly:
A fatal error occurred: Packet content transfer stopped (received 1 bytes)
A fatal error occurred: The chip stopped responding.
A fatal error occurred: Unable to verify flash chip connection (Packet content transfer stopped (received 4 bytes)).

Yet in my colleague’s computer the download is fine. May anyone please help me?

Just to be clear, this error doesn’t pop up every time?

Did he use the exact same board (yours) or his own?

Just to be clear, this error doesn’t pop up every time?

Here I mean that I cannot predict what error will the terminal throw, but I can be sure that the error will be 1 of the listed 3.

Did he use the exact same board (yours) or his own?

Yes

I assume you mean exactly the same board and not a similar one.

What about the used cable? Is it also the exact same ?
Please try a different cable.

It might be a cable or USB Port issue.

The cable is also the same. I grabbed both the board and the cable to his computer.

Just tested 2 other cable and the problem stills. I tried to re-install PlatformIO extension and it resolved the problem for a few hours, then the problem starts again.

Making the chip entering Joint Download Boot mode does not help.

Removing the PlatformIO extension won’t help.
To perform a real reinstallation:

  • Close VS Code
  • Delete the folder %HOMEPATH%/.platformio
  • Restart VS-Code
  • Wait until PlatformIO has been reinstalled
  • Open your project folder and try to upload

BTW: I don’t think that PlatformIO is causing the issues. Do you have the same issues when using ArduinoIDE? (Just for double checking)

Download succeded when using Arduino IDE

Does the issue still happen after reinstallation of PlatformIO?

Please also show a screenshot of your ArduinoIDE Board settings.


Re-installing PlatformIO solved the problem, at least for now.

I will try for the next few days to see if the problem comes up again. Thank you for assist.