Is it possible to have a bad board "Uno Minima"?

I have the newly recieved Arduino Charging cable and a new Minima board. I board and serial port appear to be connected. I can even read the Serial Number of the board from the board. I am using the IDE 2.4.5. under Ubuntu and I am getting an error (after compilation) when trying to upload the stock "Blink" sketch.

The Error message:

Sketch uses 52272 bytes (19%) of program storage space. Maximum is 262144 bytes.
Global variables use 6744 bytes (20%) of dynamic memory, leaving 26024 bytes for local variables. Maximum is 32768 bytes.
No device found on ttyACM0
Failed uploading: uploading error: exit status 1

Also, I run Apt update and Apt ungrade on every boot up, so all builds should be current.

Any ideas?

Jeff W Waldrop

Hi @jeffwaldrop65. 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. Arduino provides a script that will create 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:1
    chmod +x post_install.sh && sudo ./post_install.sh
    
  6. Press the Enter key.
  7. If prompted for it, enter your Linux account password and press the Enter key.

The command should complete successfully. Now try uploading again, just as you did before. Hopefully the error will no longer occur.



1. "Fix udev rules on Linux". Arduino Help Center.

Thanks

OK, that worked. However, I have uploaded sketches to more than one UNO R4 Wifi boards and at least one mega board. So why did I have to run this script? Will I have to repeat this process in the future? I am newbie, so please understand the elementary nature of my issues.

Jeff Waldrop

You probably configured your system to give the necessary write permissions for those boards in some manner or other. The common configuration approaches are often general in nature, rather than specific to a single board model, so you might end up with it incidentally. For example, the udev rule that was created by the script you ran will give your user account write access to the USB devices of all official Arduino boards, not exclusively the Minima.

Although the modern approach is to use udev rules, historically the approach of adding your user account to a special user group has been used (which also works well enough for the relevant boards) and you will still often find that user group approach advised around on the Internet and this forum.

The configuration is persistent, so you would only need to perform this specific procedure again if you used a different computer or reinstalled your operating system.

However, you might find the need to perform a similar procedure for different boards. As I mentioned above, you are now set to use almost any official Arduino boards, but if you decided to use a 3rd party board for a project then you might need to configure your system to give your user account write permissions for that board.