I think you've run out of ROM, though I'm not 100% sure with that error message. The 16F84 has only 1024 instructions in ROM, so fitting a Salvo application in there is a bit of a stretch -- we generally recommend PICs with >= 2K ROM.
But that doesn't help you, does it? So let's see what we can do ...
I see you're using Salvo Lite. That doesn't leave too many opportunities.
1) Your application (at least what's shown below, don't know what it's grown into) doesn't call OS_Delay(). Therefore you don't need any of the delay services. But sfp40Aab.lib has them in there ... Use sfp40Aeb.lib instead (events but no delays). Note that you should have
code:
#define OSLIBRARY_CONFIG OSE
#define OSLIBRARY_VARIANT OSB
for this "eb" library.
2) Another thing you can do is remove the call to OSInit() ... but you must clear the RAM in bank1 to all 0's at the beginning of main() if you choose to do this, because the compiler won't do it for you. The Salvo variables used in the libraries are declared as persistent, and therefore the usual PICC startup code won't touch them. OSInit() is a lot bigger than PICC's start initializer code, so the code should shrink. You can use the clear_ram() function that PICC provides as startup code. If it's not present in your MPLAB Program Memory window, then add an unused global variable to your program and it will be. I don't know what the parameter list for clear_ram() looks like ...
3) You don't need the OSPIC16_GIE_BUG config option. There's nothing in your main() that uses it, and the library's services are already compiled with it, and AFAIK the F84 doesn't suffer from this problem anyway.
4) A Salvo application compiled for the 16C84 should run on the 16F84, and vice versa. There's no difference in either the Salvo or PICC libraries ...
I compiled the v2.3 salvo utorial u4sysa u4free.pjt for both the 16C84 and the 16F84 and they were the same size, ROM- and RAM-wise. So I don't know or understand why you get a difference between them. How much ROM did it use when it successfully compiled for the 16C84?
[This message has been edited by aek (edited August 22, 2001).]