Pumpkin, Inc.

Pumpkin User Forums

Salvo link errors with PICC

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

Salvo link errors with PICC

Postby aek » Sat Jul 13, 2002 12:23 am

Hello.

Keep in mind that these problems only happen with the PICC demo compiler ... all the projects compile properly with the full version.

I'm not entirely clear on how successful / unsuccessful you are ... the ADCON1_INIT / ADCON0_INIT problems are because of a mismatch between 16C77 and 16F877.

I'll go ahead and try salvo ut u1sysa and see if I can reproduce your errors, and propose a solution. I'll post the results here (tomorrow/Sun?).

Sorry you're having problems.

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

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

Re: Salvo link errors with PICC

Postby aek » Sat Jul 13, 2002 12:34 am

Hello.

OK, I found it ... you also need to add the

code:
#define SYSA
#define MAKE_WITH_FREE_LIB

to salvomem.c.

Then it will compile correctly.

code:
Building TU1FREE.HEX...

Compiling main.c:
Command line: "C:HT-PICBINPICC.EXE -FAKELOCAL -G -O -Zg9 -Isalvoinc -E -16C77
-C -ISALVOTUTTU1SYSA -DMAKE_WITH_FREE_LIB -DSYSA salvo ut u1main.c"
Enter PICC -HELP for help
This compiler will expire in 20 days

Compiling mem.c:
Command line: "C:HT-PICBINPICC.EXE -FAKELOCAL -G -O -Zg9 -Isalvoinc -E -16C77 -C -ISALVOTUTTU1SYSA
-DMAKE_WITH_FREE_LIB salvosrcmem.c"
Enter PICC -HELP for help
This compiler will expire in 20 days

Linking:
Command line: "C:HT-PICBINPICC.EXE -FAKELOCAL -G -Mtu1free.map -E -16C77 -oTU1FREE.HEX salvo ut u1main.obj
salvosrcmem.obj salvolibSFP42CMB.lib "
Enter PICC -HELP for help
This compiler will expire in 20 days

Memory Usage Map:

Program ROM $0000 - $001B $001C ( 28) words
Program ROM $0782 - $07FF $007E ( 126) words
$009A ( 154) words total Program ROM

Bank 0 RAM $0020 - $0025 $0006 ( 6) bytes
Bank 0 RAM $0070 - $0071 $0002 ( 2) bytes
$0008 ( 8) bytes total Bank 0 RAM

Bank 1 RAM $00A0 - $00A9 $000A ( 10) bytes total Bank 1 RAM


Program statistics:

Total ROM used 154 words (1.9%)
Total RAM used 16 bytes (4.3%)


Build completed successfully.


We'll update AN-17 to indicate that all source files (e.g. main.c, isr.c and salvomem.c) that #include "salvo.h" need to have the symbols added to them ...


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

[This message has been edited by aek (edited July 13, 2002).]

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

Re: Salvo link errors with PICC

Postby mflores » Sat Jul 13, 2002 6:23 am

MPLAB 5.50, PICC Demo and Salvo Demo.

¿Why do i get this issues ?. It's like if those symbols were defined several times.

King regards,
MFR


MPlab result excerpt:

Linking:
Command line: "C:HT-PICBINPICC.EXE -FAKELOCAL -G -Mtu1free.map -E -16C77 -oTU1FREE.HEX -mplab salvo ut u1main.obj salvosrcmem.obj salvolibSFP42CMB.lib "
Error[000] salvolibSFP42CMB.lib(mem.obj) 8 : multiply defined symbol: _OScTcbP (salvosrcmem.obj)
Error[000] salvolibSFP42CMB.lib(mem.obj) 8 : multiply defined symbol: _OStcbArea (salvosrcmem.obj)
Error[000] salvolibSFP42CMB.lib(mem.obj) 8 : multiply defined symbol: _OSeligQP (salvosrcmem.obj)
Error[000] salvolibSFP42CMB.lib(mem.obj) 8 : multiply defined symbol: _OScTcbP (salvosrcmem.obj)
Error[000] salvolibSFP42CMB.lib(mem.obj) 8 : multiply defined symbol: _OStcbArea (salvosrcmem.obj)
Error[000] salvolibSFP42CMB.lib(mem.obj) 8 : multiply defined symbol: _OSeligQP (salvosrcmem.obj)
Error[000] : undefined symbol:
Error[000] : _Init (salvo ut u1main.obj)

mflores
 
Posts: 9
Joined: Fri Jul 12, 2002 11:00 pm

Re: Salvo link errors with PICC

Postby mflores » Sat Jul 13, 2002 7:20 am

Better say to define that symbols in salvo.h

Ok, you got me. It links properly with it.

It's no lack on programing, only is first approach to something new and what you expect is that all things run exactly as the AN's say.

Your support is, by the way, just perfect.

Thanks a lot, i'm going to read now the manual of your, for now, excellent tool.

Best regards,
MFlores.

mflores
 
Posts: 9
Joined: Fri Jul 12, 2002 11:00 pm

Re: Salvo link errors with PICC

Postby aek » Sat Jul 13, 2002 7:33 am

Hello.

Looks like the symbols SYSA and MAKE_WITH_FREE_LIB are not defined. See Step 4 in AN-17 for more info.

Regards,

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

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

Re: Salvo link errors with PICC

Postby mflores » Sat Jul 13, 2002 10:09 am

Hello,

Even I write these defines, it doesn't work.

I'm in the salvo/tut/tut6 demo files, I've done the .h copy to the include's PICC folder, and think I've done exactly what the AN's says, but always get the same errors, even with other tut/tutx files.

Finally, I've tried with those in demo/d4 folders, and you're right, if I don't define the labels you told me in the isr.c, I get :

Error[000] : undefined symbol:
Error[000] : _Init (salvodemod4main.obj)

but, this is different from my first message, even if don't define them in the main.c, I get:

Error[000] salvodemod4main.c 139 : undefined identifier: ADCON1_INIT
Error[000] salvodemod4main.c 140 : undefined identifier: ADCON0_INIT

and others, but is completely different from the:

Error[000] salvolibSFP42CAB.lib(mem.obj) 8 : multiply defined symbol: _OSecbArea (salvosrcmem.obj)
Error[000] salvolibSFP42CAB.lib(mem.obj) 8 : multiply defined symbol: _OSdelayQP (salvosrcmem.obj)

when i try to link the tut/tut6 files.

¿ Any more ideas ?

PD: Finally I could try with the demo/d4 file. But I like to know what happend with the others because is so stresful don't know if i could cope with these tools.

Regards,
MFlores

mflores
 
Posts: 9
Joined: Fri Jul 12, 2002 11:00 pm

Re: Salvo link errors with PICC

Postby aek » Sun Jul 14, 2002 1:24 am

Hello.

Unfortunately putting the symbols in salvo.h won't work because some (Salvo) projects do this:

code:
#include "projectname.h"
#include "salvo.h"

and the symbols need to be set before projectname.h is included.

Anyway, I've updated AN-17 in PDF and HTML with a new method for doing all this, with in-depth examples for PICC and PICC-18 demo compilers.

Regards.

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

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

Re: Salvo link errors with PICC

Postby aek » Sun Jul 14, 2002 1:25 am

quote:
Thanks a lot, i'm going to read now the manual of your, for now (italics added), excellent tool.

Yee of little faith ...

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

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


Return to Configuration

Who is online

Users browsing this forum: No registered users and 3 guests

cron