Cannot upload code

I've had this board for a few months and just getting around to playing with it. I power it up and get the factory blink code running and the led panel shows the heart as it should. But when I try to upload a program I the the following error:

Archiving built core (caching) in: /tmp/arduino_cache_717988/core/core_arduino_avr_unowifi_1621df717313d057c92202babd71649a.a
Sketch uses 924 bytes (2%) of program storage space. Maximum is 32256 bytes.
Global variables use 9 bytes (0%) of dynamic memory, leaving 2039 bytes for local variables. Maximum is 2048 bytes.
avrdude error: programmer is not responding
avrdude warning: attempt 1 of 10: not in sync: resp=0x00

I have seen this before on other boards, but normally older boards. I am using a USB3 port with USB3 cables.

Any suggestions appreciated

Hi @ov10fac. It looks like you have Arduino IDE configured for use with the UNO R3 board instead of the UNO R4 WiFi.

Despite the similar names, there are significant technical differences between these two boards, so it is expected that the upload to an UNO R4 WiFi board will fail when the IDE is configured for use with the UNO R3.

If you haven't already, use the Arduino IDE Boards Manager to install the "Arduino UNO R4 Boards" platform, which adds support to Arduino IDE for use with the UNO R4 WiFi board. I'll provide instructions you can follow to do that:

  1. Select File > Preferences... (or Arduino > Settings... for macOS users) from the Arduino IDE menus.
    The "Preferences" dialog will open.
  2. Enter the following URL into the "Additional Boards Manager URLs" field of the "Preferences" dialog:
    <!-- TODO: package index URL -->
    
    :red_exclamation_mark: If there are already Boards Manager URLs in the field, separate them with commas.
  3. Click the "OK" button in the "Preferences" dialog.
    The "Preferences" dialog will close.
  4. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  5. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  6. Scroll down through the list of boards platforms until you find the "UNO R4 WiFi" entry. Click on it.
    Some buttons will appear on the entry.
  7. Click the "Install" button on the "UNO R4 WiFi" entry.
  8. Wait for the installation to finish.
  9. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.

Now select Tools > Board > Arduino UNO R4 Boards > Arduino UNO R4 WiFi from the Arduino IDE menus and try uploading again. Hopefully it will be successful this time.


Please let me know if you have any questions or problems while following those instructions.

I think there are problems with the instructions :wink: I thought that all Arduino boards are available by default in library manager without a need for an additional URL.

And below is generic for other boards :wink:

Thanks @sterretje. @ov10fac here are the corrected instructions:

  1. Select Tools > Board > Boards Manager... from the Arduino IDE menus.
    The "Boards Manager" dialog will open.
  2. Wait for the updates to finish, as shown by the messages printed at the bottom of the "Boards Manager" dialog.
  3. Scroll down through the list of boards platforms until you find the "UNO R4 WiFi" entry. Click on it.
    Some buttons will appear on the entry.
  4. Click the "Install" button on the "UNO R4 WiFi" entry.
  5. Wait for the installation to finish.
  6. Click the "Close" button on the "Boards Manager" dialog.
    The "Boards Manager" dialog will close.

Now select Tools > Board > Arduino UNO R4 Boards > Arduino UNO R4 WiFi from the Arduino IDE menus and try uploading again. Hopefully it will be successful this time.


Please let me know if you have any questions or problems while following those instructions.

ptillisch

Thankyou for your rapid and precise response. I did notice that I was using the wrong board and was able to get the R4 wifi installed. But I decided to upgrade from 1.8 to the newer version of the ide 2.3. That is a much "slicker" IDE and as soon as I plugged the R4 in it recognized it and suggested installing a file which I did. I then selected board and port as usual and tried to compile and upload. Now another issue raised its ugly head. I received the following error.

fork/exec /home/jwright/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: permission denied

Compilation error: fork/exec /home/????????/.arduino15/packages/arduino/tools/arm-none-eabi-gcc/7-2017q4/bin/arm-none-eabi-g++: permission denied

But it seems that the issue with not seeing the board has been fixed with the new IDE.

I have changed all the permermissions to 777 for this entire directry tree. And still get the error. Very strange and I have never seen this error before.
Thanks for any help you can provide.

OK, Found the problem. I uninstalled all previous avr boards then reinstalled the R4 boards from within Board Manager. That solved the problem.

Great job of finding a solution to that "permission denied" error! Thanks for taking the time to post an update.

Regards, Per