Pumpkin, Inc.

Pumpkin User Forums

Freeware Salvo with 16F84

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

Freeware Salvo with 16F84

Postby aek » Mon Mar 01, 2004 10:16 am

Hi Kevin.

Hmmm .. I thought we had rebuilt the libraries specifically for 'F84 users so that you could test with bank0 ... I have to look into this and get back to you.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Freeware Salvo with 16F84

Postby Kevin Stock » Mon Mar 01, 2004 12:47 pm

Hello,

I am trying to create an application for the
PIC 16F84 using PICC Lite and the freeware
version of Salvo, under MPLab 6.42. However,
I am unable to compile even the simplest
application:

#include <salvo.h>

main()
{
OSInit();

for (;;)
{
OSSched();
}
}

During the link phase, several "fixup"
errors are reported for the Salvo library
(sfp40aab.lib). If I change the processor
type to 16F877, linking completes
successfully.

I suspect that this is due to the fact that
Salvo considers the 16F84 to have two RAM
banks, and so the library is compiled to
place its variables in bank1. To test this
theory, I compiled a simple program without
Salvo:

bank1 int i;

main()
{
for (i = 0 ; i < 10 ; i++)
{
PORTB = i;
}
}

Linking of this program also fails with
fixup errors, but if I remove the "bank1" it
links correctly.

Is it possible to obtain a version of the
library that places its variables in bank0,
or is there an option I can give to the
linker to make it ignore the bank1
information? Since I only have the freeware
version, I can't recompile the libraries
myself.

Thanks and Regards,

Kevin

Kevin Stock
 
Posts: 3
Joined: Mon Mar 01, 2004 12:00 am

Re: Freeware Salvo with 16F84

Postby Kevin Stock » Fri Mar 12, 2004 6:10 am

Hi,

Is there any news on this? (I do realise that
the freeware libraries aren't a priority for
support).

Thanks,

Kevin

Kevin Stock
 
Posts: 3
Joined: Mon Mar 01, 2004 12:00 am

Re: Freeware Salvo with 16F84

Postby aek » Mon Mar 15, 2004 10:44 am

Hi Kevin.

We're not ready to release the next Salvo for PICmicro(R) distribution, but if you want, email support with the library you want, and we'll email you the newer version that puts everything in bank 0.

------------------

-------
aek
aek
 
Posts: 1888
Joined: Sat Aug 26, 2000 11:00 pm

Re: Freeware Salvo with 16F84

Postby Kevin Stock » Mon Mar 22, 2004 12:23 pm

Hi,

Thanks, and sorry for the delay in replying.

I'm only starting with Salvo, so initially
I'm just looking for sfp40aaa and sfp40ata
with the variables in bank0.

If the other 40a libraries (for 16F84) are
available, I'd appreciate them as well. You
can email them to me or I can download them
if you send me an FTP address.

Thanks again for your help.

Kevin

Kevin Stock
 
Posts: 3
Joined: Mon Mar 01, 2004 12:00 am


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 3 guests

cron