Where are "C" sample projects for AVR Studio 4 ?

Last post
33 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

a)
where are "C" ( and Assembler ) sample projects for AVR studio 4 ?
I did not find any sample project directory, with the standard installation,
I did not even find an extra "sample project" archive on the website:-! Is there any ?!

( I *love* to use W2k on my main computer, so as ATMEL beginner, I would like to get familiar both with AVR Studio 4 on THIS computer, and with AVR Studio 5 on my new notebook.

b)
For comparison, with AVR Studio 5, it's so simple:
"File-New-Example Project" :-)
If I open+save such an example project, it is stored at "users / / Documents / AVRStudo / Project name".

I did not found such an option with AVR Studio 4, to access sample projects. Is there any ?!

c)
Extra question:
Where does AVR Studio 5 store these files, before I extract them to the local documents directory ?

How can I extract the sample project for use with AVR Studio 4, without the explicite extraction with the help of AVR Studio 5 ? Ok it's not a great pain to transfer the projects sample manually...

May I use either just the extracted "C" source files with AVR Studio 4 ( are there changes in the GNU-C toolchain between whats shipped with Studio5 and which must be installed as an extra, with AVR studio 4 ? ), or may I even use the extracted project files ect ?

I just will start with
- In-circuit debugger JTAGICE 3
- Atmel AVR XMEGA Xplained Kit, with ATxmega128A1 8-bit CPU
after a 1-day workshop next week, see
http://www.atmel.com/microsite/tech_tour/agenda.asp

Which of the sample project supplied with AVR Studio 5 will work with this equipment.
a) which just require a 8-bit CPU with its limited RAM space
(b) which address the hardware of my eval board )?

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

a) None that I know of
b) Same like a)?

Do you only have acces to an JTAGICE3? Afaik Studio 4 will never support this. So you should either get a Dragon or stick with Studio 5 only. Another option is to use the Xplainbridge by Dean:
http://www.fourwalledcubicle.com/XPLAIN.php
This won't allow debugging but you don't have to get an additional programmer(It is compatible with Studio 4)

There should be Exampleprojects specifically for your type of Xplainboard which will obviously meet both of your requirements.

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

1)
I am surprised about the non-support of JTAGICE 3

http://www.atmel.com/dyn/products/tools_card.asp?tool_id=17213&category_id=163&family_id=682&subfamily_id=2138
, by AVR Studio 4.

Hmmm... is it so new ? From the website, I did not get the clue that this product has "minor" qualities in the means that it is not supported by the (legacay, but former flagship ) development application AVR Studio 4 ?!

2)
I am VERY sorry that I used (a,b) numeriation 2 times :-(. Please MannImMond tell me to which question do you refer with your answer ?

3)
So if I look at the homepage of my future board
Atmel AVR XMEGA Xplained Kit,
http://store.atmel.com/PartDetail.aspx?q=p:10500183
and the CPU

ATxmega128A1
http://www.atmel.com/dyn/products/product_card.asp?part_id=4298

, I don´t see any "project sample" offers.

So I would be pleased if you point me to "C" and Assembler sample projects which *work* with the board and its CPU, especially with AVR Studio 4.

5)
And I would be very pleased if you already know
5.1) which sample projects, provided with AVR Studio 5 work with the board
5.2) which AVR Studio 5 sample projects might access the hardware available with my board, to have a quick win for starting, to see an LED blinking ect.

.. I just see that the first project I selected, is for AVR32 UC3 devices ( as described in the "C" file properly, at the start, so "not for me on my workshop" :-(.

Ok some of the questions will be answered by the workshop :-), so good to know the questions.

6)
So AVR Studio 5 was really a milestone, by providing sample projects ?!! How did you developers survived without, for the last 10 years, as rookies, when you were rookie ?!

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

1) Well it is actually out since May this year(I couldn't use one yet...)
2)Sorry I read your questions too quickly... About the samples for Studio 4 I don't think there are any. Neither on the website nor in the studio. Normally there samples for specific chips(For automotive chips)
However there are these "training" manuals provided here which should be fine in Studio 4 http://www.atmel.com/dyn/products/tools_docs.asp?category_id=163&family_id=607&subfamily_id=1965&tool_id=17168 Afaik Studio 5 was not published yet when these were created. They cover C and Assembler if I remember right.
3)Sometimes there are Appnotesunder the documents tab.
5)I have an old beta of Studio 5 only ( I hate it :))
try "New Example Project" on the Startpage. A list with projects should pop up. At the end of each line you see the Device which should be ATxmega128A1 and right before that the platform(STK600, XPlain....)
6)Well there are tons of Tutorials to be found here in the tutorials section for example but I still prefer learning a language by reading a book.

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

