Unable to run Blink Program

Hi

I just got hold of a Uno WiFi Rev 2 and was trying to test the Blink program. Firstly, it took an exceptionally long to complete the compiling and uploading of the program.

After which it display the following error:

Sketch uses 1524 bytes (3%) of program storage space. Maximum is 48640 bytes.
Global variables use 22 bytes (0%) of dynamic memory, leaving 6122 bytes for local variables. Maximum is 6144 bytes.
avrdude: WARNING: invalid value for unused bits in fuse "fuse5", should be set to 1 according to datasheet
This behaviour is deprecated and will result in an error in future version
You probably want to use 0xcd instead of 0xc9 (double check with your datasheet first).

I am using Win 10 Enterprise.

Appreciate your advice

Thanks

It's a warning, not an error. And this warning should, to my knowledge, not affect the upload process.

So what is the observed behaviour on the Arduino?

Do not see any light blinking on the board after uploading the program.

Hann007:
it took an exceptionally long to complete the compiling and uploading of the program.

This is usually caused by your antivirus software doing an "on-access" scan of all the many processes the Arduino IDE starts during the compilation. Try TEMPORARILY disabling your antivirus for a single compilation to see if the slowness problem goes away. Then immediately re-enable your antivirus. Note that the Arduino IDE does compilation caching, so the second compilation of a sketch will be faster than the first one, so make sure you are doing a fair before-after comparison.

Hann007:
Do not see any light blinking on the board after uploading the program.

Are you using the File > Examples > 01.Basics > Blink example sketch?

Yes, the time taken was shorter with the disabling of the scan. However, I am still seeing the expected results on my Arduino board when running the Blink program provided in IDE ver 1.8.9

Hann007:
Yes, the time taken was shorter with the disabling of the scan.

OK, you'll need to figure out how to configure your antivirus to whitelist the process or folder that's causing the slow down.

Hann007:
However, I am still seeing the expected results on my Arduino board when running the Blink program provided in IDE ver 1.8.9

You say: "I am still seeing the expected results". The expected results are a blinking LED and since you say you are seeing the expected results, then problem solved.

Sorry... What i meant was that I am not seeing the expected results when running the Blink program

Is your expected result that the LED on the Uno WiFi Rev2 board marked "L" should be blinking?

You still haven't answered my question about whether you are using the File > Examples > 01.Basics > Blink example sketch in an unambiguous manner.

Here's why I am asking these things: The Uno WiFi Rev2 has its built-in LED on a different pin than the Uno. On the Uno. The built-in LED is on pin 13. On the Uno WiFi Rev2, the LED has a dedicated pin, pin 25. So if you try to use a sketch that assumes the built-in LED is on pin 13, then you won't get any blink on your Uno WiFi Rev2. Conversely, if you try to use a sketch that uses LED_BUILTIN, but you have an external LED connected to pin 13 on your Uno WiFi Rev2, the external LED won't blink, because pin 25 is the one that's being toggled.

Yes, I was using the program from File > Examples > 01.Basics > Blink.
Any advice on where can I get the sketch that uses LED_BUILTIN?

Try to replace 13 by LED_BUILTIN in the existing code.

Yes, I had tried that but with no difference in the experience. The LED did not blink.

Following is the code:

void setup() {

pinMode(LED_BUILTIN, OUTPUT);
}

void loop() {
digitalWrite(LED_BUILTIN, HIGH);
delay(1000);
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
}

When you press the reset button on your Uno WiFi Rev2, do you see the L LED blink a few times very quickly?

No, tried to press the Rest button and did not see the LED blink.

It seems like the LED is bad on your board. Do you have an LED or a multimeter you can connect to one of the pins on your Uno WiFi Rev2 to use as an indicator for the Blink sketch instead?