I can't get any sketch to upload, not even a simple LED blink.
Using Arduino 1.6.5, Windows 7.
I get different errors using the native and programming port.
With the native port, the sketch compiles, then proceeds to upload. If COM12 is selected, it uploads, the device resets, and then it says "No device found on COM13".
With the programming port, I notice there is an incorrect driver in device manager. That's probably my main problem. The sketch compiles but fails to upload:
Sketch uses 11,076 bytes (4%) of program storage space. Maximum is 262,144 bytes. Open On-Chip Debugger 0.9.0-gd4b7679 (2015-06-10-22:24) Licensed under GNU GPL v2 For bug reports, read http://openocd.org/doc/doxygen/bugs.html debug_level: 0 adapter speed: 500 kHz adapter_nsrst_delay: 100 cortex_m reset_config sysresetreq target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x81000000 pc: 0x000028b8 msp: 0x20002c08 ** Programming Started ** auto erase enabled Error: SAMD: NVM lock error Error: Failed to erase row containing 00002000 Error: error writing to flash at address 0x00000000 at offset 0x00002000 Runtime Error: embedded:startup.tcl:454: ** Programming Failed ** in procedure 'program' in procedure 'program_error' called at file "embedded:startup.tcl", line 510 at file "embedded:startup.tcl", line 454 the selected serial port at file "embedded:startup.tcl", line 454 does not exist or your board is not connected
Regarding the incorrect driver in device manager, it's called "EDBG Data Gateway" and I can't for the life of me find the driver. I installed the extra Arduino Zero drivers and went to manually update the drivers from "C:\Program Files (x86)\Arduino\drivers" but it does not recognize them.
Any thoughts? Thanks!