Pumpkin, Inc.

Pumpkin User Forums

problem executing demo 5

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

problem executing demo 5

Postby aek » Thu Apr 05, 2007 1:33 am

Need to see your salvocfg.h ...

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

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

Re: problem executing demo 5

Postby dinno » Thu Apr 05, 2007 1:42 am

quote:
Originally posted by aek:
Need to see your salvocfg.h ...


here RECEIVERS =2
salvocfg.h


/************************************************************
Copyright (C) 1995-2002 Pumpkin, Inc. and its
Licensor(s). Freely distributable.

$Source: C:\RCS\D\salvo\demo\d5\sysa\salvocfg.h,v $
$Author: aek $
$Revision: 1.4 $
$Date: 2001-08-31 14:22:31-07 $

Configuration options for demo program. Works for 1-4
transmitters and 1-4 receivers. Must be modified for 0
transmitters and/or 0 receivers.

************************************************************/

#if defined(MAKE_WITH_STD_LIB) || defined(MAKE_WITH_FREE_LIB)

#define OSUSE_LIBRARY TRUE
#if defined(MAKE_WITH_FREE_LIB)
#define OSLIBRARY_TYPE OSF
#elif defined(MAKE_WITH_STD_LIB)
#define OSLIBRARY_TYPE OSL
#endif

#define OSLIBRARY_CONFIG OSA
#define OSLIBRARY_VARIANT OSA

#define OSEVENTS 3
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0

#include "d5.h"
#define OSTASKS 2+RECEIVERS

#endif


dinno
 
Posts: 5
Joined: Wed Apr 04, 2007 11:00 pm
Location: india

Re: problem executing demo 5

Postby aek » Thu Apr 05, 2007 1:52 am

Change it to
code:

#define OSUSE_LIBRARY TRUE
#define OSLIBRARY_TYPE OSL
#define OSLIBRARY_CONFIG OSA
#define OSLIBRARY_VARIANT OSA

#define OSEVENTS 3
#define OSEVENT_FLAGS 0
#define OSMESSAGE_QUEUES 0

#define OSTASKS 2+RECEIVERS


and tell me what happens ...

Usually the problem you are experiencing is that you are linking to a library that does not match what the salvocfg.h is asking for -- in this case, it should be an 'aa' library.

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

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

Re: problem executing demo 5

Postby dinno » Thu Apr 05, 2007 11:36 am

i am new to salvo...was trying to compile the tutorials and demos...all of them worked except demo 5....plz give pointers whats the prob ..i am getting the error

Deleting intermediary files... done.
Executing: "C:HT-PICBINPICC.EXE" -C -E"buff.cce" "buff.c" -O"buff.obj" -I"C:salvodemod5sysa" -I"C:salvodemod5sysa....d5" -I"C:salvodemod5sysa......inc" -Q -MPLAB -16F877 -G
Executing: "C:HT-PICBINPICC.EXE" -C -E"int.cce" "int.c" -O"int.obj" -I"C:salvodemod5sysa" -I"C:salvodemod5sysa....d5" -I"C:salvodemod5sysa......inc" -Q -MPLAB -16F877 -G
Warning[000] C:salvodemod5sysaNew Folderint.c 40 : function declared implicit int
Error[000] C:salvodemod5sysaNew Folderint.c 40 : undefined identifier: OSecbArea
Error[000] C:salvodemod5sysaNew Folderint.c 40 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 40 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 132 : undefined identifier: OSecbArea
Error[000] C:salvodemod5sysaNew Folderint.c 132 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 132 : pointer required
Warning[000] C:salvodemod5sysaNew Folderint.c 132 : illegal conversion between pointer types
Error[000] C:salvodemod5sysaNew Folderint.c 157 : undefined identifier: OStcbArea
Error[000] C:salvodemod5sysaNew Folderint.c 157 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 157 : pointer required
Warning[000] C:salvodemod5sysaNew Folderint.c 157 : illegal conversion between pointer types
Error[000] C:salvodemod5sysaNew Folderint.c 167 : undefined identifier: OStcbArea
Error[000] C:salvodemod5sysaNew Folderint.c 167 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 167 : pointer required
Warning[000] C:salvodemod5sysaNew Folderint.c 167 : illegal conversion between pointer types
Error[000] C:salvodemod5sysaNew Folderint.c 220 : undefined identifier: OSecbArea
Error[000] C:salvodemod5sysaNew Folderint.c 220 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 220 : pointer required
Warning[000] C:salvodemod5sysaNew Folderint.c 220 : illegal conversion between pointer types
Error[000] C:salvodemod5sysaNew Folderint.c 221 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 221 : pointer required
Warning[000] C:salvodemod5sysaNew Folderint.c 221 : illegal conversion between pointer types
Error[000] C:salvodemod5sysaNew Folderint.c 222 : pointer required
Error[000] C:salvodemod5sysaNew Folderint.c 222 : pointer required
Halting build on first failure as requested.
BUILD FAILED: Fri Apr 06 01:03:54 2007