I have never seen any sample projects in Studio 4 Would have been a big help if there were, but that is water under the bridge.

As for support of JTAGICE3 in Studio 4 - as far as I can see, Studio 4 is essentially dead. No new work, no bug fixes, no nothing. That is not unusual. At some point, we will have to move on, just to get support of newer chips. Its not unlike photo management software - when many cameras started offering RAW image formats, you got whole new versions, not just a minor upgrade, and the previous version died. Not much different, here.

Jim

Jim Wagner Oregon Research Electronics, Consulting Div. Tangent, OR, USA There are some answers that have no questions.

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

1)
Thank for the hint to look at detail at the sample projects.

With the current AVR Studio 5, go to
"File / New / Example Project",

and then select
"Show Projects = 'AVR XMEGA, 8-bit".

The result is a list of sample projects for my future board, "Xplain" with ATxmega128A1, and some
other board ( STK600, XMEGA-A3BU Xplained ).
Especially if you select a project before opening, a photo of the target board is displayed on the right side of the project selector ( I see this first time with a windows application, like this ).

So there are MANY introductory examples, even named by its major function :-). Again: How did you developers survived without, for the last 10 years, as rookies, when you were rookie ?!

3)
I am going to "select" all projects and transfer it to a safe place ( and maybe try to compile the codes with AVR Studio 4 :-) ). Is there any reason why this compiliation with AVR Studio 4 should not work ?

4)
If I understand right, AVR Studio 5 is free and unlimited to be used with Atmel eval boards, at least. Am I right ?!

With some other manufacturers like Freescale, the free IDEs are somehow limited to a certain codesize.

But for 8-bit devices usually this limit
is identical with the typical Flash/RAM size ( i.e. it is not a real limit ).

For 32-bit devices, the limit of the free IDEs of other manufacturers is really a limit, i.e. less than the Flash/RAM space ( but somehow "fair" for small projects ).

So what is the policy of Atmel ?!

I understand that the free Atmel toolchain is GNU-based and available at SourceForge :-)
http://winavr.sourceforge.net/

( but I remember another "free" GNU compiler chain for another target of another CPU manufacturer which was limited to ? 64k ?, on a 32-bit target....

5)
Was there any special reason why you still "have" / "use" an old beta version of AVR Studio 5?

6)
Btw, there is a AVR Studio 5 project "AT45DBX Unit Tests".

So is there any free tool to do Unit Tests with such 8-bit devices ? So the testing framework must be run on the device ( or its emulation ) :-(, which is of course a problem with the limited memory space.

7)
Btw, does the free Atmel toolchain include a free CPU and board simulator ? Or is there any other free third-party product ?

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

1) Well I did learn programming in school/with a book/ and the most important one: Reading other peoples sourcecode

4)There are no limits using Studio. However alot of companies prefer a different compiler than GCC to produce better optimized code One example is IAR. But if you only want to learn how to use AVR you propably won't see a difference anytime soon.
5)Well, have is the correct term here. I was euphoric when they announced the beta and after my first projekt in studio 5 I never launched it again and went back to Studio 4. The first Versions didn't support the STK500.... and that's the platform I use. Maybe I will switch at some point but it's not gonna happen anytime soon.

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

Again, as I modified the text too late :-), I would be pleased about a creative answer, as you answered so greatly:

6)
Btw, there is a AVR Studio 5 project "AT45DBX Unit Tests".

So is there any free tool to do Unit Tests ( like with JUnit for Java, NUnit for .NET, or the commercial TESSY for embedded systems targets ) with such 8-bit devices ? So the testing framework must be run on the device ( or its emulation ) Sad, which is of course a problem with the limited memory space.

7)
Btw, does the free Atmel toolchain include a free CPU and board simulator ? Or is there any other free third-party product ?

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

6) No Idea

7)In Studio 4 there is a simulator for all the registers and Ports(You can set and clear nearly everything) However I never really used it since in most cases debugging is easier because you can attach the periphals which can't be simulated/are hard to simulate. You should always use Simulator 2. I don't know if there is a simulator in Studio 5 but if there is you should find something about it in the Studio 5 forum.

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

