MATLAB: Am I not able to configure MKR WiFi 1010 board’s IP address

arduinoconfigureipMATLABmkrwifi1010staticTarget Support Package

I want to configure my MKR WiFi 1010 board’s IP address using MATLAB Support Package for Arduino. In the hardware setup window for Arduino, I check the ‘Use Static IP address’ and input the desired IP address. The ‘Device Address’ gets configured to some other IP address or sometimes I get a “Test connection failed. Go back to check your settings” error message. How do I fix this?
Example Input:
Example Output:

Best Answer

First, confirm that the router/network can accept and allow requests to assign static IP address.

It is possible that the MKR WiFi 1010 board has an older WiFi NINA firmware (versions before 1.2.0) which is causing this issue. Update the WiFi NINA firmware on the board to a version 1.2.0 or higher.

Detailed instructions to update firmware:

1) Download ‘WiFi101-Updater-ArduinoIDE-Plugin-0.10.7.zip’ from the following link and extract the file

https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v0.10.7/WiFi101-Updater-ArduinoIDE-Plugin-0.10.7.zip

2) Type the following command in MATLAB Command Window:

>>    arduinoio.IDERoot

3) Outside of MATLAB, go to the location output from Step 2 and navigate inside the folder titled ‘tools’

4) In this new location, copy and paste the WiFi101 folder from the extracted zip file (Step 1) to replace existing folder

       Example new path: C:\ProgramData\MATLAB\SupportPackages\R2019a\3P.instrset\arduinoide.instrset\arduino-1.8.1\tools\WiFi101 

5) Go back to the location output from Step 2 and open Arduino application

6) Confirm the board (Tools > Board) and port number (Tools > Port) matches that of your MKR WiFi 1010 board

7) Go to Examples > WiFiNINA > Tools > FirmwareUpdater

8) Upload this sketch to your Arduino MKR WiFi 1010

9) After you get the “Done uploading.” message as shown below, click on Tools > WiFi101/WiFiNINA Firmware Updater

10) Select the port that matches your MKR WiFi 1010 board and confirm that the firmware pre-selected is NINA firmware (1.2.0 or higher) and then click Update Firmware

11) You should get ‘The firmware has been updated!’ confirmation message as shown below

12) Close Arduino IDE; go to MATLAB and try setting your Static IP address.

Now, the Device Address will match the IP address provided.

Related Question