Pumpkin, Inc.

Pumpkin User Forums

MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

For issues specific to Microchip's PICmicro® MCUs, including compilers (e.g. HI-TECH PICC & PICC-18, Microchip MPLAB®-C18) and IDEs (e.g. Microchip MPLAB®).

MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby Dan » Thu Jan 01, 2004 3:24 am

Hi all,
I have a functioning MPLab6.4,HTpicc18-C
environment. I have installed Salvo lite. I haven't been able to get any example or tut to compile. I am currently trying to get ex1lite to compile. Here is the current output
"
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"c: emp" -I"c:Progra~1salvoinc" -I"c:progra~1salvoexex1sysf" -Q -MPLAB -18C452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -E"ex1lite.lde" "C:Program Filessalvoexex1main.obj" "C:Program Filessalvolibhtpicc18sfp86sab.lib" -Q -MPLAB -18C452 -M"ex1lite.map" -W-9 -O"ex1lite.cof"
Warning[000] : function copy_data is never called
Warning[000] : function copy_big is never called
Error[000] : undefined symbols:
Error[000] : _OSsigQoutP (C:Program Filessalvolibhtpicc18sfp86sab.lib: binsem.obj)
Error[000] : _OSecbArea (C:Program Filessalvoexex1main.obj)
Error[000] : _OStcbArea (C:Program Filessalvoexex1main.obj)
Error[000] : _OSeligQP (C:Program Filessalvolibhtpicc18sfp86sab.lib: init.obj)
Error[000] : _OStimerTicks (C:Program Filessalvolibhtpicc18sfp86sab.lib: delay.obj)
Error[000] : _OScTcbP (C:Program Filessalvolibhtpicc18sfp86sab.lib: delay.obj)
Error[000] : _OSlostTicks (C:Program Filessalvolibhtpicc18sfp86sab.lib: init.obj)
Error[000] : _OSdelayQP (C:Program Filessalvolibhtpicc18sfp86sab.lib: delay.obj)
Error[000] : _OSsigQinP (C:Program Filessalvolibhtpicc18sfp86sab.lib: binsem.obj)
BUILD FAILED: Thu Jan 01 15:16:31 2004
"
My target is the picdem2 plus board using icd2(works fine for asm and ht C samples). I have selected the 18f452 as the target. and am using sfp86sab.lib
ex1lite.mcp contains the following
main.c
main.h
salvocfg.h
sfp86sab.lib
what am I missing?
Dan
 
Posts: 7
Joined: Thu Jan 01, 2004 12:00 am
Location: Portola Valley,CA USA

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby aek » Thu Jan 01, 2004 5:17 am

Hi Dan
quote:
what am I missing?
You're missing salvosrcmem.c. Mem.c needs to be part of each Salvo project, because that's where the various Salvo objects like OSSigQoutP are located ...

This may be due to your having installed Salvo to Program FilesSalvo instead of just Salvo ... when the project was opened, it couldn't find salvosrcmem.c.

Happy New Year!

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

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

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby Dan » Thu Jan 01, 2004 5:28 am

