Uno Wifi 2 'SerialNina' was not declared in this scope

Connected a new board, installed Wifinina 1.4.0, ran the firmware updater, clicked the "Load Updater sketch" button, clicked upload after selecting the right port and the compiler complains

'SerialNina' was not declared in this scope

Googled and searched here but found nothing.

Any ideas?

Please do this:

  • When you encounter an error, you'll see a button on the right side of the orange bar "Copy error messages" in the Arduino IDE (or the icon that looks like two pieces of paper at the top right corner of the black console window in the Arduino Web Editor). Click that button..
  • In a forum reply here, click on the reply field.
  • Click the </> button on the forum toolbar. This will add the forum's code tags markup to your reply.
  • Press "Ctrl + V". This will paste the error between the code tags.
  • Move the cursor outside of the code tags before you add any additional text to your reply.

If the text exceeds the forum's 9000 character limit, save it to a .txt file and podst it as an attachment. If you click the "Reply" button here, you will see an "Attachments and other settings" link.

Arduino: 1.8.9 (Windows 10), Board: "Arduino Uno WiFi"

Build options changed, rebuilding all
ESP32BootROM.cpp:331:32: error: 'SerialNina' was not declared in this scope

 ESP32BootROMClass ESP32BootROM(SerialNina, NINA_GPIO0, NINA_RESETN);

                                ^

ESP32BootROM.cpp:331:44: error: 'NINA_GPIO0' was not declared in this scope

 ESP32BootROMClass ESP32BootROM(SerialNina, NINA_GPIO0, NINA_RESETN);

                                            ^

ESP32BootROM.cpp:331:56: error: 'NINA_RESETN' was not declared in this scope

 ESP32BootROMClass ESP32BootROM(SerialNina, NINA_GPIO0, NINA_RESETN);

                                                        ^

exit status 1
'SerialNina' was not declared in this scope

This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.

You are compiling for the Arduino Uno WiFi, but you have the Arduino Uno WiFi Rev2. Despite the similar names, these are very different boards. Please do this:

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

You should now be able to compile and upload the FirmwareUpdater sketch and use your Uno WiFi Rev2. Enjoy!

you didn't try to upload Blink?

Damn I missed that! Thanks Pert!

You're welcome. I'm glad if I was able to be of assistance. Enjoy!
Per