Arduino Sketch upload is failing avrdude: stk500_recv(): programmer is not respo

I just got this Arduino Uno WiFi Rev2 delivered in the mail.
I'm trying to upload the simple Blink sketch from my MacBook Pro (Mojave 10.14). My Macbook doesn't have a USB port, so I'm using this USB-C to USB-B cable to connect the laptop to the Arduino.

But uploading the sketch fails with

avrdude: stk500_recv(): programmer is not responding

Below is a trace of the error and a screenshot showing which port I have selected for uploading. How can I get this upload to work?

avrdude: Version 6.3-20190619
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2014 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/saqib.ali/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbmodem14102
         Using Programmer              : arduino
         Overriding Baud Rate          : 115200
 avrdude: stk500_recv(): programmer is not responding

Despite the similar names, the Uno WiFi and the Uno WiFi Rev2 are very different boards. You have an Uno WiFi Rev2, but you have selected Tools > Board > Arduino Uno WiFi in the Arduino IDE. That is why the upload is failing.

Do this:

  • Tools > Board > Boards Manager
  • Wait for the download to finish.
  • Click on "Arduino megaAVR Boards".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click the "Close" button.
  • Tools > Board > Arduino Uno WiFi Rev2

Now try the upload again.

@pert, It worked perfectly! Thank you!

You're welcome. I'm glad to hear it's working now. Enjoy!
Pera