FirmwareUpdater -> error: strings.h: No such file or directory

Trying to update firmware per procedure -> https://www.arduino.cc/en/Tutorial/FirmwareUpdater

I am receiving an error:

FirmwareUpdater:19:10: error: strings.h: No such file or directory

#include <strings.h>

^~~~~~~~~~~

compilation terminated.

exit status 1
strings.h: No such file or directory

Apparently the FirmwareUpdater sketch you're using has this code at line 19:

#include <strings.h>

However, the official WiFi101 library's FirmwareUpdater (File > Examples > WiFi101) sketch does not contain that line. Where did you get your FirmwareUpdater sketch?

pert:
Apparently the FirmwareUpdater sketch you're using has this code at line 19:

#include <strings.h>

However, the official WiFi101 library's FirmwareUpdater (File > Examples > WiFi101) sketch does not contain that line. Where did you get your FirmwareUpdater sketch?

this is in Uno WiFi Rev 2 section.
you get this error if you try to compile the WiFi101 FirmwareUpdater sketch for Uno WiFi Rev2

I don't know right now the procedure for the Uno WiFi Rev 2

I get a similar error:

E:\arduino\libraries\WiFi101\src\WiFiMDNSResponder.cpp:26:10: fatal error: strings.h: No such file or directory

 #include <strings.h>

          ^~~~~~~~~~~

But there's a very significant difference. The file name where the error occurs is different. I don't understand the FirmwareUpdater:19:10 part of the error.

If you do have an Uno WiFi Rev2, then the procedure shown in that tutorial is a little different. That tutorial is for the WiFi101 library, which is for the MKR1000. For the Uno WiFi Rev2, the procedure is similar, but you need to use the WiFiNINA library.

First you need to install the library:

  • Sketch > Include Library > Manage Libraries
  • Wait for the download to finish.
  • In the "Filter your search..." field, type "wifinina".
  • Press Enter.
  • From the search results, click on "WiFiNINA by Arduino".
  • Click the "Install" button.
  • Wait for the installation to finish.
  • Click the "Close" button.

After that, follow this tutorial:

Thank you everyone. Yes, I was trying to upload the FirmwareUpdater from the examples for Wifi101 in the 1.8.0 Windows IDE per the wrong procedure and link. I didn't realize that the Wifi Rev 2 required the WiFiNINA procedure and link.

I successfully updated firmware using perts posted reply.

You're welcome. I'm glad to hear it's working now. Enjoy!
Per