Hello all,
I have adapted the example code from here, I2C: Arduino Examples
My adaptation adds deviation correction (currently commented out) and then outputs NEMA 0183 sentences for HDG, XDR (Pitch and Roll). The robot electronics example runs fine but recently my modified code does not. It refuses to run on the board. I upload it and then the board's COM port disappears. Window's Device Manager has 2 Arduino Nano 33 IoT devices, one under Other Devices, one under Ports (COM & LPT). Both have little yellow Warning triangles next to them. Error on the Other devices one, no driver. I locate the Arduino Nano 33 iot driver. It installs and moves to Ports (COM & LPT), no error. No Serial coming in though. The one that was originally under Ports has the error device can not start.
Things I have tried:
Commenting out not required code in my modified file. Example, commented out deviation stuff.
Driver issue above.
Changing the order of the imported libraries.
Uninstalling and then reinstalling the Arduino IDE using Run as Admin.
Rebooting
Different USB cables and ports.
Note, I can still recover the board using the bootloader double reset method.
It only happens with this sketch though, so it must be my code somehow.
Any ideas?
Arduino_CMPS14_NMEA.ino (5.57 KB)