I've also tried to upload a "Blink" sketch via SPI from another Arduino mega board configured as "Arduino as ISP" but that doesn't work either, as IDE (Ver. 1.6.2) says that I need to pick up a different programmer:Arduino:1.6.2 (Mac OS X), Scheda:"Arduino MKR FOX 1200"Selezionare un programmatore dal menù Strumenti->ProgrammatoreApparently this happens with every board of MKR family, if I try to program it through ISP interface.
I did some silly thing without thinking to my MKR Zero while trying to help someone with a problem and got it into a state where I can't upload even with the double tap trick described above and it was a bit of a shock to realize I didn't have a solution to recover it. I have one of the cheap ST-Link V2 programmer/debugger clones from eBay on the way that I'm hoping will allow me to get it up and running again.
Thanks Juraj. I wasn't aware of that library. Very cool! How long did it take to burn the bootloader using two SAMD boards? For me, it always sits at "Programming" for like 5 minutes and then finally errors out. I can understand the erroring out because I'm using a pogo adapter held in place by hand on the SWD pads on the target board and it's possible by the end of the 5 minutes my hand gets tired and shifts the connection on one of the pads a little, but I don't see why it would take so long to program the bootloader.
the Adafruit method didn't work at first. the I added some debug prints and suddenly it was done.
I put two pins into breadboard under the board to touch the two SWD pads.
I've tried the quick double reset method and it worked.
Thank you again guys!
I did add a debug print in the programming loop just so I could get some indication that something was happening.I gave it another try with a different SD card, checked all wiring for continuity, directly connected Vcc and GND, rather than having them on the less reliable pogo connection, and used a working board as the target. Result: same error and I now have two "bricked" boards. I guess I'll give up on the Adafruit DAP library and hope for better luck from the ST-Link. There is some thing from Adafruit that claims it will work as a programmer for the SAMD so maybe it will work. The first ST-Link I ordered showed up and turned out to actually be a CH340 USB to serial adapter, even though the listing description and picture clearly indicated it was an ST-Link. So now I have the long China shipping wait before I can have another try. Hopefully they at least send me the right thing now. Well, I a free USB to serial adapter for my collection as compensation. Unfortunately, it has a non-standard pinout so I'll never use it.And here I thought my pogo pin adapter was sketchy! Well, I can't argue with results and your system is easier on the hand too!