Pumpkin, Inc.

Pumpkin User Forums

can not locate event symbols

If you're having difficulty with Salvo's configuration options, post it here.

can not locate event symbols

Postby aek » Thu May 17, 2007 4:49 am

Which Salvo library are you linking to?

It's most helpful to cut-and-paste the entire Build Results window from a Build All in MPLAB ...

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

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

Re: can not locate event symbols

Postby nealfoster » Thu May 17, 2007 6:04 am


quote:
Originally posted by aek:
Which Salvo library are you linking to?

It's most helpful to cut-and-paste the entire Build Results window from a Build All in MPLAB ...



my project contains the following library:
sfc18sfd.lib

and the following linker script:
18f4520.lkr

here are the entire build results:

Clean: Deleting intermediary and output files.
Clean: Deleted file "C:salvodemod4main.o".
Clean: Deleted file "C:salvodemod4isr.o".
Clean: Deleted file "C:salvosrcmem.o".
Clean: Deleted file "C:salvodemoLCD Programusyxlcd.o".
Clean: Deleted file "C:salvodemoLCD Programopenxlcd.o".
Clean: Deleted file "C:salvodemoLCD Programputrxlcd.o".
Clean: Deleted file "C:salvodemoLCD Programputsxlcd.o".
Clean: Deleted file "C:salvodemoLCD Program eadaddr.o".
Clean: Deleted file "C:salvodemoLCD Program eaddata.o".
Clean: Deleted file "C:salvodemoLCD Programsetcgram.o".
Clean: Deleted file "C:salvodemoLCD Programsetddram.o".
Clean: Deleted file "C:salvodemoLCD Programwcmdxlcd.o".
Clean: Deleted file "C:salvodemoLCD Programwritdata.o".
Clean: Done.
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "main.c" -fo="main.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
C:salvodemod4main.c:116:Warning [2103] default startup code expects main function declared as 'void main (void)'
C:salvodemod4main.c:165:Warning [2054] suspicious pointer conversion
C:salvodemod4main.c:294:Warning [2054] suspicious pointer conversion
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "isr.c" -fo="isr.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
C:salvodemod4isr.c:70:Warning [2074] location PROD specified in the interrupt save list is redundant
C:salvodemod4isr.c:70:Warning [2074] location .tmpdata specified in the interrupt save list is redundant
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "mem.c" -fo="mem.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "busyxlcd.c" -fo="busyxlcd.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "openxlcd.c" -fo="openxlcd.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "putrxlcd.c" -fo="putrxlcd.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "putsxlcd.c" -fo="putsxlcd.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "readaddr.c" -fo="readaddr.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "readdata.c" -fo="readdata.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "setcgram.c" -fo="setcgram.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "setddram.c" -fo="setddram.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "wcmdxlcd.c" -fo="wcmdxlcd.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:salvodemoLCD Program" -I"C:salvodemod4syse" -I"C:salvoinc" "writdata.c" -fo="writdata.o" -DSYSE -DMAKE_WITH_FREE_LIB -Opa-
MPLAB C18 v3.11 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 31
Executing: "C:MCC18inmplink.exe" /l"C:mcc18lib" -L"C:salvolibmcc18" /k"C:mcc18lkr" "C:MCC18lkr18f4520.lkr" "C:salvodemod4main.o" "C:salvodemod4isr.o" "C:salvosrcmem.o" "C:salvodemoLCD Programusyxlcd.o" "C:salvodemoLCD Programopenxlcd.o" "C:salvodemoLCD Programputrxlcd.o" "C:salvodemoLCD Programputsxlcd.o" "C:salvodemoLCD Program eadaddr.o" "C:salvodemoLCD Program eaddata.o" "C:salvodemoLCD Programsetcgram.o" "C:salvodemoLCD Programsetddram.o" "C:salvodemoLCD Programwcmdxlcd.o" "C:salvodemoLCD Programwritdata.o" "C:salvolibmcc18sfc18sfd.lib" /m"d4lite.map" /o"d4lite.cof"
MPLINK 4.11, Linker
Copyright (c) 2007 Microchip Technology Inc.
Error - could not find definition of symbol 'OSWaitMsg' in file 'C:salvodemod4main.o'.
Errors : 1

BUILD FAILED: Thu May 17 07:00:10 2007

nealfoster
 
Posts: 7
Joined: Wed May 16, 2007 11:00 pm
Location: sc, ca, usa

Re: can not locate event symbols

Postby aek » Thu May 17, 2007 6:14 am

Wrong library ... sfc18sfd.lib has only delays enabled, and hence you can't wait on anything ... you want sfc18sfa.lib for the salvocfg.h settings you're using, because you have set up for an a-config library there ...

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

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

Re: can not locate event symbols

Postby nealfoster » Thu May 17, 2007 6:33 am

quote:
Originally posted by aek:
Wrong library ... sfc18sfd.lib has only delays enabled, and hence you can't wait on anything ... you want sfc18sfa.lib for the salvocfg.h settings you're using, because you have set up for an a-config library there ...


thanks, works perfect.
is this explained in the manual anywhere?


nealfoster
 
Posts: 7
Joined: Wed May 16, 2007 11:00 pm
Location: sc, ca, usa

Re: can not locate event symbols

Postby aek » Thu May 17, 2007 6:37 am

The Reference Manual covers the functionality of the various library configurations ... http://www.pumpkininc.com/content/doc/manual/rm-mcc18.pdf .

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

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

Re: can not locate event symbols

Postby nealfoster » Thu May 17, 2007 11:16 am

I am having a problem when trying to compile a program that uses the salvo_demo version, with mplab and a pic18452 (picdem2+) board. The code compiles, but can not find the symbols for creating, signaling or waiting for events.

i receive the following error:

Copyright (c) 2007 Microchip Technology
Error - could not find definition of symbol 'OSWaitMsg' in file 'C:salvodemod4main.o'.
Errors : 1

BUILD FAILED: Thu May 17 00:01:16 2007


the code that was calling the wait function is:

while(1)
{
OS_WaitMsg(MSG_FROM_PC,
&msgP,
OSNO_TIMEOUT,
Task_Bot_Comm1);

WriteDataXLCD((char *) msgP);

}


my definitions in the salvocfg.h:

#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSF
#define OSLIBRARY_GLOBALS OSF
#define OSLIBRARY_CONFIG OSA
#define OSLIBRARY_VARIANT OSNONE


any suggestions would be helpful. is there a different library that i need to link to? if so which one??

nealfoster
 
Posts: 7
Joined: Wed May 16, 2007 11:00 pm
Location: sc, ca, usa


Return to Configuration

Who is online

Users browsing this forum: No registered users and 4 guests

cron