i am using hitec picc/mplab 6.2/salvo-lite-pic-3.2.3

any help is greatly appreciated

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

dinno
 
Posts: 5
Joined: Wed Apr 04, 2007 11:00 pm
Location: india

Re: problem executing demo 5

Postby aek » Thu Apr 05, 2007 11:41 am

missing mem.c.

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

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

Re: problem executing demo 5

Postby dinno » Thu Apr 05, 2007 11:58 am

thanks for such a fast responce..but..still the error after including mem.c...i have changed d5.h and main.h for 2TX and 2RX.thats the only change i have done...
mplab project that i have created is

[HEADER]
magic_cookie={66E99B07-E706-4689-9E80-9B2582898A13}
file_version=1.0
[PATH_INFO]
dir_src=
dir_out=C:salvodemod5sysa
dir_tmp=
dir_sin=
dir_inc=$(BINDIR);$(BINDIR)....d5;$(BINDIR)......inc;$(BINDIR)......src
dir_lib=
dir_lkr=
[CAT_FILTERS]
filter_src=*.as;*.c
filter_inc=*.h;
filter_obj=*.obj
filter_lib=*.lib
filter_lkr=
[FILE_INFO]
file_000=C:salvodemod5uff.c
file_001=C:salvodemod5int.c
file_002=C:salvodemod5main.c
file_003=C:salvodemod5swrxuart.c
file_004=C:salvodemod5swtxuart.c
file_005=C:salvosrcmem.c
file_006=C:salvodemod5main.h
file_007=d5.h
file_008=salvocfg.h
[SUITE_INFO]
suite_guid={93566987-1A5D-48B8-8EFC-4B3A423573F9}
suite_state=
[TOOL_SETTINGS]
TS{4999804C-8C8F-4CB2-ACB4-E79EB64B45B2}=
TS{3427F101-D8C5-4DDF-B308-9878161865F2}=
TS{BA0A828D-BB4D-41C2-A3C1-33597E9DC62A}=
TS{AEA473BD-AA1F-42D2-A715-587544675159}=-O"$(TARGETBASE).cof"

also how to compile d5free.pjt??


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

[This message has been edited by dinno (edited April 05, 2007).]

dinno
 
Posts: 5
Joined: Wed Apr 04, 2007 11:00 pm
Location: india

Re: problem executing demo 5

Postby dinno » Fri Apr 06, 2007 6:42 am

thanx a lot....u r great...
now i am getting the build result as
Memory Usage Map:

Program ROM $0000 - $01AD $01AE ( 430) words
Program ROM $01B0 - $0839 $068A ( 1674) words
Program ROM $0E56 - $0FFF $01AA ( 426) words
$09E2 ( 2530) words total Program ROM

Bank 0 RAM $0020 - $0038 $0019 ( 25) bytes
Bank 0 RAM $0070 - $0072 $0003 ( 3) bytes
$001C ( 28) bytes total Bank 0 RAM

Bank 1 RAM $00A0 - $00C6 $0027 ( 39) bytes total Bank 1 RAM
Bank 2 RAM $0110 - $0148 $0039 ( 57) bytes total Bank 2 RAM
Bank 3 RAM $0190 - $01BF $0030 ( 48) bytes total Bank 3 RAM
Config Data $2007 - $2007 $0001 ( 1) words total Config Data


Program statistics:

Total ROM used 2530 words (30.9%)
Total RAM used 172 bytes (46.7%)

Loaded C:salvodemod5sysad5free.cof
BUILD SUCCEEDED: Fri Apr 06 20:01:30 2007

now i am building the hardware as given in AN-8 hope it works as well.....
though i didnt got that while i am using free library why i have to change library type from OSF to OSL

dinno
 
Posts: 5
Joined: Wed Apr 04, 2007 11:00 pm
Location: india


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 3 guests

cron