WIFININA uploading error (CNC)

Hello there

I am pretty new to this.

I am trying to upload the WifiNINA firmware updater

and I get this error:

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

Can someone please help?

Thnx in advance

Could you take a few moments to Learn How To Use The Forum.
It will help you get the best out of the forum.

COMMON ISSUES

  • Check you have a COMMON GROUND where required.
  • Where possible use USB 2.0 ports or a USB 2.0 POWERED HUB to rule out USB 3.0 issues.
  • Try other computers where possible.
  • Try other USB leads where possible.
  • You may not have the correct driver installed. CH340/341 or CP2102
  • There may be a problem with the board check your wiring first.
  • Remove any items connected to pins 0 and 1.

Bob.

Which board do you have selected from the Tools > Board menu?

Arduino Mega 2560

That's the cause of the error. The WiFiNINA library and firmware can only be used on the Arduino boards that have the NINA WiFi module: MKR WiFi 1010, MKR Vidor 4000, Uno WiFi Rev2, Nano 33 IoT. If you have one of those boards then you need to select it from the Tools > Board menu. If you don't have one of those boards then the firmware is of no use to you.

I should've mentioned that it worked up to yesterday.

It would disconnect often but it worked.

Since yesterday it will connect but it will disconnect right away and say

It is possible that the serial port selected it is not the one used by Maslow's Arduino or that the firmware is not uploaded on Arduino

What firmware should I upload to the arduino in this case?

Are you saying that something went wrong with your Mega and you thought you might be able to fix it by uploading the WiFiNINA library's FirmwareUpdater sketch?

If so, you are wrong. You're just wasting your time. We're here to help you, but first you need to provide us with enough information. "it will connect but it will disconnect right away" is much too vague.

Here is a screenshot

Let's start by verifying that your Arduino board is on COM3 as Ground Control expects it to be. You can use the Arduino IDE for this:

Sometimes the port will be labeled with the board name in the menu. Other times it will not. If you don’t know which port is your Arduino, you can find it like this:

  • Unplug your Arduino board from the computer.
  • Tools > Port
  • Note the ports, if any, listed in the menu.
  • Close the Tools menu
  • Plug your Arduino board into the computer.
  • Tools > Port - The new port listed in the menu is your Arduino board.

Is it on COM3?

the port is the one showing in Ground Control which is COM3

The symptoms you describe:

primordialfire:
I should've mentioned that it worked up to yesterday.

It would disconnect often but it worked.

Since yesterday it will connect but it will disconnect right away and say

It is possible that the serial port selected it is not the one used by Maslow's Arduino or that the firmware is not uploaded on Arduino

don't sound like a firmware problem to me. It sounds like a hardware problem. Make sure the USB cable is fully plugged into your computer and the Arduino board. If that doesn't help, try a different cable. Your cable might be damaged and giving an intermittent connection.

Because of the issues that were mentioned earlier by ballscrewbob whith the 2.0 and 3.0 usb i have to ask,

is the attached cable the correct one?

(the one that came with it is 16 ft, that is why I chose that length)

Try it with a short cable.

the pic didn't go through because it was a screen shot from amazon and I am guessing that is some type of issue

but this is the description

"USB 2.0 Printer Type Cable - A-Male to B-Male - 16 Feet (4.8 Meters)"

Your help dear sir is Greatly appreciated.

I would like to thank you very much and although you already know it I would like to bring up the fact that everything is one fire and I am grateful of being that with you and all there is.

All the best

Ouch 16 foot USB cable...
Better be of exceptional quality.

Most of us consider shorter USB to be better and there have been reports of long cables causing problems that were often resolved with shorter ones.

Bob.

the new cable is a samsung insignia one, 10 ft

and the problem is the same

any other suggestions please