I'm writing a sketch using the Wire.h library and I'm having trouble with the serial monitor. As soon as the upload of my sketch is finished, Windows makes the 'device disconnected' sound and my Arduino Nano 33 BLE disconnects from my laptop. While first debugging this, I was not able to get my computer to recognize the Arduino by plugging it in via USB at all, but after a lot of troubleshooting I learned I could get it to recognize the Arduino by pressing the reset button twice in succession; simply pressing it once does nothing to detect the device. When I try to upload my sketch, the upload succeeds, but I am unable to access the serial monitor, and it displays
Error opening serial port 'COM3'.(Port not found)
I'm running Windows 10 and the Nano 33 BLE is brand new. I was able to successfully run the Blink example sketch on the board with no errors, even though it disconnects after upload, but my sketch using Serial functions does not print to the terminal since the serial monitor disconnects right after upload completes. I've read that connecting a 100 Ohm resistor between the RESET pin and 5V, or connecting a capacitor between RESET and GND would fix this, but I tried both and neither would work. I've also uninstalled and reinstalled the drivers multiple times to no avail. I've also tried the loopback test, but once I connect the board to my computer nothing happens and no device-insertion tone is sounded. I don't believe I fried my board or anything yet, as I haven't done much in terms of connecting hardware to the board yet.