AEK Thanks for the speedy reply.
I tried adding salvo/src/mem.c. before I asked for help.
Here is the build output when I add mem.c to the project.
"
Deleting intermediary files... done.
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"c: emp" -I"c:Progra~1salvoinc" -I"c:progra~1salvoexex1sysf" -Q -MPLAB -18F452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"mem.cce" "mem.c" -O"mem.obj" -I"c: emp" -I"c:Progra~1salvoinc" -I"c:progra~1salvoexex1sysf" -Q -MPLAB -18F452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -E"ex1lite.lde" "C:Program Filessalvoexex1main.obj" "C:Program Filessalvosrcmem.obj" "C:Program Filessalvolibhtpicc18sfp86sab.lib" -Q -MPLAB -18F452 -M"ex1lite.map" -W-9 -O"ex1lite.cof"
Warning[000] : function copy_data is never called
Warning[000] : function copy_big is never called
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(binsem.obj) 23 : Fixup overflow referencing symbol _OSsigQoutP (loc 0x66E (0x666+8), size 1, value 0x5E4)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(binsem.obj) 23 : Fixup overflow referencing symbol _OSsigQoutP (loc 0x670 (0x666+10), size 1, value 0x5E3)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(binsem.obj) 23 : Fixup overflow referencing symbol _OSsigQinP (loc 0x684 (0x666+30), size 1, value 0x5E1)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(binsem.obj) 23 : Fixup overflow referencing symbol _OSsigQinP (loc 0x688 (0x666+34), size 1, value 0x5E2)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(delay.obj) 14 : Fixup overflow referencing symbol _OScTcbP (loc 0x7F0 (0x7B0+64), size 1, value 0x5DB)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(delay.obj) 14 : Fixup overflow referencing symbol _OScTcbP (loc 0x7F4 (0x7B0+68), size 1, value 0x5DC)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(delay.obj) 14 : Fixup overflow referencing symbol _OStimerTicks (loc 0x7FC (0x7B0+76), size 1, value 0x5E5)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(delay.obj) 14 : Fixup overflow referencing symbol _OScTcbP (loc 0x80E (0x7B0+94), size 1, value 0x5DB)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(delay.obj) 14 : Fixup overflow referencing symbol _OScTcbP (loc 0x812 (0x7B0+98), size 1, value 0x5DC)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSeligQP (loc 0x8CC (0x8CA+2), size 1, value 0x5DF)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSeligQP (loc 0x8CE (0x8CA+4), size 1, value 0x5E0)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OScTcbP (loc 0x8D0 (0x8CA+6), size 1, value 0x5DB)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OScTcbP (loc 0x8D2 (0x8CA+8), size 1, value 0x5DC)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSdelayQP (loc 0x8D4 (0x8CA+10), size 1, value 0x5DD)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSdelayQP (loc 0x8D6 (0x8CA+12), size 1, value 0x5DE)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSlostTicks (loc 0x8D8 (0x8CA+14), size 1, value 0x5DA)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OStimerTicks (loc 0x8DA (0x8CA+16), size 1, value 0x5E5)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OStimerTicks (loc 0x8DC (0x8CA+18), size 1, value 0x5E6)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OStimerTicks (loc 0x8DE (0x8CA+20), size 1, value 0x5E7)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OStimerTicks (loc 0x8E0 (0x8CA+22), size 1, value 0x5E8)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSsigQinP (loc 0x8E2 (0x8CA+24), size 1, value 0x5E1)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSsigQinP (loc 0x8E4 (0x8CA+26), size 1, value 0x5E2)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSsigQoutP (loc 0x8E6 (0x8CA+28), size 1, value 0x5E3)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(init.obj) 13 : Fixup overflow referencing symbol _OSsigQoutP (loc 0x8E8 (0x8CA+30), size 1, value 0x5E4)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Fixup overflow referencing symbol _OSsigQoutP (loc 0x23A (0x232+8), size 1, value 0x5E4)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Fixup overflow referencing symbol _OSsigQoutP (loc 0x23C (0x232+10), size 1, value 0x5E3)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Fixup overflow referencing symbol _OScTcbP (loc 0x24E (0x232+28), size 1, value 0x5DB)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Fixup overflow referencing symbol _OScTcbP (loc 0x252 (0x232+32), size 1, value 0x5DC)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Fixup overflow referencing symbol _OScTcbP (loc 0x262 (0x232+48), size 1, value 0x5DB)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Fixup overflow referencing symbol _OScTcbP (loc 0x266 (0x232+52), size 1, value 0x5DC)
Error[000] C:Program Filessalvolibhtpicc18sfp86sab.lib(sched.obj) 18 : Too many errors
BUILD FAILED: Thu Jan 01 17:21:19 2004

"
All help is appreciated

Dan

Dan
 
