Pumpkin, Inc.

Pumpkin User Forums

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

Getting Started Problem

Postby john_c » Thu Sep 22, 2005 8:58 am

Hello All,

when compiling (using HI-Tech C)any of the "tut" examples that use a semaphore or message box I get an error as below

Error[000] C:salvo ut u4main.c 34 : undefined identifier: OSecbArea
Error[000] C:salvo ut u4main.c 34 : pointer required
Error[000] C:salvo ut u4main.c 34 : pointer required

Would appreciate any suggestions.

Thanks

john_c
 
Posts: 2
Joined: Wed Sep 21, 2005 11:00 pm
Location: melbourne

Re: Getting Started Problem

Postby aek » Fri Sep 23, 2005 4:45 am

Assuming you've added Salvo's mem.c to your project and you're building with a Salvo library, I suspect the problem is that you have

#define OSLIBRARY_CONFIG OSM

or

#define OSLIBRARY_CONFIG OSD

in your salvocfg.h.

That's won't do, because that is telling Salvo that the Salvo library you're using supports only basic multitasking ('m') or multitasking with delays ('d'). You would need to set OSLIBRARY_CONFIG to OSE (event support), OSA (event + delays support) or OST (event + delays + timeout support), and choose the appropriate Salvo library as well ...

If it's a source-code build, you have to add

#define OSENABLE_SEMAPHORES TRUE
#define OSENABLE_MESSAGES TRUE

to your salvocfg.h.

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

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

Re: Getting Started Problem

Postby john_c » Mon Sep 26, 2005 2:10 am

Thankyou AEK for the prompot response. Yes your reply has fixed the problem and now all is working fine.

John


quote:
Originally posted by aek:
Assuming you've added Salvo's mem.c to your project and you're building with a Salvo library, I suspect the problem is that you have

#define OSLIBRARY_CONFIG OSM

or

#define OSLIBRARY_CONFIG OSD

in your salvocfg.h.

That's won't do, because that is telling Salvo that the Salvo library you're using supports only basic multitasking ('m') or multitasking with delays ('d'). You would need to set OSLIBRARY_CONFIG to OSE (event support), OSA (event + delays support) or OST (event + delays + timeout support), and choose the appropriate Salvo library as well ...

If it's a source-code build, you have to add

#define OSENABLE_SEMAPHORES TRUE
#define OSENABLE_MESSAGES TRUE

to your salvocfg.h.


john_c
 
Posts: 2
Joined: Wed Sep 21, 2005 11:00 pm
Location: melbourne


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 2 guests