Uno Wifi Rev2 firmware version/ Uno Wifi Developer Edition

Goal:
Communicate with Uno Wifi Rev2 on local network (house router) with other Android based devices (tablet/cellphone)

Issue: downloading necessary library files needed to complete comm sketch

Questions:

  1. Arduino Uno Wifi Dev Ed Library (Library Mgr) : should I install this package?
    It says to use this only with Uno Wifi Developer Edition. Would that be included on Linux (32 bit ARM) 1.8.19 IDE loaded on my Raspberry Pi?

  2. Is it necessary to read the Uno Wifi Rev2 firmware thru terminal mode in order to use correct library files?

  3. Is there a more straightforward approach to accomplishing this?

Reference link:

link text:

UNO WiFi (Developer Edition) Serial1

Arduino UNO WiFi is an Arduino UNO R3 with ESP8266 integrated on the board. It was developed and manufactured by Arduino.org. More information in UNO WiFi Wiki.

UNO WiFi Developer Edition connects ATmega328 to ESP8266 using additional on board UART chip SC16IS750. This additional UART is connected to ATmega as I2C device.

This library creates a Serial1 object with SC16IS750 on Arduino UNO WiFi Developer Edition. This Serial1 enables to communicate with the on-board ESP8266 over it's serial interface. The included tool EspProxy enables accessing the on-board ESP8266 over USB for 'flashing' tools, IDE sketch upload or Serial Monitor.

The release version of the library is available in Library Manager in IDE.

Use for:

No. That is only for the retired Arduino Uno WiFi. Despite the similar name, that is completely different board from the Arduino Uno WiFi Rev2.

The library you need for the Uno WiFi Rev2 is named "WiFiNINA". You can get it from the Arduino IDE Library Manager (Sketch > Include Library > Manage Libraries). After installing it, you will find examples sketches that demonstrate its usage in the Arduino IDE at File > Examples > WiFiNINA and there are also tutorials here:
https://www.arduino.cc/en/Reference/WiFiNINA

No

As I mentioned above, that is only for the Uno WiFi. It is not relevant to the Uno WiFi Rev2.

Appreciate your feedback!
And Happy New Year!!!!

I am assuming WiFiNINA_Generic is the one to get...

WiFiNINA is the official library written and maintained by Arduino.

WiFiNINA_Generic is a third party variant made by a member of the Arduino community. The maintainer explains the difference here:

https://github.com/khoih-prog/WiFiNINA_Generic#why-do-we-need-this-wifinina_generic-library

The original Arduino WiFiNINA library only supports very limited boards, such as: the Arduino MKR WiFi 1010, Arduino MKR VIDOR 4000, Nano-33-IoT and Arduino UNO WiFi Rev.2. This library is based on and modified from Arduino WiFiNINA library to provide support for many more boards, such as nRF52, SAM DUE, SAMD21, SAMD51, Teensy, AVR Mega, STM32F/L/H/G/WB/MP1, RP2040-based, etc.

With this library you can instantiate Servers, Clients and send/receive UDP packets through WiFiNINA. The board can connect either to open or encrypted networks (WEP, WPA). The IP address can be assigned statically or through a DHCP. The library can also manage DNS.

I could not find the WifiNINA as a choice in my Library Manager. So I went with the _Generic and it bombed after flashing the board and attempting validation:
"Error validating Flashed Firmware."

I successfully reloaded a blink sketch so the board is not "bricked," thankfully.
Currently looking for WifiNINA to install....

You should see it if you just search for "wifinina":

Update:

Using WiFiNina, not _Generic, I installed latest 1.4.8 NINA firmware using the Firmware/Certificates Updater. It failed during the verification exactly like with _Generic version. Twice.

"Error validating flashed firmware"

I wanted to read the firmware vers. with CheckFirmwareVersion but serial monitor displayed:

"Communication with wifi module failed!
WiFiNINA firmware check. "

This is concerning because I ran this sketch earlier (before doing firmware update attempt) successfully:
1.3.0 installed 1.4.8 available
check result: not passed.

I am wondering if uninstalling WiFiNINA_Generic AND WiFiNINA and then reinstalling WiFiNINA would change anything causing the issue with the updater validation error.
Does a library package have to be uninstalled in terminal mode? Do not see a pathway with Library Manager.

Error msg at bottom of updater screen:

Sketch uses 6597 bytes (13%) of program storage space. Maximum is 48640 bytes.
Global variables use 1401 bytes (22%) of dynamic memory, leaving 4743 bytes for local variables. Maximum is 6144 bytes.
avrdude: usbdev_open(): WARNING: failed to set configuration 1: Device or resource busy
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).

