From 2a399a0decbcb22959dca4ce4aa9a644650c2f22 Mon Sep 17 00:00:00 2001 From: "radim.karnis" Date: Thu, 19 Oct 2023 10:47:37 +0200 Subject: [PATCH] docs(troubleshooting): Explain issues when flashing with USB-Serial/JTAG or USB-OTG Closes https://github.com/espressif/esptool/issues/924 --- docs/en/troubleshooting.rst | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/en/troubleshooting.rst b/docs/en/troubleshooting.rst index ef516ee70..5d3e3dbf3 100644 --- a/docs/en/troubleshooting.rst +++ b/docs/en/troubleshooting.rst @@ -102,6 +102,17 @@ Early Stage Crash Use any of `serial terminal programs`_ to view the boot log. ({IDF_TARGET_NAME} baud rate is 115200bps). See if the program is crashing during early startup or outputting an error message. +.. only:: not esp8266 and not esp32 and not esp32c2 + + Issues When Using USB-Serial/JTAG or USB-OTG + -------------------------------------------- + + When working with ESP chips that implement a `USB-Serial/JTAG Controller `_ or a `USB-OTG console `_, it's essential to be aware of potential issues related to the loaded application interfering with or reprogramming the GPIO pins used for USB communication. + + If the application accidentally reconfigures the USB peripheral pins or disables the USB peripheral, the device disappears from the system. You can also encounter unstable flashing or errors like ``OSError: [Errno 71] Protocol error``. + + If that happens, try :ref:`manually entering the download mode ` and then using the :ref:`erase_flash ` command to wipe the flash memory. Then, make sure to fix the issue in the application before flashing again. + Serial Terminal Programs ------------------------