AS6 and finding ASF source files

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

Recently i received an XMEGA-A3BU Xplained and wanted to to explore it a bit. Since the guys at the Atmel booth (at the embedded world) didn't eat nor drink but just advertise the new Atmel Studio 6.0, i decided to give that one a try. After installation, i followed the ASF Tutorial that shows how to write the usual "Hello world" to the LCD, which - after some additional hacking - finally worked.

Now i'm in the middle of deciding if i stay with ASF or forget about it. So, as a starter it would help if i were actually able to locate all those source (and header) files within ASF, but so far failed to locate the source tree. All i could see was "Program Files (x86) -> Atmel -> Atmel Studio 6.0 -> Extensions -> Atmel -> Atmel Software Framework -> 3.0.1.74. Here i see a Repository folder and subfolders full of non-human readable files.

Could any brave soul please tell me where to actually find the ASF sources?

This is not to become another flame war about ASF (i've read some others), i just want to access the ASF sources, nothing more.

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

You probably want the Standalone version (http://www.atmel.com/tools/AVRSOFTWAREFRAMEWORK.aspx)

:: 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:

Could any brave soul please tell me where to actually find the ASF sources?

You use the wizard to select what from ASF to add to your project then it selects just the files you need. The idea is that you don't go "behind its back" and try and copy things manually as you won't know what things are dependent on what others which is knowledge built into the wizard.

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

Re. the standalone version... the Atmel web pages regarding AS6 clearly state that "ASF is included", so i assumed this applied to the source files as well.

Cliff, what if i don't just want to open and view them while being in a particular AS6 project, but want to have a look at certain implementation details of a given module? I guess all i want is the ASF sources without the need to start up AS6 and open/modify a project.

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

Quote:

I guess all i want is the ASF sources without the need to start up AS6 and open/modify a project.

But sadly they seem to keep them in some kind of archive format. I've gone hunting for .h there too but fruitlessly.

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

In AS6 the ASF source files lie in a repository and are read from there to add modules/drivers with the ASF Wizard or to create the example projects.

To download the sources get the Standalone version.

To just "want to have a look at certain implementation details of a given module", just look here: http://asf.atmel.com/docs/latest...

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

Ok, i think i got it that i'll need the standalone version. regarding the pointer to Atmels ASF docs, well, how do i avoid being censored or banned using the wording i like most... I have a feeling that the whole ASF documentation is a conspiracy of Leon and upper Microchip mgmt to make AVR users finally switch to alternative platforms... ;-)

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

Quote:

To download the sources get the Standalone version.

So after downloading 700MB for AS6 you then download another huge archive to get a copy of what you already have? Umm.
Quote:

To just "want to have a look at certain implementation details of a given module", just look here: http://asf.atmel.com/docs/latest...

I must be missing it - does that site have a source repository browser? Say I want to see how ccp_write_io() is actually implemented for Xmega. I can get a description of the API:

http://asf.atmel.com/docs/latest...

but I don't see a way to study the source?

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

I find it absurd that a undocumented beta version of a buggy framework doesnt provide the sources needed to debug and get your product working.

I would like to have the power of code red in asf studio where i just howeer over API calls to see the implementation in popups including the doxygen info. I would also have a better code browsing interface where I can see what definitions are available in an included file in an easy way. for example by howering over #include

Does even atmels own engineers use this IDE themselfs ? If they do that might explain the constant delays for dev boards etc ... they can't get them to work.

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

Quote:
So after downloading 700MB for AS6 you then download another huge archive to get a copy of what you already have? Umm.

Not my idea...

Quote:
I must be missing it - does that site have a source repository browser? Say I want to see how ccp_write_io() is actually implemented for Xmega. I can get a description of the API

You are right, coming from the API I found no way to browse the source. When you start at the "Applications" you eventually come to a "Go to the source code of this file". But this seems to be broken somehow. I get only to see about 20% of the right side of the source code at the moment.

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

Quote:
Does even atmels own engineers use this IDE themselfs ? If they do that might explain the constant delays for dev boards etc ... they can't get them to work.

Does this makes you feel better? Do you think your nice words will improve something? Why don't you switch platform and work with Code Red?

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

Yes it does make me feel better to went some frustration.

I do use code red more and more for new design. Why doesnt atmle make an agreement with them probably cheaper and they will definatly have a better IDE offering.

Unfortunatley I have some designs that I can't use code red on, those products gets delayed by a factor of ten due to documentation, ide, lack of eveluation boards etc ...

I think Atmel has made a bad decisition with visual studio, evel boards and asf.

Now I feel even better.

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

Guys, i explicitly said that i do *not* want to start yet another flame war around ASF. So far i learned that others seem to have the same problems than i have (only the rightmost part of a source window visible, unable to browse to sources, download the standalone kit in addition...).

Since access to sources *and* proper documentation is a must for me, even just being a hobbyist, ASF gets more and more out of my perspective with Xmegas. Is Xmega support within avr-gcc/WinAVR mature/robust/reliable enough to work with it?

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

Quote:

Is Xmega support within avr-gcc/WinAVR mature/robust/reliable enough to work with it?

At the end of the day ASF is just a bunch of .c and .h files - Should work as well with WinAVR as Toolchain.

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

No, i meant XMega support when it comes to i/o space port definitions and such, not the usage of the ASF sources within 3rd party development environments.

Einstein was right: "Two things are unlimited: the universe and the human stupidity. But i'm not quite sure about the former..."

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

But ASF is tied to avr-gcc isn't it? So it's obviously going to use the same peripheral naming as in isn't it?

(it's certainly tied to avr-gcc when it's being used inside AS6 anyway)

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

Quote:

All i could see was "Program Files (x86) -> Atmel -> Atmel Studio 6.0 -> Extensions -> Atmel -> Atmel Software Framework -> 3.0.1.74. Here i see a Repository folder and subfolders full of non-human readable files.

It's a GIT repository, since that provides both compression (yay!) and revision control - that's how you can select between different ASF versions in the IDE without having {ASF SIZE}*{NUM VERSIONS} amount of disk space used. Trust me, you'd complain far more if it wasn't so. Since it's a GIT repository, either check out a copy with GIT to get at the source, or just download the standalone pre-exported package.

Quote:

You use the wizard to select what from ASF to add to your project then it selects just the files you need.

Exactly - it's integrated into Studio, and the expectation is that is how you will use it. If you want to use it standalone, use the standalone package or export a copy of the code (see above).

Quote:

I must be missing it - does that site have a source repository browser? Say I want to see how ccp_write_io() is actually implemented for Xmega. I can get a description of the API:

http://asf.atmel.com/docs/latest... ... ad87b769da

but I don't see a way to study the source?

IIRC, a full documented version of ASF including source code is several gigabytes, so I suspect they turned off the source browser in that export of the documentation. You can add the module to your project to see the code (and remove it afterwards if you don't want it). You're looking at the documentation for it, so presumably you intend to add it anyway?

Quote:

I find it absurd that a undocumented beta version of a buggy framework doesnt provide the sources needed to debug and get your product working.

We do, in two forms - studio and standalone.

Quote:

Does even atmels own engineers use this IDE themselfs ? If they do that might explain the constant delays for dev boards etc ... they can't get them to work.

Personally I develop with a mixture of Programmers Notepad and AS6. We typically make applications via the standalone version of ASF and then use the python generator to export them to AS5/AS6 for testing.

Quote:

But ASF is tied to avr-gcc isn't it? So it's obviously going to use the same peripheral naming as in isn't it?

(it's certainly tied to avr-gcc when it's being used inside AS6 anyway)

ASF is suitable for use with (currently) GCC and IAR for the AVR architecture.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!

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

Quote:

Personally I develop with a mixture of Programmers Notepad and AS6. We typically make applications via the standalone version of ASF and then use the python generator to export them to AS5/AS6 for testing.

I am a strong believer in "eat your own dog food", don't think the usabillity of the studio will increase of it isn't used internally by atmel.

Is it possible to use stand alone asf with Linux, eclipse, cdt, open OCD ?

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

tridentsx wrote:
Is it possible to use stand alone asf with Linux

According to my experience not efficiently. YMMV.

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

Quote:

I am a strong believer in "eat your own dog food", don't think the usabillity of the studio will increase of it isn't used internally by atmel.

Is it possible to use stand alone asf with Linux, eclipse, cdt, open OCD ?

We use both - I code in a mixture, some people choose one or the other. Trust me, we use it every day - for debugging and tweaking as well as general coding. Yes, we wish the debugger was better also, but it's improving.

- Dean :twisted:

Make Atmel Studio better with my free extensions. Open source and feedback welcome!