UNO R4 WiFi; unable to install platform Renesas_uno

I got for Christmas a UNO R4 WiFi from my daughter. The IDE 2.3.4 recognized it immediatelu but asks:

The "Arduino UNO R4 Boards [v 1.2.1]" core has to be installed for the currently selected "Arduino UNO R4 WiFi" board. Do you want to install it now?

After confirming this I get this:

Tool builtin:dfu-discovery@0.1.2 already installed
Downloading packages
arduino:arm-none-eabi-gcc@7-2017q4
Failed to install platform: 'arduino:renesas_uno:1.2.1'.
Error: 2 UNKNOWN: opening C:\Users\pccjh\AppData\Local\Arduino15\staging\packages\gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip for writing: open C:\Users\pccjh\AppData\Local\Arduino15\staging\packages\gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip: Access denied..

Who can help me?

You need to fix permissions.

How? I disabled the Defender firewall and antivirus program without any result.

IDK, that is what the error says, 'access denied'. If you are not an admin user, I think windows has a way to 'Run as admin' I think. If not google should have an answer for how to do the equivalent of sudo on windows.

@pieterh1954. For my UNO R4 WiFi I simply installed the "Arduino UNO R4 Boards" core using the Boards Manager. Selected the UNO R4 from Tools in the IDE and it just worked.

I am on Windows 10 and had no access denied problems.

Note: I had to update the firmware using the "Firmware Updater" in tools. (Make sure the plotter and Monitor is closed when doing the update.)

1 Like

Adding some extra punctuation

  • opening
    • C:\Users\pccjh\AppData\Local\
      • Arduino15\staging\packages\
        • gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip
    • for writing:
  • open
    • C:\Users\pccjh\AppData\Local\
      • Arduino15\staging\packages\
        • gcc-arm-none-eabi-7-2017-q4-major-win32-arduino1.zip:
    • Access denied

It's the same file-path both times. The IDE is trying to open it "for writing", but is being "denied". This of course "should not happen" if that user is you. Looks like staging is where the .zip file is to be downloaded, and then unzipped from there.

(Note that AppData in your $HOME directory is hidden, so if you want to see it in File Explorer, you need to enable the Show Hidden Files option.)

If the suggestion to install via the Boards Manager does not work, try this

  1. Right-click the Start button
  2. Choose Windows PowerShell (not the (Admin) one, the normal one). That should drop you here
    PS C:\Users\pccjh>
    
  3. Go to your user cache directory, which on Windows is in the environment's %LocalAppData% variable (tab completion can help)
    PS C:\Users\pccjh> cd $env:LOCALAPPDATA
    PS C:\Users\pccjh\AppData\Local>
    
  4. See what is in that directory with dir or ls. You should see at least
    • Microsoft
    • Programs
    • Arduino15
  5. How far do you get?
    PS C:\Users\pccjh\AppData\Local> cd Arduino15
    PS C:\Users\pccjh\AppData\Local\Arduino15> cd staging
    PS C:\Users\pccjh\AppData\Local\Arduino15\staging> cd packages
    PS C:\Users\pccjh\AppData\Local\Arduino15\staging\packages>
    
  6. All the way? Look around again with dir. I have like 1 gig worth of .zip and other compressed archives. (When do these get cleaned up?) Are there other files there?
  7. Try to create a new file
    PS C:\Users\pccjh\AppData\Local\Arduino15\staging\packages> echo "something" > deleteme.txt
    PS C:\Users\pccjh\AppData\Local\Arduino15\staging\packages> cat deleteme.txt
    something
    

If you can create a file "by hand" in the same place, that eliminates obvious reasons you cannot create a file with the IDE.

You should not have to be/use sudo or admin privileges. How much free disk space is there?