Which version of the Arduino IDE are you using? I'll try it out on my Uno WiFi Rev2 to see what results I get.

It should not.

It is true that the classic Arduino IDE does not have any library uninstall capability. Arduino IDE 2.x does have it, but that's beside the point.

But you don't need to use the terminal if you don't want to. You can use a GUI file browser such as the "Files" application that comes preinstalled on your RPi with the OS. But if you do want to use terminal, the command would be:

rm -r ~/Arduino/libraries/WiFiNINA_Generic

Please be very careful when deleting things from your computer. When in doubt, back up!

This is only a warning and it is normal and expected.

Arduino will update the fuse configuration at such time it becomes necessary when they update to the future version of the AVRDUDE uploader tool that drops the deprecated fuse handling behavior.

So you can safely ignore this warning as it is nothing to be concerned with and does not indicate any required action on your part.

I am using 1.8.19 IDE.

I am loathe to delete anything library wise as a corrupted database is not desired.

From what I have read Arduino 2.0 will not be forward compatible with the Raspberry Pi platform. So that may be a problem trying to continue with Raspberry as my interface platform for coding unos.

I have completed an OS BACKUP of Arduino on the Raspberry so I may still at some point use terminal mode to get rid of _Generic. That would be a last ditch attempt born out of desperation though.

I am going to load some other sketches (non-communications) and see how they behave. Getting over this firmware upgrade is necessary though if I am to establish a bug free local network of wifi unos.

I just gave it a try and it worked perfectly for me.

Did you remember to upload the File > Examples > WiFiNINA > tools > FirmwareUpdater sketch to your Uno WiFi Rev2 before attempting the firmware update via the the "WiFi101 / WiFiNINA Firmare Updater" tool?

There is no chance of that so don't worry about it. You can install and delete libraries to your heart's content without doing any harm to any database.

It is not compatible at this time. However, there is already a 3rd party version of the Arduino IDE 2.x that can be used on the 64 bit Raspberry Pi:

That seems a good sign that official support for ARM Linux hosts will eventually be provided.

I wouldn't worry about it right now. Arduino IDE 2.x is still in the beta testing phase so it is not currently appropriate to use for normal sketch development. Arduino IDE 1.8.19 is still the best choice for that.

Even after the stable release of Arduino IDE 2.x comes out, Arduino IDE 1.8.19 will remain a valid option for years to come (though you will miss out on some optional convenience features that are only available in Arduino IDE 2.x).

Hopefully before the time comes that using the classic Arduino IDE is holding you back, Arduino will have added ARM Linux support.

It's unlikely that the "WiFiNINA_Generic" library is even being used. You can try this:

  1. Select File > Preferences from the Arduino IDE's menus.
  2. Check the box next to "Show verbose output during: [] compilation".
  3. Click the OK button.
  4. Select Sketch > Verify/Compile from the Arduino IDE's menus.
  5. After the compilation finishes, examine the contents of the black output pane at the bottom of the Arduino IDE window. There you will see a list of libraries that are used by the sketch. For example:
    Using library WiFiNINA at version 1.8.13 in folder: 
    C:\Users\asdf\Documents\Arduino\libraries\WiFiNINA 
    Using library SPI at version 1.0 in folder: 
    C:\Users\asdf\AppData\Local\Arduino15\packages\arduino\hardware\megaavr\1.8.7\libraries\SPI 
    

If you don't see any lines like that, it means your sketch is not using any libraries, which is the case with the WiFiNINA library's FirmwareUpdater example sketch.

So if you don't see "WiFiNINA_Generic" mentioned in the output, then its existence on your system is having no effect on that particular sketch.

Yeah, the updater will not work without installing the firmare update sketch first. 'Test connection' will not pass.

Is there a chance the firmware update is taking effect despite the validation error? I was able to read the Firmware Version initially with the CheckFirmwareVersion sketch but it is failing now; which may not be surprising since the "error validating flashed firmware" is occuring. The serial monitor reads "communications with WiFi module failed!".

Would it be foolish right now to try and run any of the comm sketches associated with the WiFiNINA library?

It is encouraging that you believe 2.0 IDE will receive support on the Raspberry Pi platform.

I have a friend who has A Windows based IDE and might let them try to update the firmware on their platform to see what happens. If it works at least I am over that hurdle maybe.

It will not do any harm.