Programming ATMEL SAMDXX Series - Page 1
Forum section: electronics / general

author: ciclonite
author_rank: Contributor
timestamp: November 27, 2016, 07:59:22 pm
content: Hi all!I'm Giovanni from italy, and right now i start to learn 32-bit fascinating ARM world and in particular ATMEL SAMD11-21 Cortex M0+. I' have some NOOB question about ARM to ask.I'm develop a small PCB with kicad for these MCU following the datasheet. But for programming and eventually debug the MCU i need a programmer.I've see the ATMEL ICE but there are a lot of variant for this.. BASIC , FULL VERSION, PCBA VERSION ...For example the PCBA version cost about 47€ , the basic Version 90€ and the full version 140€..Where is the difference for these boards? Which is more convenient for me? Someone can explain the difference beetween the board?Thanks a lot!G.

author: ataradov
author_rank: Super Contributor
timestamp: November 27, 2016, 08:34:20 pm
content: Quote from: ciclonite on November 27, 2016, 07:59:22 pmPCBA is just a bare PCB with no cables, plastic enclosure or anything else.BASIC has plastic enclosure, but has no cables or adapter boards (I think it has one small 10-pin cable).FULL has everything you need in the package.All of them are functionally the same.If you are careful and want to do things on the cheap, then PCBA is a way to go. You will have to acquire corresponding cable, and they are not cheap, but still cheap enough.

author: ciclonite
author_rank: Contributor
timestamp: November 27, 2016, 10:27:35 pm
content: Thanks a lot ataradov,The ICE is the same, the version are diversified by accessories.Thanks again for your explanation.G.

author: westfw
author_rank: Super Contributor
timestamp: November 28, 2016, 09:02:41 am
content: There's an Atmel SAMD10 Xplained Mini evaluation board sold by Atmel for less than $20 that includes an onboard programmer/debugger...

author: ataradov
author_rank: Super Contributor
timestamp: November 28, 2016, 09:07:32 am
content: Quote from: westfw on November 28, 2016, 09:02:41 amExcept that mEDBG is stupidly slow, since it is only a Full Speed device.

author: ajb
author_rank: Super Contributor
timestamp: November 28, 2016, 06:26:04 pm
content: Quote from: ataradov on November 28, 2016, 09:07:32 amI thought the Xplained boards used the same EDBG chip as in the Atmel ICE, is that not the case, or is the Xplained version crippled or something?

author: ataradov
author_rank: Super Contributor
timestamp: November 28, 2016, 06:27:48 pm
content: Quote from: ajb on November 28, 2016, 06:26:04 pmXplained Pro do. But Xplained Mini use mEDBG based on ATmega32U4, which is compatible on a protocol level, but is limited to Full Speed mode only.

author: westfw
author_rank: Super Contributor
timestamp: November 29, 2016, 12:17:17 pm
content: QuoteI wouldn't expect "Full speed" to be that much of a limitation (~10Mbps!), though the mEDBG is pretty slow.I'd offer other explanations:1) Other resource limitations of the ATmega32u4 limit performance.2) CMSIS/DAP might be inherently inefficient (or badly implemented) over high-transaction-cost paths (for example, we've noticed that TI's CMSIS/DAP implementation in their MSP432 launchpad is significantly slower than the TI proprietary debug protocol.)3) No one has expended much effort toward improving the performance of what is supposed to be a second-class debug product anyway.(I suspect (3) is the most likely)Do you know of any open source CMSIS/DAP to SWD implementations?

author: andersm
author_rank: Super Contributor
timestamp: November 29, 2016, 02:18:20 pm
content: Quote from: westfw on November 29, 2016, 12:17:17 pmThere's at leastARM/mbed's implementation. IIRC CMSIS-DAP uses USB HID (probably because handling USB devices on Windows is such a massive pain), which does limit throughput.

author: ataradov
author_rank: Super Contributor
timestamp: November 29, 2016, 04:13:04 pm
content: Quote from: westfw on November 29, 2016, 12:17:17 pmCMSIS/DAP protocol uses interrupt endpoints and HID protocol, so maximum data rate with full speed devices is 64000 bytes per second.Quote from: westfw on November 29, 2016, 12:17:17 pmWell, of course I do. I did one -https://github.com/ataradov/free-dapARM's is not really open, as it license locked to be run on ARM-based devices only.

author: andersm
author_rank: Super Contributor
timestamp: November 29, 2016, 05:47:07 pm
content: Quote from: ataradov on November 29, 2016, 04:13:04 pmIn CMSIS 5, the license has been changed to plain Apache 2.0, no additional EULAs (that applies to everything, not just CMSIS-DAP).