ASF update?

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

Hi,

i'm trying not to start another rant thread. I know some(or alot?) of you guys do not like the new Studios 5+6 not the ASF. I just would like to get some helpful ideas + hints if possible.

I wonder how you manage updates to ASF in your projects.
Plus i wonder how you re-use them in several projects.

As i understand Atmels way of handling ASF, you'll integrate what you need using the wizard into your project. The selected parts then get copied into your project directory. For me this sounds like it has the disadvantage that it will be difficult to reused code in several projects. E.g. if i want to program a layer onto the given ASF functionality, i would normally do this in an extra project directory, accessible for all my Atmel projects. The same would apply if i would need to fix some bugs in ASF supplied code.

Then the next question is how will updates for ASF work? Together with a new version of Atmel studio comes a new revision of ASF. How will i update the ASF code integrated into my projects with an earlier version?

Thanks
Holger

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

I add the ASF files manually to my project, and once I have all the lower level stuff working and tested I leave the AS as it is. I have 3 projects that I started 8 months ago that are running on my customized version of the ASF-v1.7.
I am using AVR32 studio 2.7 by the way, and I don't have plans on switching to AVR Studio 6 in the near future.

Daniel Campora http://www.wipy.io

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

Quote:
Plus i wonder how you re-use them in several projects.

Create a Static library project with all the stuff[including ASF files] that are required. Add the output of static library project to your all other projects.

Quote:
Then the next question is how will updates for ASF work? Together with a new version of Atmel studio comes a new revision of ASF. How will i update the ASF code integrated into my projects with an earlier version?

Install the new version of Atmel Studio. Open the project/solution created in old version of Atmel Studio in new version of Atmel Studio. Go to the properties page of the project and select the ASF tab to choose the latest version.

Regards,
Deena

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

Quote:

Install the new version of Atmel Studio. Open the project/solution created in old version of Atmel Studio in new version of Atmel Studio. Go to the properties page of the project and select the ASF tab to choose the latest version.

... beaten by minutes :P

Yes, the project uses a specific version of ASF. After an update, you can choose to move the project to another version.

:: Morten

 

(yes, I work for Atmel, yes, I do this in my spare time, now stop sending PMs)

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

Quote:
you can choose to move the project to another version.

Please note that project's ASF version can only be upgraded lower to higher version but not the other way.

Regards,
Deena

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

Hi guys,

many thanks, these are valuable hints plus makes me feel at least some of you are actually using ASF in real-word projects.

My first test-projects look fine so far. Once i'm familiar with ASf stuff i'll move everything into an ASF-project as suggested.

Cheers
Holger

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

Ok, looks like i need some more help with this(moving ASF into an extra project).

I have a working example project with some ASF stuff in it. I created a new project with the necessary ASF stuff for my project, then tried to link it to the project to replace the original ASF files the ASF wizard copied into the project dir. I then(after checking that everything needed is in the new ASF project dir) deleted the ASF files from my example project dir to make sure studio will include the correct files.
This caused me some headaches since i needed to change a huge number of include paths but finally the project compiled again.

Now i have a problem i'm finding no solution for at the moment: When i try to start the compiled program studio says ist cannot do so, no program was found:

Atmel Studio was unable to start your debug session.
Please verify device selection, interface settings, target power and connections to the target device.
Details:
Timestamp: 2012-05-31 20:15:33.768
Severity: ERROR
ComponentId: 20100
StatusCode: 131101
ModuleName: TCF (TCF command: Processes:launch failed.)

No program content found in ...\Debug\TestCAN1.elf.

Any idea what's going on?

Then i have a more general question:
I first thought i should include the ASF project as a library. But after thinking a bit i came to the conclusion that ASF uses some header files with project specific stuff(e.g. board definition) wich makes a pre-compiled library pretty useless. So i keep the configuration files for ASF in the project dir. I included the asf.h with a link and added all the ASF subdirs as include dirs. Do you think this is the way to go?

Thanks
Holger