Arduino MKR1010 WiFi & MPU6050 DMP Hangs When Using WiFiNINA.begin() method

Hi all,

So I've been rather painfully trying to get the MPU6050_DMP_WiFi sketch to work, but for a MKR1010 rather than an ESP8266.

I've got a version of the sketch that works with the MKR perfectly, it does everything I want to and outputs the yaw, pitch and roll values of the MPU6050 with no issues.

Look at nowifisensorworking.ino

I then add the WiFiNINA.h library, no issues with the code at this stage.

It's when I add this line, the MKR will connect to Wi-Fi and then the MPU6050 will output yaw pitch and roll information for about 10 seconds and then completely hangs.

WiFi.begin(ssid, pass);

addingwifi.ino is the complete code with all the Wi-Fi code added. You can see how it behaves.

Out of ideas here. Any pointers would be great appreciated!

nowifisensorworking.ino (12.5 KB)

addingwifi.ino (13.7 KB)