-
Notifications
You must be signed in to change notification settings - Fork 76
Description
Describe the bug
After compiling and flashing the device, I try connecting via CDC, and there is a problem with the COM port. The terminal application is unable to connect. I've tried Thonny and other terminal applications. I get this error:
A fatal error occurred: Could not open COM5, the port is busy or doesn't exist.
(Cannot configure port, something went wrong. Original message: PermissionError(13, 'A device attached to the system is not functioning.', None, 31))
Expected behavior
I should be able to connect to the device REPL with a terminal app.
Additional info
I can successfully use the Generic ESP32-S3 (SPIRAM-OCT variant) build of MicroPython:
https://micropython.org/download/ESP32_GENERIC_S3
With this build, the REPL works properly.
Also, when I use UsbTreeView to see what COM port I'm connecting to, I notice that I get different device string descriptors:
When in programming mode: "USB JTAG/serial debug unit"
After flashing lvgl_micropython image: "USB JTAG/serial debug unit"
After flashing generic MicroPython.org image: "Espressif Device" (but this shows up on COM6)
Images
This is not a visual issue.
If you are having a problem compiling paste the build output below. (NO SCREENSHOTS)
There were no errors while building.
If your problem is running the binding please past the code you are using below.*
I can't get far enough to run any code on the device.
**Exact make and model number of the MCU that you are compiling for or the firmware is running on. **
- Make: Espressif
- Model: ESP32-S3R8 Dual core LX7
For ESP32 MCU's The PSRAM and FLASH SPI type, quad SPI or octal SPI.
- PSRAM: octal, 8MB (OPI)
- FLASH: quad, 16MB (QIO)
- OS: WSL 2.3.26.0
Build Command
python3 make.py esp32 \
BOARD=ESP32_GENERIC_S3 \
BOARD_VARIANT=SPIRAM_OCT \
DISPLAY=st7796 \
--enable-cdc-repl=y \
--flash-size=16Flashing Command
I thought I should include the flashing command. I execute this from PowerShell, and I get no errors from it.
python -m esptool --chip esp32s3 -p COM5 -b 460800 --before default-reset --after hard-reset write-flash --flash-mode dio --flash-size 16MB --flash-freq 80m --erase-all 0x0 lvgl_micropy_ESP32_GENERIC_S3-SPIRAM_OCT-16.bin