Before I toss my entire setup into a river, can anyone think of a simple answer to why my Uno refuses to be uploaded to?
Programming with a Raspberry Pi 4b running Ubuntu, to a Sparkfun Redboard Uno
Uploads were fine on the same setup running Raspbian and using the legacy IDE.
Under Ubuntu, with either the legacy IDE or IDE 2, attempting an upload causes an infinitely long upload progress indicator that can't be cancelled.
IDE's will upload to other, much older Uno's
have fk'd around with adding various libraries, checked port permissions, run through all the various programmers and questioned why anyone would willing use Linux when you could have just as much fun punching yourself in the groin but none of it has got me anywhere.
Hi @CARTERK. In order to gather more information that might help us to troubleshoot your problem, I'm going to ask you to post the full output from the upload when in verbose mode.
NOTE: These instructions will not solve the problem. They are only intended to gather more information which might provide a clue that eventually leads to a solution.
Please do this:
Select File > Preferences from the Arduino IDE menus.
Uncheck the checkbox next to Show verbose output during: ☑ compilation
Check the checkbox next to Show verbose output during: ☐ upload.
Click the OK button.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see a "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the COPY ERROR MESSAGES button on that notification.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
I'd love to give you that information but it doesn't output anything because the upload never completes.
The only port i'm ever able to see is the old UNO. The Redboard and a Nano never register. I've download every library i can find, failed half a dozen usb-uart installation tutorials, fixed a random dmesg command failure but have made zero progress on just plugging a device in and having it be seen. It's wild that youre expected to learn a computer language to run a common OS in 2022.
Select File > Preferences from the Arduino IDE menus.
Uncheck the checkbox next to Show verbose output during: ☑ compilation
Check the checkbox next to Show verbose output during: ☐ upload.
Click the OK button.
Attempt an upload, as you did before.
Wait for the upload to hang.
Right click on the black "Output" panel at the bottom of the Arduino IDE window.
From the context menu, click Copy All.
Open a forum reply here by clicking the Reply button.
Click the </> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press Ctrl+V.
This will paste the error output from the upload into the code block.
Move the cursor outside of the code tags before you add any additional text to your reply.
Yeah it's the QWIIC version of the RedBoard. Raspbian must come with the entire driver package pre-loaded because it worked right out of the box on the same Pi with that OS. I've downloaded those CH340 drivers and followed every instruction I can find about how to manage the make file but it refuses to work.
What stops Linux becoming a security hazard for new users? I just download and install whatever a forum post or tutorial says but I have no idea what any of it actually is.
I'm no longer a Linux user; I've seen plenty of people pulling their hair out here on the forum when it comes to Ubuntu in combination with Arduino And I don't have a Pi.
I'm just throwing this in:
Is your board recognised by the OS? lsusb should help you to figure that out.
Does dmesg tell you anything?
Uninstall brltty.
As far as I know, Ubuntu comes with the CH340 driver.
I've seen posts with something regarding udev rules but I have no idea what; do a search.
Why did you not stick with Raspbian? You might have very valid reasons, I'm just curious.
No valid reason tbh. I thought Ubuntu might be a little less clunky than Raspbian, plus I wanted to use the new IDE.
So lsusb showed no devices beside the old uno, but dmesg did show this which looked relevant:
[ 109.072946] usb 1-1.3: new full-speed USB device number 4 using xhci_hcd
[ 109.179181] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 109.179217] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 109.179234] usb 1-1.3: Product: USB Serial
[ 109.288037] usbcore: registered new interface driver usbserial_generic
[ 109.288501] usbserial: USB Serial support registered for generic
[ 109.297931] usbcore: registered new interface driver ch341
[ 109.299676] usbserial: USB Serial support registered for ch341-uart
[ 109.299789] ch341 1-1.3:1.0: ch341-uart converter detected
[ 109.310214] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
[ 109.925443] input: BRLTTY 6.5 Linux Screen Driver Keyboard as /devices/virtual/input/input6
[ 109.936745] usb 1-1.3: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[ 109.942819] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 109.942906] ch341 1-1.3:1.0: device disconnected
[ 128.054084] usb 1-1.3: USB disconnect, device number 4
[ 139.797839] usb 1-1.3: new full-speed USB device number 5 using xhci_hcd
[ 139.907984] usb 1-1.3: New USB device found, idVendor=1a86, idProduct=7523, bcdDevice= 2.64
[ 139.908023] usb 1-1.3: New USB device strings: Mfr=0, Product=2, SerialNumber=0
[ 139.908040] usb 1-1.3: Product: USB Serial
[ 139.912931] ch341 1-1.3:1.0: ch341-uart converter detected
[ 139.918496] usb 1-1.3: ch341-uart converter now attached to ttyUSB0
[ 140.590269] input: BRLTTY 6.5 Linux Screen Driver Keyboard as /devices/virtual/input/input7
[ 140.597263] usb 1-1.3: usbfs: interface 0 claimed by ch341 while 'brltty' sets config #1
[ 140.604898] ch341-uart ttyUSB0: ch341-uart converter now disconnected from ttyUSB0
[ 140.604991] ch341 1-1.3:1.0: device disconnected
So I removed brltty and now I appear to have full access to all my Arduinos on both the IDEs. I have to say, losing a weeks time fault finding an issue that turned out to be a conflict with some random braille display driver is so typically Linux... such a joke.
Honestly, I can't thank you enough. I was resigned to reverting back to Raspian today but you've saved me the hassel.