Posts: 7
Joined: Thu Jan 01, 2004 12:00 am
Location: Portola Valley,CA USA

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby Dan » Fri Jan 02, 2004 1:56 am

OK,
Well I am learning alot.
Changing the lib did get the tuts to run.

In your first post you mentioned that the salvo install expected to be installed at the disk root.
I.E. c:salvo...
I just deinstalled salvo from c:Program Filessalvo... and reinstalled Salvo to c:salvo... and life is much better. FOr reasons beyond my understanding various files such as mem.c, main.h were being stripped from the project and I had to fumble around finding and guessing at where there were and whether they were needed.

After the reinstall all the tut projects are compiling just fine.

Thanks again for your outstanding support.

Dan
 
Posts: 7
Joined: Thu Jan 01, 2004 12:00 am
Location: Portola Valley,CA USA

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby Dan » Fri Jan 02, 2004 2:19 am

Oops, I spoke to soon.
I have compiled tuts 1-6 and ex1.
I just tried to compile demo d4, If I don't chose a device I.E. device is 18c452 and leave the library alone the program compiles. If I select 18F452 and sfp86ldb I get the following error
"
Deleting intermediary files... done.
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"salvodemod4sysf" -I"salvodemod4sysf......inc" -Q -MPLAB -18F452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB
Error[000] C:DOCUME~1PutmanLOCALS~1Temp\_I8.AAB 60 : undefined symbol EC
Halting build on first failure as requested.
BUILD FAILED: Fri Jan 02 14:15:07 2004
"
Thanks again for any help.

Dan
 
Posts: 7
Joined: Thu Jan 01, 2004 12:00 am
Location: Portola Valley,CA USA

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby aek » Fri Jan 02, 2004 6:09 am

quote:
Error[000] C:DOCUME~1PutmanLOCALS~1Temp\_I8.AAB 60 : undefined symbol EC
No idea -- that's not a Salvo thing -- perhaps you've run out of temp space?

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

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

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby aek » Fri Jan 02, 2004 8:54 am

Ah ... you always need mem.c.

Your problem may be that you have specified a small-memory-model library (sfp86sab.lib), but PICC defaults to the large memory model. A mismatch will cause problems.

I will try your exact config later and get back to you ...

One thing that's not clear from your post -- did you build your project from scratch, or did you modify an existing one? Either way, does the default (i.e. as-installed) project build successfully on your PC?

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

[This message has been edited by aek (edited January 02, 2004).]

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

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby aek » Fri Jan 02, 2004 12:13 pm

Hi Dan.

OK, it turns out that the small model is the default under PICC-18 v8.3x and MPLAB v6.4x ... I'm pretty sure that the large model used to be the default.

Anyway, I am able to reproduce your problem (sfp86sab.lib, small model) ... and I'm not yet sure what the problem is ...

