This question already has an answer here:
This is my setup:
- SAMD21G15B with no external crystal (Addon possible with Epson MC-146 32.768Khz )
- SWD connector
I'm trying to upload code with the Arduino IDE via the Atmel ICE. But when I choose
- Arduino Zero Native programming port.
- Programmer Atmel ICE
- Upload using programmer
I get this error:
Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Zero (Programming Port)" Sketch uses 10464 bytes (3%) of program storage space. Maximum is 262144 bytes. Open On-Chip Debugger 0.9.0-g932ec70 (2017-02-15-12:34) 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 Error: at91samd21g18.cpu -- clearing lockup after double fault Polling target at91samd21g18.cpu failed, trying to reexamine target state: halted target halted due to debug-request, current mode: Thread xPSR: 0x01000000 pc: 0x00000614 msp: 0x20007ffc ** Programming Started ** auto erase enabled the selected serial port auto erase enabled does not exist or your board is not connected Error: Couldn't find part correspoding to DID 10011424 Error: auto_probe failed 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 This report would have more information with "Show verbose output during compilation" option enabled in File -> Preferences
What could I be doing wrong?
This is my schematic.