Pumpkin, Inc.

Pumpkin User Forums

running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

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

running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby atabac_2000 » Mon May 03, 2004 5:31 am

after running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

i got these output:

Deleting intermediary files... done.
Executing: "C:HT-PICBINPICC.EXE" -C -E"main.cce" "main.c" -O"main.obj" -I"C:HT-PICinclude" -Q -MPLAB -16F877
Compiler operating in demo mode.
Some command line options are disabled and compilation is delayed.
Register this compiler to enable these options.

Warning[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.c 105 : function declared implicit int
Executing: "C:HT-PICBINPICC.EXE" -E"ht_salvo.lde" "C:WINDOWSProfilesalexMy Documentsht_salvomain.obj" -Q -MPLAB -16F877 -M"ht_salvo.map" -O"ht_salvo.hex"
Compiler operating in demo mode.
Some command line options are disabled and compilation is delayed.
Register this compiler to enable these options.

Error[000] : undefined symbols:
Error[000] : _OSecbArea (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OStcbArea (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSWaitMsg (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSSetPrio (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSInit (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : ?_OSWaitMsg (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : ?_OSSaveRtnAddr (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSCreateTask (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : ?_OSDelay (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSSaveRtnAddr (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSSched (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : ?_OSSignalMsg (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSDelay (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSCreateMsg (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] : _OSSignalMsg (C:WINDOWSProfilesalexMy Documentsht_salvomain.obj)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 64 : Fixup overflow in expression (loc 0xE36 (0xE04+50), size 1, value 0x100)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 68 : Fixup overflow in expression (loc 0xE94 (0xE62+50), size 1, value 0x100)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 72 : Fixup overflow in expression (loc 0xF96 (0xF64+50), size 1, value 0x100)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 76 : Fixup overflow in expression (loc 0xFDC (0xFDA+2), size 1, value 0x100)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 79 : Fixup overflow in expression (loc 0xEFC (0xEE2+26), size 1, value 0x100)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 79 : Fixup overflow in expression (loc 0xF16 (0xEE2+52), size 1, value 0x107)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 81 : Fixup overflow in expression (loc 0xF30 (0xF1C+20), size 1, value 0x10E)
Error[000] C:WINDOWSProfilesalexMy Documentsht_salvomain.obj 81 : Fixup overflow in expression (loc 0xF44 (0xF1C+40), size 1, value 0x100)
BUILD FAILED: Tue May 04 09:34:56 2004

can anyone help me solve this?

atabac_2000
 
Posts: 10
Joined: Sun Dec 14, 2003 12:00 am
Location: Antipolo, Rizal, Philippines

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby aek » Mon May 03, 2004 5:49 am

Alex.

Please make sure you have the latest Salvo distribution and you've reviewed App Note AN-26.

You're missing mem.c, among other problems.

Also, with the HI-TECH demo compilers you must do a few additional things -- see App Note AN-17.

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

[This message has been edited by aek (edited May 03, 2004).]

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

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby atabac_2000 » Mon May 03, 2004 6:16 am

quote:
Originally posted by aek:
Alex.

Please make sure you have the latest Salvo distribution and you've reviewed App Note AN-26.

You're missing mem.c, among other problems.

Also, with the HI-TECH demo compilers you must do a few additional things -- see App Note AN-17.


ok that's why, can the sample prog cited on AN-26 be successfully compile using the Salvo Lite and PICC/PICC18 but both in demo version (will it be complete)?

atabac_2000
 
Posts: 10
Joined: Sun Dec 14, 2003 12:00 am
Location: Antipolo, Rizal, Philippines

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby aek » Mon May 03, 2004 7:51 am

quote:
can the sample prog cited on AN-26 be successfully compile using the Salvo Lite and PICC/PICC18 but both in demo version (will it be complete)?
Yes.

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

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

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby atabac_2000 » Mon May 03, 2004 9:35 am

quote:
Originally posted by aek:
[QUOTE]can the sample prog cited on AN-26 be successfully compile using the Salvo Lite and PICC/PICC18 but both in demo version (will it be complete)?
Yes.

[/QUOTE]

It seems that I'm having a problem somwhere:

I used main.c(from ex1), mem.c(from source), salvocfg.h(from ...ex1sysf). and sfp801ab.lib. I followed the settings from an-26

but still here are the errors:
Error[000] C:salvolibhtpicc18sfp80lab.lib(binsem.obj) 14 : signatures do not match: _OSWaitBinSem (C:salvolibhtpicc18sfp80lab.lib: binsem.obj): 0x1069/0x2069
Error[000] C:salvolibhtpicc18sfp80lab.lib(sched.obj) 15 : signatures do not match: _OSSched (C:salvolibhtpicc18sfp80lab.lib: sched.obj): 0x58/0x42
Error[000] C:salvolibhtpicc18sfp80lab.lib(timer.obj) 13 : signatures do not match: _OSTimer (C:salvolibhtpicc18sfp80lab.lib: timer.obj): 0x49/0x42

~~~Something ODD that I did as how I've understood an-26:
1. i added SYSF and MAKE_WITH_FREE_LIB at the MACRO DEFINITION(Build Options)

2. And also typed
#define SYSF
#define MAKE_WITH_FREE_LIB
in the main.h...if i remove that I get:
Error[000] C:WINDOWSProfilesalexMy Documents empmain.h 228 : #error: Undefined Salvo test system (SYS*). Definition required.


can you tell me what steps I missed? or better if you could give me an outline on how to run ex1, I cant get exactly from what an-26 say, there are some blurred areas I cannot understand

atabac_2000
 
Posts: 10
Joined: Sun Dec 14, 2003 12:00 am
Location: Antipolo, Rizal, Philippines

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby aek » Mon May 03, 2004 10:11 am

It's hard to tell what is the source of your problem ... I suspect you're not picking up the salvocfg.h you think you're using in the project.

Since you're having some difficulty, rather than starting by building your own project, I'd suggest you start with the existing salvoexex1ex1lite.mcp and then do the extra steps outlined in AN-17 to get it to build.

ex1lite.mcp builds fine with the full version of PICC-18 ... so you can use the fact that ex1lite.mcp is "known good", and now just do the extra steps to get it to work with the PICC-18 demo compiler, which doesn't support include paths or defined symbols on the command line (and therefore the MPLAB project settings for include paths and defined symbosl don't work, either).

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

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

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby aek » Mon May 03, 2004 10:13 am

For ex1, I think you can put
code:
#define SYSF TRUE
#define MAKE_WITH_FREE_LIB TRUE

directly in your salvocfg.h and that should affect all the files properly (because salvo.h includes salvocfg.h).

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

[This message has been edited by aek (edited May 03, 2004).]

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

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby atabac_2000 » Tue May 04, 2004 1:23 am

thanks to aek,

I ran tut6 in MPLAB v6.42 using PICC18(demo) and it work. But I still needed to define SYS* inside the main.h aside from defining SYS* and MAKE_WITH_FREE_LIB inside salvocfg.h before I made it work.

Now its compiling successfully. thanks again

atabac_2000
 
Posts: 10
Joined: Sun Dec 14, 2003 12:00 am
Location: Antipolo, Rizal, Philippines

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby aek » Tue May 04, 2004 6:13 am

Yes -- the tutorial projects have the ISR code in a separate module (isr.c), and they'll need to have SYSF defined in main.h.

Ex1 has just one source file (main.c), and so it's sufficient to define SYSF in main.c.

Adding SYSF etc. #defines to salvocfg.h and/or main.h is only required when using the PICC / PICC-18 demo compilers.For full-version compilers, the supplied projects already have the symbols defined in the MPLAB projects.

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

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

Re: running tutorial6 using HI-TECH PICC demo and MPLAB v6.42

Postby atabac_2000 » Tue May 04, 2004 11:16 am

quote:
Originally posted by aek:
For ex1, I think you can put
code:
#define SYSF TRUE
#define MAKE_WITH_FREE_LIB TRUE

directly in your salvocfg.h and that should affect all the files properly (because salvo.h includes salvocfg.h).



il try, thank you very much=)

atabac_2000
 
Posts: 10
Joined: Sun Dec 14, 2003 12:00 am
Location: Antipolo, Rizal, Philippines


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron