ESP32S3 lost USB download features since deep sleep test
Posted: Sat Nov 12, 2022 4:39 pm
Hello Support,
I am here because I am facing strange problem with a custom board with an ESP32S3 chip. During developement, I tested some deep sleep capacities with EXT0/EXT1 wakeup from IO0 pin. Since I flashed that firmware, my device is not able to receive firmware through USB bus. I added a USB/Serial device for catch message on TXD0 and when I force device in download mode (BOOT0 at 0), I am able to see message "... (USB/UART0)...wait for download".
If I let the esp-idf programmer use the USB/Serial device, I am able to program the firmware and the firmware runs normally. But USB is not usefull anymore ...
There is some generic message I receive from tools
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:3c:65:48
Uploading stub...
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 5482, in <module>
_main()
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 5475, in _main
main()
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 4805, in main
esp = esp.run_stub()
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 942, in run_stub
self.mem_block(stub[field][from_offs:to_offs], seq)
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 780, in mem_block
return self.check_command("write to target RAM", self.ESP_MEM_DATA,
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 520, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 483, in command
self.write(pkt)
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 446, in write
self._port.write(buf)
File "C:\prjs\common\esp32\python_env\idf4.4_py3.10_env\lib\site-packages\serial\serialwin32.py", line 325, in write
raise SerialTimeoutException('Write timeout')
serial.serialutil.SerialTimeoutException: Write timeout
CMake Error at run_serial_tool.cmake:56 (message):
C:/prjs/common/esp32/python_env/idf4.4_py3.10_env/Scripts/python.exe
C:/prjs/common/Espressif/frameworks/esp-idf-v4.4.3/components/esptool_py/esptool/esptool.py
--chip esp32s3 faile
I am using esp-idf 4.4.3. I have the same behaviour with flash_download_tool_3.9.3(not able to program using USB but able to use USB/Serial).
Thanks a lot for your help
Regards,
Mickael
PS : I have the same problem with esp32s3 eval kit
I am here because I am facing strange problem with a custom board with an ESP32S3 chip. During developement, I tested some deep sleep capacities with EXT0/EXT1 wakeup from IO0 pin. Since I flashed that firmware, my device is not able to receive firmware through USB bus. I added a USB/Serial device for catch message on TXD0 and when I force device in download mode (BOOT0 at 0), I am able to see message "... (USB/UART0)...wait for download".
If I let the esp-idf programmer use the USB/Serial device, I am able to program the firmware and the firmware runs normally. But USB is not usefull anymore ...
There is some generic message I receive from tools
Chip is ESP32-S3
Features: WiFi, BLE
Crystal is 40MHz
MAC: 68:b6:b3:3c:65:48
Uploading stub...
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 5482, in <module>
_main()
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 5475, in _main
main()
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 4805, in main
esp = esp.run_stub()
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 942, in run_stub
self.mem_block(stub[field][from_offs:to_offs], seq)
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 780, in mem_block
return self.check_command("write to target RAM", self.ESP_MEM_DATA,
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 520, in check_command
val, data = self.command(op, data, chk, timeout=timeout)
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 483, in command
self.write(pkt)
File "C:\prjs\common\Espressif\frameworks\esp-idf-v4.4.3\components\esptool_py\esptool\esptool.py", line 446, in write
self._port.write(buf)
File "C:\prjs\common\esp32\python_env\idf4.4_py3.10_env\lib\site-packages\serial\serialwin32.py", line 325, in write
raise SerialTimeoutException('Write timeout')
serial.serialutil.SerialTimeoutException: Write timeout
CMake Error at run_serial_tool.cmake:56 (message):
C:/prjs/common/esp32/python_env/idf4.4_py3.10_env/Scripts/python.exe
C:/prjs/common/Espressif/frameworks/esp-idf-v4.4.3/components/esptool_py/esptool/esptool.py
--chip esp32s3 faile
I am using esp-idf 4.4.3. I have the same behaviour with flash_download_tool_3.9.3(not able to program using USB but able to use USB/Serial).
Thanks a lot for your help
Regards,
Mickael
PS : I have the same problem with esp32s3 eval kit