Hello again,
thanks for all the answers.

1)
Where is the simulator with Studio4 ? At
"Debug - Select Platform and Device" ?

2)
To all Studio5 users:
Where is the simulator, if at all ?
And if so, how can I select between debugging the target and running /debugging with the simulator ?!

3)
Btw, Studio4 copyright is 1996-2010, so it is really really legacy ( I expect former Win95 compatibility & probably MFC as GUI framework...).

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

1) Yes you are correct here. If you chose Simulator 2, pressing the start debug button will start the simulation. Remember to switch the debug platform again when you really want to debug using the jtag, dragon... The options like the clockspeed and the fuses for the simulator can be accesed after you compiled your project and started the debugging. Use "Debug -> AVR Simulator 2 Options" for this.
3) You might want to install the latest(beta) version which can be found at http://www.atmel.no/beta_ware/
Windows 95 is no longer supported by AVR Studio. The most recent version that supported Windows 95 was AVR Studio 4.12 SP3.
Windows 98 is no longer supported by AVR Studio. The most recent version that supported Windows 98 was AVR Studio 4.16 SP1.

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

Quote:
Studio 5 was really a milestone
Did you mean MILLSTONE? :?

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

js wrote:
Quote:
Studio 5 was really a milestone
Did you mean MILLSTONE? :?

It's not that bad... the icon is actually a great improvement :lol:

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

Quote:

the icon is actually a great improvement

Not just the icon but the ladybirds on the splash screen - sadly it goes rather rapidly downhill from there on... :-(

 

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

Just to let you know, the board handed out at the hands on event, is brand new. Not even on their website yet. And it's not included in the current download version of AS5.

It's an xmega-a3bu xplained board. Got an xmega 256a3bu, LCD (128x32 pixels), light sensor, and ntc sensor on it.

I know, because I have one on my lab bench :) (was on the training they held in Denmark).

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

a)
I now understand why there were no sample projects with Studio4: Because the sample projects with Studio5 depend on ASF, and shall empower and encourage the developers to use ASF :-). I did not check, but I assume that there are NO project which work without ASF... maybe the demo projects were used both by the ASF developers and the Studio5 developers for internal real-life application tests :-).

b)
Thanks for the infos about the event,
wow cool that we get a board with LCD ( but as you did not mention it, without Ethernet ?! ).

On the last Freescale annual event series, they granted a ARM Cortex based USB development stick, with LCD display but without Ethernet too... FOR FREE, which even can be integrated into their commercially sold little "develoment tower" ( which then has the else missing Ethernet interface ).

On the last Altera tour, for $49 or so, Altera granted an Altera Nios II USB development stick with Ethernet, but the master demo application, a webserver which displays the temperature of the built-in temperature sensor, just displayed garbage, as the firmware of the stick ( with NIOS II all is software which is burned in hardware with other CPUs :-) ) was so rotten and never updated, that it did not catch the temperature of the sensor, but "something else", so more or less a "noise" at the level of 30 degrees celsius, while it was about 20 degrees celsius in the room. The demonstration team agreed, says it was a pity, but no updates... so far.

c)
Might you tell me about the after-event homework ( the task,not your solution ), to get the $99 coupon :-) ?!

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

Quote:
now understand why there were no sample projects with Studio4:
??? C:\WinAVR-20100110\doc\avr-libc\examples

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

John! WinAVR-20100110 is not the same as AVR Studio 4.

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington]

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

But AVR Studio 4. (or 2, 3 or maybe even 5) does NOT have a C compiler therefore it cannot have any C code examples. :wink:

John Samperi

Ampertronics Pty. Ltd.

www.ampertronics.com.au

* Electronic Design * Custom Products * Contract Assembly

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

OK, John. Re-reading the whole thread I see your point now.

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington]

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

Thanks alot,

the sample projects are also shipped with

Atmel AVR Toolchain 3.2.3 for Windows
( CORRECTION, it is not "Atmel's download of WinAVR" ) for Studio4 ( -> extra download ) and Studio5 ( which is shipped with the toolchain ) :-),

probably I did not search for "*.c" after I installed the AVR toolchain...

But to be honest, I am used to that if I ask an IDE to open sample project, that it is easy to find.. ( and indeed the WinAVR toolchain projects are NO Studio4 project, but just directories with source codes & standard makefiles...

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

Quote:

the sample projects are also shipped with Atmel's download of WinAVR

That is impossible AFAIK, since there is no "Atmel download of WinAVR".

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington]

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

