Pumpkin, Inc.

Pumpkin User Forums

Salvo - Compile Errors

If you're having difficulty installing Salvo, post it here.

Re: Salvo - Compile Errors

Postby Guru_Wanabee » Wed Dec 20, 2006 8:48 am

Some more information:
When I comment out the OSInit(); line I get the following error

code:
"MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'OSlostTicks' in file 'sched.o'.
Errors : 1"

When I comment out the OSSched(); line I get the following error

code:
"MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'OSlostTicks' in file 'timer.o'.
Errors : 1"

Once I comment out all three functions the application compiles.

Any help would be appreciated.

[This message has been edited by aek (edited December 20, 2006).]

Guru_Wanabee
 
Posts: 11
Joined: Tue Dec 19, 2006 12:00 am

Re: Salvo - Compile Errors

Postby aek » Wed Dec 20, 2006 9:29 am

Please post the entire output of the build Results window ...

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

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

Re: Salvo - Compile Errors

Postby aek » Wed Dec 20, 2006 9:34 am

Also, your salvocfg.h should read
code:

#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSF
#define OSLIBRARY_GLOBALS OSN
#define OSLIBRARY_CONFIG OSA
#define OSEVENTS 5
#define OSEVENT_FLAGS 1
#define MESSAGE_QUEUES 1
#define OSTASKS 3

Try it with this instead ...

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

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

Re: Salvo - Compile Errors

Postby Guru_Wanabee » Wed Dec 20, 2006 12:20 pm

This is the entire build output:

code:
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareRS232.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware24LC256.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareADC.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaredelay.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareI2C.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.o" is out of date.
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware"
-I"C:salvoinc" "main.c" -fo="main.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:54:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:56:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:60:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:97:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:109:Warning [2054] suspicious pointer conversion
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremem.o" is up to date.
Make: The target "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareSumpMonitor.cof" is out of date.
Executing: "C:Program FilesMicrochipMPASM SuiteMPLink.exe" /l"C:MCC18lib" -L"C:salvolib" /k"C:MCC18lkr" "C:MCC18lkr18f4520.lkr"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareRS232.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware24LC256.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareADC.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaredelay.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareI2C.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.o"
"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremem.o"
"C:salvolibsfc18sna.lib" /m"SumpMonitor.map" /o"SumpMonitor.cof"
MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'OSlostTicks' in file 'init.o'.
Errors : 1

BUILD FAILED: Fri Dec 20 15:19:56 2006


When I tried your recommended config I received and error about the variant not being specified and aborted the build. I added the variant NONE to your recommendation and recomplied. I still received the error above.

cheers

[This message has been edited by aek (edited December 20, 2006).]

Guru_Wanabee
 
Posts: 11
Joined: Tue Dec 19, 2006 12:00 am

Re: Salvo - Compile Errors

Postby aek » Wed Dec 20, 2006 12:30 pm

I need to see the results for a Rebuild All, not just a Make. You need to ensure that mem.o has been rebuilt using the latest salvocfg.h.

Sorry about the variant issue in the salvocfg.h -- you fixed that correctly.

Please create a minimum-case project (basically, a main that calls OSInit()) that still exhibits the same problem and email it to support. I'm sure it's an obvious problem, but I don't see it.

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

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

Re: Salvo - Compile Errors

Postby Guru_Wanabee » Wed Dec 20, 2006 12:38 pm

For completness here is the build All you requested:

Clean: Deleting intermediary and output files.
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareRS232.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware24LC256.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareADC.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaredelay.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareI2C.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.o".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremem.o".
Clean: Deleted file "SumpMonitor.cof".
Clean Warning: File "SumpMonitor.cod" doesn't exist.
Clean Warning: File "SumpMonitor.hex" doesn't exist.
Clean Warning: File "SumpMonitor.lst" doesn't exist.
Clean: Deleted file "SumpMonitor.map".
Clean: Deleted file "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareSumpMonitor.mcs".
Clean: Done.
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "RS232.c" -fo="RS232.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "24LC256.c" -fo="24LC256.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "ADC.c" -fo="ADC.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "delay.c" -fo="delay.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "I2C.c" -fo="I2C.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "main.c" -fo="main.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:54:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:56:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:60:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:97:Warning [2058] call of function without prototype
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.c:109:Warning [2054] suspicious pointer conversion
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "modbus.c" -fo="modbus.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.c:74:Warning [2054] suspicious pointer conversion
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.c:86:Warning [2054] suspicious pointer conversion
D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.c:105:Warning [2054] suspicious pointer conversion
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"C:MCC18h" -I"D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware" -I"C:salvoinc" "mem.c" -fo="mem.o" -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 56
Executing: "C:Program FilesMicrochipMPASM SuiteMPLink.exe" /l"C:MCC18lib" -L"C:salvolib" /k"C:MCC18lkr" "C:MCC18lkr18f4520.lkr" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareRS232.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmware24LC256.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareADC.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaredelay.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwareI2C.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremain.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremodbus.o" "D:ElectronicsProjectsC18_(18F4520)SumpMonitorFirmwaremem.o" "C:salvolibsfc18sna.lib" /m"SumpMonitor.map" /o"SumpMonitor.cof"
MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'OSlostTicks' in file 'init.o'.
Errors : 1

