Page 1 of 1

ESP32-C3 serial access via device links not working

Posted: Fri Sep 15, 2023 9:48 am
by joba-1
Hi,

I currently evaluate an ESP32-C3 Super Mini board because of it's small form factor.

I noticed that on linux the device name of the usb serial port changes all the time (e.g. on every press of the reset button).

Since it is good practice anyways, I wanted to set up an udev rule to create an alias for the device with a fixed name.
For that I created a file /etc/udev/rules.d/98_c3mini.rules with this content:

Code: Select all

SUBSYSTEMS=="usb", ATTRS{idVendor}=="303a", ATTRS{idProduct}=="1001", MODE:="0660", GROUP:="dialout", SYMLINK+="ttyUSB_c3mini"
This creates a link /dev/ttyUSB_c3mini every time I plug in the device.

Code: Select all

/dev/ttyUSB_c3mini_1
--------------------
Hardware ID: LINK=/dev/bus/usb/003/044 LINK=/dev/bus/usb/003/044
Description: n/a
Unfortunately this link does not work:

Code: Select all

pio device monitor -p /dev/ttyUSB_c3mini -b 115200
UserSideException: Could not configure port: (25, 'Inappropriate ioctl for device')
Links of my other "traditional" ESP32 devices point directly to the device in /dev. Here this would be /dev/ttyACM1. But this link points to somewhere in /dev/bus/usb?

Code: Select all

/dev/ttyACM1
------------
Hardware ID: USB VID:PID=303A:1001 SER=48:31:B7:3E:6B:F4 LOCATION=3-9.1:1.0
Description: USB JTAG/serial debug unit
Any idea why this happens and how I can fix this?

Re: ESP32-C3 serial access via device links not working

Posted: Mon Mar 11, 2024 3:39 am
by dallim30
hi,
I’m currently experiencing the same issue.
I can't upload firmware to esp32-c3 super mini

pload_port = \\.\COM4 <-- Com Ports" in Device Manager in Windows 10 when in DFU mode

;upload_speed = 2000000
upload_speed = 115200
monitor_speed = 115200

Thanks in advance for any help you may have,

Chip is ESP32-C3 (revision v0.4)
Features: WiFi, BLE
Crystal is 40MHz
MAC: dc:da:0c:8e:ba:e0
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Flash will be erased from 0x00000000 to 0x00003fff...
Flash will be erased from 0x00008000 to 0x00008fff...
Flash will be erased from 0x0000e000 to 0x0000ffff...
Flash will be erased from 0x00010000 to 0x000fafff...
Compressed 13216 bytes to 9529...

A fatal error occurred: Packet content transfer stopped (received 8 bytes)
*** [upload] Error 2