Upload to UNO R4 Minima from Linux machine fails: "LIBUSB_ERROR_ACCESS"

Continuing the discussion from DFU Error - Cannot Upload Sketch to R4 Minima:

I have the exact same problem on my Mint Linux system but when I use my Dell Laptop running Windows 10 both boards work fine. Both are new boards I received today. I prefer my desk top Linux system so I don't consider the problem solved. I tried different cables and different USB ports - same results. I tried the double tap on the Minima - no help.

Hi @deneville. I'm going to ask you to post the full verbose output from an upload attempt.


:exclamation: This procedure is not intended to solve the problem. The purpose is to gather more information.


Please do this:

  1. Select File > Preferences... from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Uncheck the box next to Show verbose output during: compilation in the "Preferences" dialog.
  3. Check the box next to Show verbose output during: ☐ upload.
  4. Click the OK button.
  5. Attempt an upload, as you did before.
  6. Wait for the upload to fail.
  7. 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.
  8. Open a forum reply here by clicking the Reply button.
  9. Click the <CODE/> 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.
  10. Press Ctrl+V.
    This will paste the error output from the upload into the code block.
  11. Move the cursor outside of the code tags before you add any additional text to your reply.
  12. Click the Reply button to post the output.
Arduino: 1.8.19 (Linux), Board: "Arduino Uno R4 Minima"

Archiving built core (caching) in: /tmp/arduino_cache_237965/core/core_arduino_renesas_uno_minima_3ff564542a82811bef8c4df5910557c4.a
Sketch uses 40960 bytes (15%) of program storage space. Maximum is 262144 bytes.
Global variables use 3716 bytes (11%) of dynamic memory, leaving 29052 bytes for local variables. Maximum is 32768 bytes.
/home/dave/.arduino15/packages/arduino/tools/dfu-util/0.11.0-arduino5/dfu-util --device 0x2341:0x0069,:0x0369 -D /tmp/arduino_build_2383/Wire128x64.ino.bin -a0 -Q 
dfu-util 0.11-arduino4
dfu-util: Cannot open DFU device 2341:0069 found on devnum 2 (LIBUSB_ERROR_ACCESS)
dfu-util: No DFU capable USB device available

Copyright 2005-2009 Weston Schmidt, Harald Welte and OpenMoko Inc.
Copyright 2010-2021 Tormod Volden and Stefan Schmidt
This program is Free Software and has ABSOLUTELY NO WARRANTY
Please report bugs to http://sourceforge.net/p/dfu-util/tickets/

the selected serial port 
 does not exist or your board is not connected


This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

@deneville
Please use the UDEV rules instructions @GreyLimit provided here:

These instructions work for me on all of my Ubuntu workstations.

In order for Arduino IDE to upload to the Arduino board, your user account must have write permission for that device. Standard user accounts don't have this permission by default. This error can occur when you attempt an upload without the necessary permissions. So it is necessary to configure your system to allow the upload. This is done by creating a special file.

GreyLimit already shared such a file, which should solve the problem once you do something like logging out and back in after creating it.

Alternatively, Arduino provides an equivalent script that will create and activate the file for you.

I'll provide instructions you can follow to run that script:

  1. Open the following URL in your web browser:
    https://github.com/arduino/ArduinoCore-renesas/blob/main/post_install.sh
  2. Click the downward pointing arrow icon ("Download raw file") at the right side of the toolbar:
  3. Wait for the download to finish.
  4. Open a command line terminal in the folder that contains the downloaded file.
  5. Type the following command:
    chmod +x post_install.sh && sudo ./post_install.sh
    
  6. Press the Enter key.

The command should complete successfully. Now try uploading again. Hopefully the error will no longer occur.

1 Like

Thanks! This solution worked for me. In fact I tried your earlier solution first but uploading required the double tap of the reset button to get the upload to work. Puzzling if both methods accomplish the same thing but problem solved thanks again!

Thank You All,
This has solved problem for me... :grinning:
I recently purchased Arduino Uno R4 Minima I was having same problems when it's connected to my Linux Mint PC but I managed to resolve the issue when using it on a Windows PC.
Through this post I managed to resolve the issue (I think on Linux PC) before I download any sketches I need to press the reset button twice, this will put the Uno R4 minima into DFU Mode then it will upload sketches in this case the 'blink'.
I've also changed the blink rate on the sketch to confirm the program works. I think with some of the other boards like ESP32's reset button has to be pressed before uploading any sketches.

This was the solution for me on Linux.

It should be added in large notes to the official tutorial. As it is now, the official tutorial is unusable (at least for Linux).

EDIT: after moving this post to a new topic my comment doesn't make sense, unless I link the post I referred to :smiley:

BTW, it is normally the case that in Linux USB devices needs to be manually added to the udev rules if not done by some installer (maybe we should suggest to add this as an option for the IDE, for instance?).