How to add third party libraries to ASF4(Atmel.Start) project

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

Hello,

 

I started to work on new project and I tried the Atmel.Start ASF4 framework. It comes with helpful tools to configure your custom board and export it to AS7 project. The problem started when I realized that AS7 doesn't has any support for ASF4 projects via GUI interface (ASF Wizard/Explorer) and all adding/removing components should be done only via web site. Ok. I went there and I tried to add some basic third-party modules like FatFS or CMSIS. but I didn't found them. Latter I noticed that my project has include paths to CMSIS headers, but what about library ?

If someone has experience with Atmel.Start please advice me how to add third-party modules(FatFS, CMSIS) in a right way.

Thanks in advance.

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

Not sure if it's the best option but using AS7 you can create multiple projects within a single solution (one code base broken up into the application and a handful of libraries).  The core project would be ASF4/START.  Then add another static library project to the solution using ASF3 or some other 3rd party source code set.  So the complete code base consists of an ASF3 static library (compiled and linked down to a .a file) along with the primary ASF4 application.  It's one way to mix ASF3 with ASF4.  But there is quite a bit of manual effort to get each project to compile, then another round of effort to get the core application to link properly with the static library.

 

Of course you can always just add existing files inside AS7 to a single project/solution code base.  Think of it as the more "manual" method, adding existing files (3rd party source code) instead of creating new files from scratch.

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

The OP was talking about things like FatFS & CMSIS.

 

They would be just source modules - not static libraries.

 

So they can be added to an AS7 project just as you'd add any of your own source files.

 

Make a separate folder structure, if you wish.

 

Presumably, the mention of "CMSIS" means this is a SAM project ... ?

 

Not used START, but I would imagine (for a SAM project) that it must include CMSIS - so nothing required there ?