ASF4 CAN driver examples for SAMC21?

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

I have production code based on the CAN "Quick Start Guide"

 

I have a new project and wanted to try ASF4,  but find the CAN example in the ASF4 API seriously lacking in detail and practical application whereas the ASF3 one is great.  Is ASF4 just not mature enough?  How long will ASF3 be around before they discontinue it?

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

Hi john8791,

 

Over the past few months I also have been working on learning the SAM C21 device.

 

From what I have learned, ASF4 was developed ONLY for the Atmel START utility and there is no intension to make it stand alone, like ASF3 is. From that, I believe ASF3 will be around for a long time. I hope anyone with more info on this will post here for clarification.

 

I also have discovered that you can not mix the two. If you start with using Atmel START, you can not pull-in a ASF3 driver and vis-versa. Another finding, which is bad news for us, is the C21 device is not popular and from that, I would not be looking for any quick fix to Atmel START.

 

I have decided to work with my C21 project by not depending either of these tools, instead I am going down the old way of just writing directly to the registers.

 

If your interested, I would be glad to share with you what I have.

 

Hope this helps,

Alan

 

 

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

BocaDev wrote:

Hi john8791,

 

Over the past few months I also have been working on learning the SAM C21 device.

 

From what I have learned, ASF4 was developed ONLY for the Atmel START utility and there is no intension to make it stand alone, like ASF3 is. From that, I believe ASF3 will be around for a long time. I hope anyone with more info on this will post here for clarification.

 

I also have discovered that you can not mix the two. If you start with using Atmel START, you can not pull-in a ASF3 driver and vis-versa. Another finding, which is bad news for us, is the C21 device is not popular and from that, I would not be looking for any quick fix to Atmel START.

 

I have decided to work with my C21 project by not depending either of these tools, instead I am going down the old way of just writing directly to the registers.

 

If your interested, I would be glad to share with you what I have.

 

Hope this helps,

Alan

 

 

 

Thanks for the insight Alan.  Yes, the C21 doesn't seem to be nearly as popular as the D21.  I have migrated from 8/16 bit Freescale processors w/ CAN to this and was very happy how easy it was to get started in the ARM world with the ASF3 example projects.  I have code for CAN that seems to work but would welcome anything you can share.

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

John,

 

Most of my C21 knowledge has come to me from Alex Taradov, an engineer at Atmel (now Microchip). If you look at his web site https://taradov.com/ about half way down his page, you'll see his MCU Starter Projects. These Atmel projects he wrote were written without ASF or START. I have been in communications with him about the C21 ADC operation using register direct.

 

You can find my post and his response on the EEVBlog located here http://www.eevblog.com/forum/microcontrollers/using-atmel-sam-devices/

 

Alan