I've seen some posts about issues with the Atmel-ICE, but they are not exactly the same as the issue that I'm facing, and I'm wondering if somebody out there could help me.
I have some boards that I made that are based around the same SAMD21 that is being used in the Zero. So far, I've been successful in burning code through the IDE via a USB connector I had in my development boards, but I would like to get rid of it and use the ATMEL-ICE and program the boards via SWD. The way that I do it right now is I burn a sketch on a dev board via USB, then read the flash with Atmel Studio, and use that image to flash the other boards This is a bit a pain in the ass, as I changed the footprint of my programming socket in the board, and I have to fiddle with wires everytime I switch boards.
I tried the "burn with a programmer" from the IDE, but the code won't start to execute, and I tried to open the sketch on the Atmel Studio, but it only works with basic sketches (blink, for example), but not with the one I'm working in right now (Atmel Studio returns the error "failed to import Arduino sketch. 'NoneType' object has no attribute 'token_type', but I guess this one is a question for the Atmel guys).
I guess the error will have something to do with bootloaders and start programming addresses. But I can't figure this one out. Has somebody been successful using the IDE and the ATMEL-ICE to flash SAMD21 chips?