I will try to create a skeleton project that exhibits the same behaviour... Thank you for your time!

Guru_Wanabee
 
Posts: 11
Joined: Tue Dec 19, 2006 12:00 am

Re: Salvo - Compile Errors

Postby aek » Thu Dec 21, 2006 1:54 am

If I go into c:salvosrcmem.c and comment out line 197, I get your error:
code:
Clean: Deleting intermediary and output files.
Clean: Deleted file "C:salvoexamplegurumain.o".
Clean: Deleted file "C:salvosrcmem.o".
Clean: Done.
Executing: "C:mcc18inmcc18.exe" -p=18F4520 /i"C:salvoexampleguru" /i"c:salvoinc" "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:mcc18inmcc18.exe" -p=18F4520 /i"C:salvoexampleguru" /i"c:salvoinc" "mem.c" -fo="mem.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: "C:mcc18inmplink.exe" /l"C:mcc18lib" "C:mcc18lkr18f4520.lkr" "C:salvoexamplegurumain.o" "C:salvosrcmem.o" "C:salvolibmcc18v3sfc18sna.lib" /o"guru.cof" /M"C:salvoexampleguruguru.map"
MPLINK 4.02, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'OSlostTicks' in file 'init.o'.
Errors : 1

BUILD FAILED: Thu Dec 21 15:09:26 2006


I can't come up with any other way of generating that error ... did you perhaps modify the file?

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

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

Re: Salvo - Compile Errors

Postby aek » Thu Dec 21, 2006 2:03 am

I posted a copy of my working project at http://www.pumpkininc.com/salvo/lite/pic/prerelease/example-for-Matt.zip .

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

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

Re: Salvo - Compile Errors

Postby Guru_Wanabee » Thu Dec 21, 2006 4:14 am

Thank you... but still same thing. See below

code:
Make: The target "D:ElectronicsProjectsC18_(18F4520)Examplesalvoexamplegurumain.o" is out of date.
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"D:ELECTR~1ProjectsC18_(1~1Examplesalvoexampleguru" -I"c:salvoinc" -I"C:MCC18h" "main.c" -fo="main.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 55
Make: The target "C:salvosrcmem.o" is out of date.
Executing: "C:MCC18inmcc18.exe" -p=18F4520 /i"D:ELECTR~1ProjectsC18_(1~1Examplesalvoexampleguru" -I"c:salvoinc" -I"C:MCC18h" "mem.c" -fo="mem.o" -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
MPLAB C18 v3.02 (demo)
Copyright 1999-2005 Microchip Technology Inc.
Days remaining until demo becomes feature limited: 55
Make: The target "D:ElectronicsProjectsC18_(18F4520)Examplesalvoexampleguruguru.cof" is out of date.
Executing: "C:Program FilesMicrochipMPASM SuiteMPLink.exe" /l"C:mcc18lib" "C:MCC18lkr18f4520.lkr" "D:ElectronicsProjectsC18_(18F4520)Examplesalvoexamplegurumain.o" "C:salvosrcmem.o" "C:salvolibsfc18sna.lib" /o"guru.cof" /M"D:ELECTR~1ProjectsC18_(1~1Examplesalvoexampleguruguru.map"
MPLINK 4.06, Linker
Copyright (c) 2006 Microchip Technology Inc.
Error - could not find definition of symbol 'OSlostTicks' in file 'init.o'.
Errors : 1

[This message has been edited by aek (edited December 21, 2006).]

Guru_Wanabee
 
Posts: 11
Joined: Tue Dec 19, 2006 12:00 am

Re: Salvo - Compile Errors

Postby aek » Thu Dec 21, 2006 4:27 am

Well, I've done all I can.

I did a fresh install of Salvo Lite for PIC, and added the patches. Then ran the project and it works. So short of having your computer in front of me, I can't offer any more help.

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

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

PreviousNext

Return to Installation

Who is online

Users browsing this forum: No registered users and 0 guests