Use sfp86lab.lib with the large model (under PICC-18's Global build options) and you'll get a successful compile & link ...

code:
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"SALVOEXEX1SYSF" -I"SALVOEXEX1SYSF......inc" 
-Q -MPLAB -18F452 -Bl -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -C -E"mem.cce" "mem.c" -O"mem.obj" -I"SALVOEXEX1SYSF" -I"SALVOEXEX1SYSF......inc"
-Q -MPLAB -18F452 -Bl -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -E"ex1lite.lde" "C:salvoexex1main.obj" "C:salvosrcmem.obj" "C:salvolibhtpicc18sfp86lab.lib"
-Q -MPLAB -18F452 -Bl -M"ex1lite.map" -W-9 -O"ex1lite.cof"

Memory Usage Map:

Program ROM $000000 - $000003 $000004 ( 4) bytes
Program ROM $000008 - $000991 $00098A ( 2442) bytes
$00098E ( 2446) bytes total Program ROM

RAM data $0000F6 - $0000FF $00000A ( 10) bytes
RAM data $0005BD - $0005FF $000043 ( 67) bytes
$00004D ( 77) bytes total RAM data

Near RAM $000000 - $00000F $000010 ( 16) bytes total Near RAM
ROM data $000004 - $000004 $000001 ( 1) bytes total ROM data


Program statistics:

Total ROM used 2447 bytes (7.5%)
Total RAM used 93 bytes (6.1%) Near RAM used 16 bytes (12.5%)

Warning[000] : function copy_data is never called
Warning[000] : function copy_big is never called
Loaded C:salvoexex1sysfex1lite.cof
BUILD SUCCEEDED: Fri Jan 02 12:16:42 2004


I'll delve into why this small-memory-model lib doesn't appear to be built correctly ...

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

[This message has been edited by aek (edited January 02, 2004).]

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

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby Dan » Fri Jan 02, 2004 12:28 pm

Ok,
changing to sfp86lab.lib creates a clean build that runs fine. Thank you.
Sorry to be a pest, I am now trying to work my way through the tutorials and then the demos. using your previous advice I.E. add mem.c, use large model. I am still getting the following build errors from tu1.
"
Deleting intermediary files... done.
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"isr.cce" "isr.c" -O"isr.obj" -I"c: emp" -I"C:Progra~1salvo ut u1"
-I"C:Progra~1salvo ut u1sysf" -I"C:Progra~1salvoinc" -Q -MPLAB -18C452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"c: emp" -I"C:Progra~1salvo ut u1"
-I"C:Progra~1salvo ut u1sysf" -I"C:Progra~1salvoinc" -Q -MPLAB -18C452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -C -E"mem.cce" "mem.c" -O"mem.obj" -I"c: emp" -I"C:Progra~1salvo ut u1"
-I"C:Progra~1salvo ut u1sysf" -I"C:Progra~1salvoinc" -Q -MPLAB -18C452 -Zg9 -O -DSYSF -DMAKE_WITH_FREE_LIB -ASMLIST
Executing: "C:Program FilesHTSOFTPIC18BINPICC18.EXE" -E"tu1lite.lde" "C:Program Filessalvo ut u1isr.obj" "C:Program Filessalvo ut u1main.obj"
"C:Program Filessalvosrcmem.obj" "C:Program Filessalvolibhtpicc18sfp86lab.lib" -Q -MPLAB -18C452 -M"tu1lite.map" -W-9 -O"tu1lite.cof"
Error[000] : undefined symbols:
Error[000] : _OSsigQoutP (C:Program Filessalvolibhtpicc18sfp86lab.lib: init.obj)
Error[000] : _OSlostTicks (C:Program Filessalvolibhtpicc18sfp86lab.lib: init.obj)
Error[000] : _OSdelayQP (C:Program Filessalvolibhtpicc18sfp86lab.lib: init.obj)
Error[000] : _OSsigQinP (C:Program Filessalvolibhtpicc18sfp86lab.lib: init.obj)
BUILD FAILED: Fri Jan 02 12:07:56 2004

"
Thanks again for your help.
Dan

[This message has been edited by aek (edited January 02, 2004).]

Dan
 
Posts: 7
Joined: Thu Jan 01, 2004 12:00 am
Location: Portola Valley,CA USA

Re: MPlab6.4/HTpicc18/Salvolite 3.23 install ? problem

Postby aek » Fri Jan 02, 2004 12:55 pm

OK, Pest.

The problem you're seeing is that you're using an a-config library on tutorials that don't need that, and whose salvocfg.h's are set for "lesser" libraries.

E.g. tut u1 only needs (and expects) an m-config library (see salvocfg.h's OSLIBRARY_CONFIG = OSM). Linking in an a-config library like sfp86lab.lib causes problems -- you need sfp86lmb.lib instead.
IIRC, tu2 & tu3 needs m's, tu4 needs an e, and tu5 & tu6 need a's.

The tutorials are set up to use the minimum-size library so as to build the minimally-size apps, btw.

So, when linking in a library, ensure that its config and variant match those of the project's salvocfg.h.

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

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

Next

Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron