I try to connect SAM ICE to SMAL11E16A via SWD (pin31, 32, reset, GND, VCC), but it reports "Failed to launch program, Error: numeric error 1" when I tried to debug the code in Atmel studio 7. Also, in Atmel Studio 7, Tools>> Device Programming , I set SWD clock to 2MHz, and click"Read", I got message " Error connection to device over SWD, Unable to enter programming mode. Verify device selection, interface settings, target power, security bit, and connections to the target device." I checked all above items, all look ok. I tried ATMEL ICE on my SAML11 PCB, it works with ATMEL ICE very well.
With a J-link commander V6.40 (which can work with SAM ICE), I got some message below. From the message, looks like SAM ICE does not support cortex-M23 (used by SAML11), however, according to SAM L11 datasheet, the SAM ICE is supposed to work with SAML11. Does anyone have similar problem, any idea how to solve this problem? Thanks
Specify target interface speed [kHz]. <Default>: 4000 kHz
Device "ATSAML11E16A" selected.
Connecting to target via SWD
Device will be unsecured now.
RAM execution enabled.
Found SW-DP with ID 0x0BF11477
Scanning AP map to find all available APs
AP: Stopped AP scan as end of AP map has been reached
AP: AHB-AP (IDR: 0x04770025)
Iterating through AP map to find AHB-AP to use
AP: Core found
AP: AHB-AP ROM base: 0x41003000
CPUID register: 0x411CD200. Implementer code: 0x41 (ARM)
Found Cortex-M23 r1p0, Little endian.
****** Error: Specific core setup failed.
Cannot connect to target.
SEGGER J-Link Commander V6.40 (Compiled Oct 26 2018 15:06:29)
DLL version V6.40, compiled Oct 26 2018 15:06:02
Connecting to J-Link via USB...O.K.
Firmware: J-Link ARM V8 compiled Aug 26 2015 15:08:21
Hardware version: V8.00
License(s): RDI, GDB
Type "connect" to establish a target connection, '?' for help