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®).

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

Postby aek » Sat Jan 03, 2004 9:16 am

quote:
If I select 18F452 and sfp86ldb I get the following error
AND change OSLIBRARY_CONFIG to OSD ...

Also, note that the salvocfg.h's of the tutorial and example programs are read-only as installed by the installer -- that may be causing you some trouble.

Lastly, be ** very ** careful when Save As ...'ing from MPLAB -- its "links" to header (.h) files in a project do not behave as you might expect.

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

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

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

Postby aek » Mon Jan 05, 2004 6:03 am

Hi Dan.

I found out why you (and I) weren't able to build successfully with the small-model libraries ...

It's critically important that MPLAB v6.4 reference the PICC18 Plug-in Suite DLL dated November 9, 2003 (size: 228KB). This is the one currently available on the HI-TECH website.

In my case, MPLAB was referencing Suite_HITECH18.dll in htsoftpic18, but it was old (and bigger). Downloading and installing the new one put the new Suite_HITECH18.dll in htsoftpic18, and now it builds successfully. The old Suite wasn't driving the small model / large model switches properly, and seemed to have the small model as the default.

You can see which suite MPLAB is referencing under Help -> About MPLAB IDE, selecting Suite_HITECH18 and inspecting the module path.

code:
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -C -E"mem.cce" "mem.c" -O"mem.obj" -I"SALVOTUTTU5SYSF" -I"SALVOTUTTU5SYSF....	u1" -I"SALVOTUTTU5SYSF......inc"
-Q -MPLAB -18F452 -Bs -Zg9 -O -DSYSF -DMAKE_WITH_STD_LIB -DUSE_INTERRUPTS -ASMLIST
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -C -E"isr.cce" "isr.c" -O"isr.obj" -I"SALVOTUTTU5SYSF" -I"SALVOTUTTU5SYSF.... u1" -I"SALVOTUTTU5SYSF......inc"
-Q -MPLAB -18F452 -Bs -Zg9 -O -DSYSF -DMAKE_WITH_STD_LIB -DUSE_INTERRUPTS -ASMLIST
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"SALVOTUTTU5SYSF" -I"SALVOTUTTU5SYSF.... u1" -I"SALVOTUTTU5SYSF......inc"
-Q -MPLAB -18F452 -Bs -Zg9 -O -DSYSF -DMAKE_WITH_STD_LIB -DUSE_INTERRUPTS -ASMLIST
Executing: "C:HTSOFTPIC18BINPICC18.EXE" -E"tu5le.lde" "C:salvosrcmem.obj" "C:salvo ut u1isr.obj" "C:salvo ut u5main.obj" "C:salvolibhtpicc18slp86sab.lib"
-Q -MPLAB -18F452 -Bs -M"tu5le.map" -FAKELOCAL -O"tu5le.cof"

Memory Usage Map:

Program ROM $000000 - $000003 $000004 ( 4) bytes
Program ROM $000008 - $0008F3 $0008EC ( 2284) bytes
$0008F0 ( 2288) bytes total Program ROM

RAM data $0000F6 - $0000FF $00000A ( 10) bytes
RAM data $0005E4 - $0005FF $00001C ( 28) bytes
$000026 ( 38) bytes total RAM data

Near RAM $000000 - $000037 $000038 ( 56) bytes total Near RAM


Program statistics:

Total ROM used 2288 bytes (7.0%)
Total RAM used 94 bytes (6.1%) Near RAM used 56 bytes (43.8%)

Loaded C:salvo ut u5sysf u5le.cof
BUILD SUCCEEDED: Mon Jan 05 18:09:06 2004


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

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

-------
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 29, 2004 1:22 am

with
quote:
Originally posted by aek:
[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?

[/QUOTE]

I finally tracked this down. The problem turned out to be that in main.h you have the following

"#elif defined(SYSF)

#include <pic18.h>

__CONFIG(1, EC & UNPROTECT);
"
only P18F452.INC now uses _EC_OSC_1 and there is no backward compatibility equate.

I changed EC to _EC_OSC_1 in main.h it now compiles and runs fine.

Regards,
Dan


[This message has been edited by Dan (edited January 29, 2004).]

[This message has been edited by Dan (edited January 30, 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 30, 2004 7:18 am

Hi Dan.

Thanks for the update -- but I think you mean SYSF, not SYSP (SYSP is for the IAR PIC18 C compiler).

Regards,

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

[This message has been edited by aek (edited January 30, 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 30, 2004 9:09 am

Oh blush,
I will clean my glasses next time.
I have edited my last message accordingly.

Regards,

Dan

quote:
Originally posted by aek:
Hi Dan.

Thanks for the update -- but I think you mean SYSF, not SYSP (SYSP is fot the IAR PIC18 C compiler).

Regards,


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

Previous

Return to PICmicro MCUs

Who is online

Users browsing this forum: Google [Bot] and 3 guests

cron