Forum Menu




 


Log in Problems?
New User? Sign Up!
AVR Freaks Forum Index

Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
HolgHH
PostPosted: May 11, 2012 - 10:00 AM
Rookie


Joined: May 03, 2011
Posts: 35


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
 
 View user's profile Send private message  
Reply with quote Back to top
danicampora
PostPosted: May 11, 2012 - 10:31 AM
Hangaround


Joined: Oct 10, 2007
Posts: 395
Location: Valls, Spain

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.lear.com
 
 View user's profile Send private message Visit poster's website 
Reply with quote Back to top
tsgd84
PostPosted: May 11, 2012 - 10:39 AM
Hangaround


Joined: Oct 16, 2010
Posts: 138
Location: India

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
 
 View user's profile Send private message  
Reply with quote Back to top
meolsen
PostPosted: May 11, 2012 - 10:45 AM
Resident


Joined: Jul 27, 2011
Posts: 541
Location: Atmel, Norway

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 Razz

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

_________________
:: Morten
 
 View user's profile Send private message  
Reply with quote Back to top
tsgd84
PostPosted: May 11, 2012 - 07:11 PM
Hangaround


Joined: Oct 16, 2010
Posts: 138
Location: India

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
 
 View user's profile Send private message  
Reply with quote Back to top
HolgHH
PostPosted: May 15, 2012 - 10:44 AM
Rookie


Joined: May 03, 2011
Posts: 35


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
 
 View user's profile Send private message  
Reply with quote Back to top
HolgHH
PostPosted: May 31, 2012 - 07:27 PM
Rookie


Joined: May 03, 2011
Posts: 35


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
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT + 1 Hour
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2006 The PNphpBB Group
Credits