Newbie question:
And how do you call this

Atmel AVR Toolchain 3.2.3 for Windows
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=4118

and there is even a Linux toolchain

Atmel AVR Toolchain 3.2.3 for Linux
http://www.atmel.com/dyn/products/tools_card.asp?tool_id=17311&category_id=163&family_id=607&subfamily_id=1965

so is it based on WinAVR or not ?!

The directory structure is the same, and the sample projects are the same too..

I also found
http://shop.chip45.com/epages/es10644620.sf/en_US/?ViewObjectID=29637719

"Since the original WinAVR Distribution is longer being maintained/updated, we decided not to provide any new Portable WinAVR versions"

This is not a compliment neither for WinAVR nor for Atmel's version ?!

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

Both WinAVR and the AVR Toolchain are based on avr-gcc and avrlibc (and other stuff). AVR Toolchain is not based on WinAVR (or the other way around for that matter).

That said, since they share the same base they also share A LOT of specific features.

Since you've found the note on the demise of WinAVR, you might also find the note on it's resurrection. We are eagerly awaiting a new release of WinAVR in the upcoming months.

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington]

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

a)
I would be pleased if you might tell me a website for avr-gcc, if there is any.

So of course I know the main website of GNU, and if
the native version is on Linux,

this does not really help me if there is no ready-made installer package.. so if THIS cross-compiler version is "on the radar" of a certain Linux distributor ( Ubuntu,...).

avrlibc on the other hand, is easy to find:
http://www.nongnu.org/avr-libc/
http://savannah.nongnu.org/projects/avr-libc/
and as add-on, not replacement:
http://www.procyonengineering.com/embedded/avr/avrlib/

b)
So what ARE the differences between WinAVR and Atmel's compiler chain,
is there an online list of differences ( in functionality, bugs.. ) ?

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

The best thing you can do if you want to run on e.g. Ubuntu is to use the build scripts that fellow AVRfreak member 'bingo600' has supplied. Locate the post in the avr-gcc forum here. Either use them to build the tool chain yourself or use the ready-built packages - they hare hosted by fellow AVRfreak 'clawson'. Link in same thread.

Do not uses eg Synaptic on Ubuntu to get the avr-gcc tool chain that Ubuntu offers from it's repository. Same goes for other Linux distis repos. They are in general out of date to the point that they will be more or less unusable.

If you are curious enough then you could study bingo's scripts to find out what URL he uses to get all the patches, I suppose. Ive not come to that point, yet..

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington]

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

I don't know if the homework assignment is the same for every event.

But our assignment was about making a profiling application for the lightsensor, using the display. Pretty straight forward, unless you want to tweak things :)

btw. studio 5 has avr-gcc build in, so there is C code examples (and lot's of them) in there..

/ Thomas

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

Quote:

I would be pleased if you might tell me a website for avr-gcc, if there is any.


(a) As Johan says, if you need to build a toolchain on Linux then get Bingo's script from the sticky at the top of this thread and it will use wget (or whatever) to pull in all the various source packages for avr-gcc, binutils, avr-libc and so on. Of course if you are on a Debian based Linux (which includes all the *buntu's) then don't bother running the script and building it yourself as Bingo already did and the resultant .deb's are hosted on my website at www.wrightflyer.co.uk/avr-gcc/

(b) WinAVR is built by a team of experts, coordinated by Eric Weddington who've been involved in the work to make avr-gcc, avr-libc and so on the excellent set of tools it is today. As they are the real gurus/experts they've thought about all the utilities you may need, all the problems you might face and have built a coherent package that is perfect for the avr-gcc developer on Windows. To use C with AVR Studio you download AS4 and then WinAVR and the two go very nicely together even though one came from Atmel and one came from an independent team who just happen to be lead by an Atmel employee who did most of the work in his own time (in fact, most before Atmel later employed him)

More latterly Atmel obviously decided to try and give the thing a more "in house" look to try and give the end users the impression that THEY were supplying a C compiler. So they set some (possibly outsourced in India?) the job of trying to build an avr-gcc toolchain in a similar way that Eric (in WinAVR) and Bingo600 (in the sticky script for Linux) have done previously. Sadly they seem to have used a team who don't wholly understand what the hell they are doing or what the potential pitfalls are (ironic when you think that they actually employ Eric as well!). The output of this little endeavour is called "AVR Toolchain". It first appeared in the latter days of AS4 as an alternative "external" package to be downloaded and installed alongside AS4 as an alternative to WinAVR (presumably this was a test run - no one on earth would have chosen to use this?!?).

