updating ASF during project

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

in the past ( A couple of years ago I just dicovered) I have done a couple of simple project things with ASF.

Back then All I did was create a project ( in my case it was a cdc device for an arm controller )

 

Now I want to make a more complex thing, again with an ARM controller.

I do prefer working in small steps as I occasionally only can spend some evening hours on coding so do not want to tkae big steps and get co0mpletely lost when things go wrong.

 

I want to again do a CDC device, first get that working, and then add for instance the FatFS parts to the project.

 

Is that possible without having to restart from scratch and copy my own work into the new project?

and what things do I have to look out for when doing it this way?

Till now I have only done coding on AVR8 bit devices, so I never really used the ASF for making projects or upgrading.

 

 

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

meslomp wrote:
with an ARM controller

For ARM specifics: https://community.atmel.com/foru...

 

meslomp wrote:
Is that possible without having to restart from scratch and copy my own work into the new project?

Yes - you can (or could, last time I tried) re-run the ASF Wizard to add stuff to an existing project.

 

meslomp wrote:
upgrading

Upgrading an existing project from one ASF version to another was a disaster for me!

 

angry

 

But that was a while ago (before START) - maybe it's better now ... ?

 

I guess you could try it, and feel lucky if it works for you.

 

But be prepared to start again from scratch, adding the required ASF components, and then merging-in your "secret sauce".

 

So long as you keep your project well-structured - with your  "secret sauce" code well separate from the ASF stuff - this is not actually that hard.

 

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

For ARM specifics I have colleagues :D going to use the proceesor we have at work so when I run into problems there I can ask my colleagues to have a look.

 

My question is more specific in to working with ASF and thus might be interested for people who use it for AVR8 devices too.

 

I do recall discussions on the point that indeed upgrading and even adding extensions ( as you can call it that way) to a earlier made project might get you into trouble and indeed having to start from scratch.

But that was waaaaaaay back in time, so wondered if anything had improved there.

 

 

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

Adding extras from the same ASF version to an existing project is no problem.

 

It was just changing the ASF version that didn't work.

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...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

meslomp wrote:
My question is more specific in to working with ASF and thus might be interested for people who use it for AVR8 devices too.

Few would use ASF bloat for AVR8 projects!!

 

Jim

Click Link: Get Free Stock: Retire early! PM for strategy

share.robinhood.com/jamesc3274
get $5 free gold/silver https://www.onegold.com/join/713...

 

 

 

 

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

ki0bk wrote:

meslomp wrote:
My question is more specific in to working with ASF and thus might be interested for people who use it for AVR8 devices too.

Few would use ASF bloat for AVR8 projects!!

 

Jim

for the older mega and tiny series I totally agree, but for the xmegas and the newer series I can imagine people starting with using the ASF to get basic things done quickly, effectively what I try to do too. get the basics going see the hardware works and from there continue to extend.

 

Had some spare time at work yesterday and tried to start an ASF project, but it keeps crashing on the creation. Did not have time to see if at home it does still work. We have had a number of network changes lately and strange things have happened to other tools too.