Pumpkin, Inc.

Pumpkin User Forums

OSFROM_FOREGROUND linker problem

If you're having difficulty with Salvo's configuration options, post it here.

OSFROM_FOREGROUND linker problem

Postby jtemples » Sat May 03, 2003 12:28 am

In a PIC 17C766 application, I am calling OSSetEFlag() from my ISR, and not from main code; no events are being signalled from main code. I have set my configuration as

code:
#define OSCALL_OSSIGNALEVENT OSFROM_FOREGROUND
#define OSENABLE_EVENT_FLAGS TRUE
#define OSENABLE_EVENT_READING TRUE


with #pragma interrupt_level 0 on the ISR. The Hi-Tech linker complains:

function _OSSignalEFlag appears in multiple call graphs: rooted at intlevel0 and _main

There are no events being signaled in main(). I found that if I comment out the OSSched() call from main(), I can link successfully. I can also link successfully by configuring as:

code:
#define OSCALL_OSSIGNALEVENT OSFROM_ANYWHERE

[This message has been edited by jtemples (edited May 03, 2003).]

jtemples
 
Posts: 45
Joined: Tue Jul 16, 2002 11:00 pm

Re: OSFROM_FOREGROUND linker problem

Postby aek » Sat May 03, 2003 12:57 am

Hi John.

Depends on the state of OSCOMBINE_EVENT_SERVICES. If it's TRUE (not the default), then:

Sounds like your are calling OSSignalXyz() from mainline code...

quote:
There are no events being signaled in main()
main() is just the root of that callgraph ... it could be called deeper, from within a task, etc.

What other calls are you making to OSSignalXyz() (not just OSSignalEflag())?

OSSignalXyz() uses OSSignalEvent(), and so #define OSCALL_OSSIGNALEVENT OSFROM_ANYWHERE is required whenever you have OSSignalXyz() called from both mainline and interrupt code.

If OSCOMBINE_EVENT_SERVICES is FALSE, then I'm not sure why it's happening. Can you email support@pumpkininc.com a skeleton that exhibits this problem?

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

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

Re: OSFROM_FOREGROUND linker problem

Postby jtemples » Sat May 03, 2003 1:16 am

I found the problem; I forgot that OSClrEFlag() counts as signaling an event.
jtemples
 
Posts: 45
Joined: Tue Jul 16, 2002 11:00 pm

Re: OSFROM_FOREGROUND linker problem

Postby aek » Sat May 03, 2003 1:22 am

Hi John.

Glad you found it ...

Regards,

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

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


Return to Configuration

Who is online

Users browsing this forum: No registered users and 0 guests

cron