Then they spent years saying there'd be a new AVR Studio (AS5) and because they'd already headed in the Eclipse direction for AVR32 Studio most folks assumed it would also be Eclipse based and hence multi-platform. But what they actually delivered was this brain dead version of Microsoft Visual Studio 2010 and to make it look even more like there was an "Atmel C compiler", they chose to ship it with AVR Toolchain (a later version - no better) installed with the package.

Most people "in the know" are sticking with AS4 and WinAVR and looking forward to the next WinAVR2011 (or perhaps even 2012?). Those poor souls who have no alternative but to use AS5 (John above is one) are installing it but then changing the internal setting so that for C it still uses the tried and proven WinAVR20100110 rather than the dog's breakfast that is AVR Toolchain.

The good news is that not only has Eric promised a new WinAVR (possibly using 4.6.1?) but it seems that within Atmel they may have asked him to get more directly involved with putting the AVR Toolchain development back on the rails.

I suppose if Atmel hoodwink new users into thinking that AS5 is "great" and that they are supplying it with a C compiler then there job is done. It's just unfortunate that those users will possibly be spending some of their life debugging the toolchain rather than getting on with some real work with reliable tools.

(oh and don't get me started about ASF !)

EDIT: OK someone just did:

Quote:
so there is C code examples (and lot's of them) in there..

Exactly how many examples do you see in their for Tiny or Mega AVRs? Sure, if you use Xmega or UC3 you have some toys to play with - but what about the majority of AVR users who are happy with Tiny and Mega.

(admittedly Atmel finally recognise this and their own engineers, working on Tiny/Mega code, have posted here to get opinions on what they are working on)

 

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

Thanks for the impressive answers.

a)
Might it be an option for me as future XMEGA owner, to use the Eclipse-based AVR32 Studio for use with the 8-bit compiler chain ?

In comparison to use a standard Eclipse version with CDT ( and just to make somehow (?) call the Atmel compilers instead of MinGW ) ?

b)
I just opened the thread
"As rookie on ATxmega, how to deal with ASF ?"
http://www.avrfreaks.net/index.php?name=PNphpBB2&file=viewtopic&p=870180

and I would be **pleased** if you fulfill there your announcement "(oh and don't get me started about ASF !)" :-), as I know you WOULD like to tell, if you get a faithful reader (me, all other newbies, all other users of the special workshop roadshow ).

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

a) no, AVR32 Studio only comes with the avr32 tools. But "AVR toolchain" in AS5 (and WinAVR20100110 for that matter) have both avr-gcc and avr32-gcc.

It is, of course, possible to use Eclipse or Netbeans or Code::Blocks or any other IDE you like as the front end for avr-gcc (or avr32-gcc or arm-gcc or any other *gcc you choose). A lot of people (myself included) have found Code::Blocks to be a nice fit - it's just the right level of complexity for AVR development (Eclipse can be too complex and daunting). Of course if you develop on Windows then using AS4 (or even the dire AS5) may be the best idea simply because of the amount of support available - not least of which is on this forum.

As I run a Kubuntu host and then Windows XP virtual machines in VirtualBox I still tend to use AS4 in Windows XP.

As for ASF, only in my 'umble opinion, it is an utter pile of poo. I just don't see what it really offers, there's virtually no documentation and it has been made overly complex to use. Not that I need support libs like this (if I want to operate a UART or an ADC I dig out the datasheet and program it myself) but if I did I'd use the work from Fleury or Stang(*) long before I'd bother with ASF. In part, however, that's because of its almost total lack of support for tiny or mega (the "best" AVRs in my umble opinion). All that really happened was that at launch of UC3 and then Xmega, because competitors like Microchip were doing it for some of their chips, Atmel wrote some great app notes about each feature (UART, ADC, timer, etc) of those chips. Those notes/codes were actually quite good but then they just lumped them all together into a thing called ASF without really applying much thought as to how to put the packages together or how to document them properly - just grouping a whole bunch of code into an archive does not magically make it a "Software Framework".

(*)
Fleury = http://homepage.hispeed.ch/peterfleury/avr-software.html
Stang = http://www.procyonengineering.com/embedded/avr/avrlib/
(these are support libraries for tiny and mega - not xmega that they pre-date)

