I have a problem, pl2303, ch340, ch341 can't upload usb ttl
CP2303
Here the two software cannot be uploaded, in the case of Arduino 1.18.9 the port does not appear and in the case of Arduino 2.2.1 an error appears as shown in the image below
[ 142.177274] usb 1-1.3: new full-speed USB device number 3 using ehci-pci
[ 142.281622] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 4.00
[ 142.281637] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 142.281644] usb 1-1.3: Product: USB-Serial Controller
[ 142.281648] usb 1-1.3: Manufacturer: Prolific Technology Inc.
[ 142.419900] usbcore: registered new interface driver usbserial_generic
[ 142.419915] usbserial: USB Serial support registered for generic
[ 142.433638] Invalid architecture in ELF header: 40
[ 167.009189] [UFW BLOCK] IN=wlp3s0 OUT= MAC=01:00:5e:00:00:01:b2:be:76:01:f2:58:08:00 SRC=0.0.0.0 DST=224.0.0.1 LEN=36 TOS=0x00 PREC=0xC0 TTL=1 ID=0 DF PROTO=2
[ 201.958013] usb 1-1.3: USB disconnect, device number 3
[ 206.537188] usb 1-1.3: new full-speed USB device number 4 using ehci-pci
[ 206.634749] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 4.00
[ 206.634756] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 206.634758] usb 1-1.3: Product: USB-Serial Controller
[ 206.634759] usb 1-1.3: Manufacturer: Prolific Technology Inc.
[ 206.683491] Invalid architecture in ELF header: 40
Does that message disappear when you disconnect the board? Or does dmesg keeps on spitting it out fromtime to time?
I think that that indicates that your system is trying to use a 64-bit version of something instead of the 32-bit version or vice versa; but I do not know for what. It might be the driver for the Prolific chips; did you install them yourself or were they pre-installed?
Which Linux are you using? Is it 32-bit or 64-bit?
I don't know, before I was fine using all my usb serials. Today I tried again and it turned out that on Arduino 1.18.9 no port was found and then the prolic driver experienced a problem of not being able to upload on all versions of Arduino Ide and Silicon Lab only worked on Arduino Ide 2.2.1
Figured out that you're using a 64-bit Linux else IDE 2.x would not work; still don't know which one. I unfortunately can't help further because I don't have boards with a Prolific chip.
What don't you know?
OK, so in the past it all worked? And now you have problems. So what changed? System upgrade?
Initially Arduino Ide 2.2.1 sent a notification about the Arduino board update, after I updated suddenly on Arduino 1.18.9 the port didn't appear and finally there was another problem until now I can't upload my Arduino program using USB TTL, even the default USB TTL esp32 also having problems with ports not showing up on 1.18.9 but esp32 still working fine on arduino 2.2.1
The output that you provided in post #3 seems to be missing and important part. Below is for a Nano with CH340 on Ubuntu 24.04.
[ 247.283421] usb 1-3.1: new full-speed USB device number 12 using xhci_hcd
[ 247.361631] usb 1-3.1: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.63
[ 247.361650] usb 1-3.1: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 247.361656] usb 1-3.1: Product: USB2.0-Serial
[ 247.373655] ch341 1-3.1:1.0: ch341-uart converter detected
[ 247.374331] usb 1-3.1: ch341-uart converter now attached to ttyUSB0
The last line tells me that I will have a ttyUSB0 and you don't get that line and hence you don't have a port (in the IDE).
[ 175.876838] usb 1-1.3: new full-speed USB device number 3 using ehci-pci
[ 175.979721] usb 1-1.3: New USB device found, idVendor=067b, idProduct=2303, bcdDevice= 4.00
[ 175.979729] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[ 175.979732] usb 1-1.3: Product: USB-Serial Controller
[ 175.979734] usb 1-1.3: Manufacturer: Prolific Technology Inc.
[ 176.065483] usbcore: registered new interface driver usbserial_generic
[ 176.065502] usbserial: USB Serial support registered for generic
[ 176.080671] usbcore: registered new interface driver pl2303
[ 176.080693] usbserial: USB Serial support registered for pl2303
[ 176.080717] pl2303 1-1.3:1.0: pl2303 converter detected
[ 176.082341] usb 1-1.3: pl2303 converter now attached to ttyUSB0
Error when I plug into Arduino 1.18.19
Exception in thread "cc.arduino.packages.discoverers.serial.SerialDiscovery" java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
at java.util.LinkedList.checkElementIndex(LinkedList.java:555)
at java.util.LinkedList.get(LinkedList.java:476)
at processing.app.Platform.resolveDeviceByVendorIdProductId(Platform.java:188)
at cc.arduino.packages.discoverers.serial.SerialDiscovery.forceRefresh(SerialDiscovery.java:166)
at cc.arduino.packages.discoverers.serial.SerialDiscovery$1.run(SerialDiscovery.java:96)
at java.util.TimerThread.mainLoop(Timer.java:555)
at java.util.TimerThread.run(Timer.java:505)
Hi @bimosora. Is there a specific reason you are using Arduino IDE 1.8.19?
I ask because it looks like maybe you have encountered a bug in Arduino IDE 1.8.19. It sounds like maybe you are also having some problems with Arduino IDE 2.x, but probably less serious problems. If you don't need to use Arduino IDE 1.8.19, I think it would be more productive for us to focus our efforts on solving any problems you might be experiencing with Arduino IDE 2.x and avoid having to try to find a solution for this tricky Arduino IDE 1.8.19 bug.
Do you need SPIFFS specifically, or do you only need a filesystem uploader in general?
I ask because, although it is true that nobody has made a SPIFFS uploader for Arduino IDE 2.x yet (as far as I know), there is a nice Arduino IDE 2.x uploader extension for the modern littlefs filesystem:
Nice find! The problematic configuration in the STM32 boards platform that caused this has already been adjusted:
That change was made after the time of the last release of the platform, but it will be in the next release of the platform and you should be able to use the STM32 platform with Arduino IDE 1.8.19 without having it break your ports menu after that version comes out.
Please add a reply here on this forum thread to tell us which Arduino board you are using.
Please be as specific as possible as some Arduino boards with similar names have significant differences and the forum helpers can only provide effective assistance if we are aware of which one is being used.
If you aren't sure how to describe which board you are using, you can provide the link to the online product listing you bought the board from and we'll proceed based on the information found there.