Page 1 of 2

Compiling error in mplab v8

PostPosted: Fri Mar 14, 2008 7:49 am
by crazy4rtos
Hello all
i am getting this problem when compiling the code as mention in the user manual of salvo with mplab.

C:salvoexex1main.h:223:Error [1099] Undefined Salvo test system (SYS*). Definition required.


Please help me out where i am missing.
Regards


Re: Compiling error in mplab v8

PostPosted: Fri Mar 14, 2008 8:54 am
by aek
code:
#define SYSE 1

in your salvocfg.h.

This assumes you're running the MPLAB C18 compiler. SYSA for PICC and SYSF for PICC-18.

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

[This message has been edited by aek (edited March 14, 2008).]


Re: Compiling error in mplab v8

PostPosted: Fri Mar 14, 2008 10:56 am
by crazy4rtos
Thanks for your reply.
This is my salvocfg.h code.ihave defined sysf as your advise.

#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSF
#define OSLIBRARY_CONFIG OSA

#define OSEVENTS 1
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0
#define OSTASKS 1
#define SYSF 1

But still it throughing same error.
Error [1099] Undefined Salvo test system (SYS*). Definition required.

please help me


Re: Compiling error in mplab v8

PostPosted: Sat Mar 15, 2008 5:25 am
by aek
quote:
Error [1099] Undefined Salvo test system (SYS*). Definition required.
Please don't edit the error output -- which FILE is causing the error?

Which compiler?

Which target?

I need more information to be able to help you.

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


Re: Compiling error in mplab v8

PostPosted: Mon Mar 17, 2008 1:20 am
by aek
SYSE, not SYSF.

Also make sure that isr.c is also "seeing" a defined SYSE preprocessor symbol.

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


Re: Compiling error in mplab v8

PostPosted: Mon Mar 17, 2008 11:30 am
by crazy4rtos
I am using MCC18 compiler n MPLAB IDEv8.00.
I am using salvo 3.2.3 demo version.I think its enough info.Still i have that error.
need your help.
regards

Re: Compiling error in mplab v8

PostPosted: Mon Mar 17, 2008 11:57 am
by crazy4rtos
sorry i forget to mention the target.
target=PIC18C452.
regards

Re: Compiling error in mplab v8

PostPosted: Tue Mar 18, 2008 2:35 am
by crazy4rtos
yes SYSE.i mentioned that but the isr.c file m not finding it.can you mention tha path of the file.
regards

Re: Compiling error in mplab v8

PostPosted: Tue Mar 18, 2008 7:44 am
by aek
isr.c is in the tut1 directory ...

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


Re: Compiling error in mplab v8

PostPosted: Tue Mar 18, 2008 10:33 am
by crazy4rtos
the file which i have included in my work place are as follows:-

main.c
mem.c
salvocfg.h
sfc18sfa.lib
18c452.lkr
Please clarify me these are suitable files or not.
regards