PS BTW what made you choose Xmega rather than tiny or mega as an entry point?

 

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

"PS BTW what made you choose Xmega rather than tiny or mega as an entry point?"

1)
I am event-driven,

I have a human radar for detection of free company events in great hotels, with free lunch ( but in this case there is a $99 fee plus traveling costs, which I just accept with grumbling, but I saw the POTENTIAL of the event for me ), so I discovered

Atmel Technology on Tour 2011
http://www.atmel.com/microsite/tech_tour/default.asp

and I am used to go to corresponding ( often annual ) events of TI, Freescale, Analog Devices, National Instruments ect since about a decade.

2)
Radar means that I use web 2.0 services which even tell me when new events appear on special delicate pages :-). Its my skill that I can find and idenify such pages to be of that nature :-).

3)
The list of hotels and other special places I visited in the last 10 years is impressive, and where I was welcomed as unpaying guest ( I never rent a room in the hotels ).

See list which I started in 2009
http://www.hemmerling.com/doku.php/en/meetingplaces01.html

while I still need time to transfer the data from an old list to this one.

4)
So as I am graduated engineer ( Dipl.-Ing.(FH) in information technology ), but in a critical professional situation - I studied "too long", my CV does not look well from point of view of companies,

I now find time to get into microcontroller software programming again.

5)
So whats the motivation with Atmel, XMEGA and the workshop event are the challenges

a) of a "homework" to get a $99 coupon :-) - so a "useful task, which can be taken as work probe for job applications"

b) the callenge to get familiar with at least ONE family of CPUs, and from my origin I come from 8-Bit in good old 6502 & Z80 days on Apple II with Z80 card ( I am too young to have 8080 experience :-) ).

6)
So the alternative and major player is all the ARM technology ( I got a free Freescale ARM Cortex M4 development board with LCD display ), but it looks more successful FIRST to warm up with 8-bit again.

And then have a look at ARM in 2012.

7)
Btw, I was unshure to take the workshop, first, AND I am unsure about the future with me & XMEGA, as I here ( and not elsewhere ) learnded that its not a continous development at Atmel from MEGA, TINY, MEGA32 to XMEGA...

8 )
There is another ( unpaid ) project about digital signage and another about authoring system, wnich I might do. Unpaid means that there might be an audience which is not willing to pay usual software developer's fee...

9)
besides that of course I apply for jobs regularly ( but I am not "workless" just "looking for contracts" from labour office bureaucracy's point ov view, I don´t get salary from the labour office ).

10)
Hey, I had a nice live and will have a nice life. Its so far the opposite of a "9to5" office life and "having a boss" - additionally I am single, not married, not divorced... so there is no "Mrs. Wifey Boss".

Ok I will be poor when I am old - but this will be many people in our western civilisation, though they worked much harder in a production as simple worker for 30 or 40 years, than me :-).

Sincerely
Rolf

http://www.hemmerling.com
SCADA Expertness - Quality Intensification for IT + Automation

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

Quote:

but it looks more successful FIRST to warm up with 8-bit again.

For a "warm up" I'd get a mega - one of 48/88/168/328 (28 pin) or 164/324/644/1284 (40 pin). The additional complexity of Xmega or UC3 is getting very close to ARM complexity in which case why bother with the half baked CPU with no future when you could be doing the real thing?

In fact in this day and age I'd just get an Arduino (one of the bigger ones) and you can start writing software 5 minutes after it arrives. (and you are NOT tied to using the Arduinmo "language" which is a potted version of C++ but can do normal C/C++ development then just upload the .hex files)

 

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

Quote:
For a "warm up" I'd get a mega

While I've never used an XMega, I'd go as far as saying "If (re-)starting out a mexa w/o "X" is to be preferred, since all the really basic aspects of embedded systems are there, but the complexity of a "bigger" micro is absent. E.g. you want to get your hands dirty with interrupts, basic timer/counter operation, USARTs, external interrupts etc, but want to wait with advanced stuff that the XMegas cater like the event system.

If you are to learn to ride a bike, you start with a one-gear two-wheeler. It poses enough of challenge re keeping balance etc. You do not want to start on either a one-wheeler or a 24-gear racer.

"Some questions have no answers."[C Baird] "There comes a point where the spoon-feeding has to stop and the independent thinking has to start." [C Lawson] "There are always ways to disagree, without being disagreeable."[E Weddington]