Hi,
Noob question here. I am just starting to work with the Uno WiFi Rev 2 board and I am running the code to check the firmware version of the radio section using the code listed at https://www.arduino.cc/en/Tutorial/CheckWiFiNINAFirmwareVersion. I consistently get "Error opening serial port 'COM2'. (Port not found)" error when I try to open the Serial Monitor to check the results. I have tried moving to another open port with the same error.
I tried a basic serial monitor test program with the same result. The port works because the sketch downloads, verifies and apparently starts correctly. The code is below for reference.
Suggestions?
Thanks in advance!
Greg
--------- code below ---------
/*
- This example check if the firmware loaded on the NINA module
- is updated.
- Circuit:
-
- Board with NINA module (Arduino MKR WiFi 1010, MKR VIDOR 4000 and UNO WiFi Rev.2)
- Created 17 October 2018 by Riccardo Rosario Rizzo
- This code is in the public domain.
*/
#include <SPI.h>
#include <WiFiNINA.h>
void setup() {
// Initialize serial
Serial.begin(9600);
while (!Serial) {
; // wait for serial port to connect. Needed for native USB port only
}
// Print a welcome message
Serial.println("WiFiNINA firmware check.");
Serial.println();
// check for the WiFi module:
if (WiFi.status() == WL_NO_MODULE) {
Serial.println("Communication with WiFi module failed!");
// don't continue
while (true);
}
// Print firmware version on the module
String fv = WiFi.firmwareVersion();
String latestFv;
Serial.print("Firmware version installed: ");
Serial.println(fv);
latestFv = WIFI_FIRMWARE_LATEST_VERSION;
// Print required firmware version
Serial.print("Latest firmware version available : ");
Serial.println(latestFv);
// Check if the latest version is installed
Serial.println();
if (fv >= latestFv) {
Serial.println("Check result: PASSED");
} else {
Serial.println("Check result: NOT PASSED");
Serial.println(" - The firmware version on the module do not match the");
Serial.println(" version required by the library, you may experience");
Serial.println(" issues or failures.");
}
}
void loop() {
// do nothing
}