Hi @talln. The cause of this error is that you have selected the wrong board in Arduino IDE. Despite the similar name, there are significant technical differences between the "UNO Mini" board you have selected in Arduino IDE and the UNO R4 Minima.
If you haven't already, the first step will be to install the "Arduino UNO R4 Boards" platform that adds support to Arduino IDE for the UNO R4 Minima board. I'll provide instructions you can follow to do that:
- Select Tools > Board > Boards Manager... from the Arduino IDE menus to open the "Boards Manager" view in the left side panel.
- Scroll down through the list of boards platforms until you see the "Arduino UNO R4 Boards" entry.
- Click the "INSTALL" button at the bottom of the entry.
- You might now see a "User Account Control" dialog about
dpinst-amd64.exeasking whether you "want to allow this app from an unknown publisher to make changes to your device". Click the "Yes" button in the dialog. - Wait for the installation process to finish, as indicated by a notification at the bottom right corner of the Arduino IDE window:
Successfully installed platform ...
- Select Tools > Board > Arduino UNO R4 Boards > Arduino UNO R4 Minima from the Arduino IDE menus.
Now try uploading your sketch again. Hopefully this time it will work as expected.
Please let me know if you have any questions or problems while following those instructions.