I am using a Windows 10 laptop in conjunction with Arduino MKRZero board and have produced a very small sketch to output a square wave.
The sketch conpiles successfully but unfortunately does not upload. I get a message "An error ocurred while uploading the sketch".
Initially I was able to compile and upload, but for some reason the uploading doesnt happen now due to the error.
I notice the original sketch is still contained within the MKRZero board as it is still producing the same square wave output. Do I need to delete the old sketch before uploading the new ? If so, how do I do this because simply disconnecting the power supply does not work.
I have tried hitting the RST switch on the Arduino board but to no avail. I have also tried numerous other things such as disabling Bluetooth on the laptop, trying all the different usb ports and updating drivers, nothing seems to work !
This is my first attempt to upload an Arduino sketch.