Porting Atmel ASF code to Atmel start

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

Hello,

   I am Trying to port code generated using Atmel ASF to Atmel Start of UART communication please help to port it. which points I have to consider most.

Last Edited: Thu. Apr 1, 2021 - 09:31 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

I don't think it's really a question of "porting" is it. The advantage Start (ASF4) has over ASF3 (apart from also being online) is that it is much more streamlined code. So I would just identify the boundaries where your own code crosses over to ASF3 APIs then create a whole new project from scratch using your own code then try to find ASF4 matches for the ASF3 functionality to connect to.

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

Hello 

     I have one big project which is created using ASF and now my task is to port it into Atmel studio. I want to know at which point I have to give more attention. The APIs used in ASF is completely different from Using ATmel start. In ASF driver files created are also different.

 

 

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

Poojashete1 wrote:
I have one big project which is created using ASF and now my task is to port it into Atmel studio

Surely, if it uses ASF it must already be in Atmel Studio?

 

Poojashete1 wrote:
The APIs used in ASF is completely different from Using ATmel start

The Key (as clawson suggested)  is to isolate your code from those APIs - then you don't have to change your code between ASF and START or anything else.

 

If you don't already have a "clean break" between your "application" code and the ASF stuff, the first step is probably to make that so ...

 

EDIT

 

+---------------------------------------+
|                                       |
|             Application               |
|                                       |
+---------------------------------------+
|           interface layer             |
+---------------------------------------+
|          ASF  -or-  START             |
+---------------------------------------+
|             Hardware                  |
+---------------------------------------+

 

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Apr 1, 2021 - 09:10 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Atmel ASF code is for board SAMR34J and I am using SAME54. Atmel ASF is not supported for my board so I want to port it

 

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

Poojashete1 wrote:
Atmel ASF is not supported for my board (sic?)

You mean not supported for the  SAME54 chip?

 

Adding board support is easy.

 

so I want to port it

So #2 and #4 cover that.

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
Last Edited: Thu. Apr 1, 2021 - 10:28 AM