Skip to content

Unable to use upload port wildcard on /dev/serial/by-id node in linux #325

@mp035

Description

@mp035

When specifying an upload_port in platformio.ini (on linux) this works

upload_port = /dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit_8C:BF:EA:0D:B2:BC-if00

However this

upload_port = /dev/serial/by-id/usb-Espressif_USB_JTAG_serial_debug_unit*

results in

CURRENT: upload_protocol = esptool
Looking for upload port...
Error: Please specify 'upload_port' for environment or use global '--upload-port' option.
For some development platforms it can be a USB flash drive (i.e. /media/<user>/<device name>)
*** [upload] Explicit exit, status 1

pio device list, does not detect the /dev/serial/by-id nodes, I don't now if that has anything to do with it:

 *  Executing task: platformio device list 

/dev/ttyS0
----------
Hardware ID: PNP0501
Description: ttyS0

/dev/ttyACM1
------------
Hardware ID: USB VID:PID=303A:1001 SER=8C:BF:EA:0D:B2:BC LOCATION=3-3:1.0
Description: USB JTAG/serial debug unit

PlatformIO version:
Core 6.1.18
Home 3.4.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions