Pumpkin, Inc.

Pumpkin User Forums

Tutorial doesn't work with AVR Studio 4.18!

For issues specific to Atmel's AVR and MegaAVR microcontrollers, including Atmel AVRStudio and ImageCraft's ICCAVR C compiler.

Tutorial doesn't work with AVR Studio 4.18!

Postby leon_heller » Thu Feb 17, 2011 10:26 am

I'm trying to get the AVR tutorial (tu5_WinAVR.zip) to work with the current AVR Studio 4.18, without any success: mem.c is missing.

Leon
leon_heller
 
Posts: 5
Joined: Thu Feb 17, 2011 10:17 am

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby aek » Thu Feb 17, 2011 10:42 am

Salvo for AVR is now part of Salvo 4 ... mem.c from Salvo v3 is now called salvomem.c in Salvo 4.

There are other simplifications in Salvo 4 (e.g. no labels required in context switches, to SYSx, etc.). So some of the steps required in a Salvo v3 build are not required in a Salvo 4 build.
-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby leon_heller » Thu Feb 17, 2011 11:03 am

Thanks, Andrew.

I tried salvomem.c, and got several errors: salvo.h missing is probably the cause. The project has salvo/inc in the include path so it should be able to find it.

It would save a lot of problems if you provided an example that worked "out of the box".

Leon
leon_heller
 
Posts: 5
Joined: Thu Feb 17, 2011 10:17 am

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby leon_heller » Thu Feb 17, 2011 11:15 am

I fixed the header include problem: I needed "c:/pumpkin/salvo/inc" as the path.

I now get lots of compile errors:

../main.c:42: error: expected declaration specifiers before '_OSLabel'
../main.c:53:28: error: macro "OS_Yield" passed 1 arguments, but takes just 0
../main.c:58: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
etc.

The examples in the Salvo AVR distribution seem incomplete, BTW; they are missing a main function. I tried adding the one in the tutorial, but it needs a main.h file, which isn't described anywhere.

A prospective client of mine is using Salvo, hence my interest. Perhaps the paid-for version is easier to use.

Leon
Last edited by leon_heller on Thu Feb 17, 2011 12:33 pm, edited 1 time in total.
leon_heller
 
Posts: 5
Joined: Thu Feb 17, 2011 10:17 am

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby aek » Thu Feb 17, 2011 12:14 pm

I think you are mixing Salvo v3 and Salvo 4.

Salvo 4 has complete, ready-to go examples in Pumpkin\Salvo\Example\AVR etc.

I would suggest doing a clean install of Salvo 4 for AVR on another machine -- you should not have problems.
-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby leon_heller » Thu Feb 17, 2011 12:35 pm

See my edited last post. I've also been trying to use the Salvo 4 examples from a clean installation, but they seem to be incomplete. File tut5.c is missing, for instance, from all the examples.

Can you please supply a simple project that works straight off?

These problems might be unique to the AVR, I remember evaluating Salvo for another MCU a few years ago, and didn't have any problems. In fact, the MSP430 version does have a tut5.c, it does appear to have been omitted from the AVR examples. Just supplying that might sort things out.

Leon
leon_heller
 
Posts: 5
Joined: Thu Feb 17, 2011 10:17 am

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby leon_heller » Fri Feb 18, 2011 10:38 am

I asked on the AVR forum if anyone had been able to get the WinAVR examples to work and got this response:

http://www.avrfreaks.net/index.php?name ... c&t=103551

confirming that there are problems with them.
leon_heller
 
Posts: 5
Joined: Thu Feb 17, 2011 10:17 am

Re: Tutorial doesn't work with AVR Studio 4.18!

Postby aek » Sat Feb 19, 2011 10:38 am

Hmm ... I just did a clean install of Salvo Lite v4.2.2-rc3 to a machine that has AVRStudio 4.13, and am experiencing no problems.

tut5.c is where it's supposed to be (in Pumpkin\Salvo\Example\AVR\AT90S8515\AVR_Studio\Tut\Tut5).

The include pathnames specified in the AVR Studio projects are usually relative (not absolute)
-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm


Return to Atmel AVR and MegaAVR

Who is online

Users browsing this forum: No registered users and 0 guests

cron