When deploying code on an Arduino® MKR1000 board, Simulink® generates this error:
Failed to assign IP address to Arduino MKR WIFI 1010 board.
Try these options sequentially until the IP address is assigned to the MKR1000 board:
Ensure that a power supply of 3.3 V is provided to the MKR1000 board. If a voltage higher than 3.3 V is supplied, the board might be damaged.
Browse to Simulation > Model Configuration Parameters > Hardware Implementation > Target hardware resources > WiFi properties and verify the specified parameter values.
Reset MKR1000, wait for approximately one minute, and deploy the code again.
Unplug MKR1000, plug it back in, and then deploy the model again.
Check if the firmware version of MKR1000 is aligned with the WiFi101 library installed in your computer. To check the firmware version, perform the steps in Check WiFi101 Firmware Version. If the expected firmware version does not match the firmware version of the board, update the firmware as described in Firmware and certificates Updater.
If the error still persists, assign a static IP to the board. To assign a static IP address, browse to Simulation > Model Configuration Parameters > Hardware Implementation > Target hardware resources > WiFi properties and select Use static IP address and disable DHCP. In the IP address parameter, specify an IP address, click Apply, and deploy the model again.