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

33 posts / 0 new
Last post
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.

Pages