I'm having a lot of trouble programming Arduino MKR Zero boards. I've had two boards that would not connect to USB at all, and two more that worked initially and then stopped working.
I think that I need to upload a new bootloader onto the MKR Zero boards, but I don't know how to do that.
The processor in the MKR Zero board is an ATSAMD21G18A-48, and I don't know what programming device is needed. In the Ardunino IDE, when I select one the programmers that I have, and then click on "burn bootloader", the dialogue box just says
"Arduino: 1.8.9 (Windows 7), Board: "Arduino MKRZERO"
Please select a programmer from Tools->Programmer menu"
even though I have selected a programmer.
The only programmers that have a different error message are:-
Atmel EDBG
Atmel-ICE
Atmel SAM-ICE
where the Arduino IDE gives and error message saying the programmer can't be found, which is what I would expect as I don't have any of those.
Do I need one of those three? How do I go about reloading the bootloader?