ESP32-C3 serial access via device links not working

User avatar
joba-1
Posts: 10
Joined: Mon Jan 28, 2019 12:26 am

ESP32-C3 serial access via device links not working

Postby joba-1 » Fri Sep 15, 2023 9:48 am

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?

dallim30
Posts: 22
Joined: Thu Apr 29, 2021 1:35 am

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

Postby dallim30 » Mon Mar 11, 2024 3:39 am

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

Who is online

Users browsing this forum: pmi2410 and 187 guests