"Failed to connect to the target" - WiFi/MKR1000 Simulink connection

Can you try putting the MKR1000 in bootloader mode and then try again?