ATSAMr21 and ATMEL ICE programming on linux

Go To Last Post
7 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

After all, how can I program ATSAMR21 on linux environment?

 

I have a reasonable ATMEL ICE that is working fine, despite they forgot to bring RESET pin at 100 mils 6 pin header for SWD interface.

For unknown reason, it's tied to GND so all SWD pins are there (including unused SWO) but TRSTN.

 

Anyhow, after little cable hack everything is working now and Atmel Studio is detecting my ATSAMR21E18A just fine.

 

I noticed that avrdude or avarice doesn't know about SAM devices. Still avarice sounds promising, implementing EDBG protocol.

There is a workaround out there or something?

 

Thanks!

Last Edited: Wed. Aug 24, 2016 - 04:41 PM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

You might want to look at openocd.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello Kartman and thanks for reply,

 

I already installed openocd but I don't see a configuration file for R18E (there are some for XPlained boards).

Don't know how to start. I have some Xplained for R18G that are not working for R18E.. maybe some hacks?

 

Can you point me on some examples about how to use it as programmer in the first place?

I have ATMEL ICE and on Windows part is working nice, detecting the MCU, etc.

 

Thank you,

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

My suspicion is the r series is just a samd with a radio. Thus, programming is most likely identical.
As for further info, i've not any experience with that device , so Google then Google some more!