Pumpkin, Inc.

Pumpkin User Forums

OSCALL_EVENTS problems

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

OSCALL_EVENTS problems

Postby luben » Sun Jun 23, 2002 2:16 am

Hello,

When I'm using both MEssages and BinSemaphores and I signal OSBinSem from main level, but Messages from ISR level (OSCALL_EVENTS = OSFROM_ANYWHERE) I get error message that the function OSSignalBinSem is not called from right level. SALVO 3.0 doesn't have separate settings for different event services, so if one of the services is called from main level and other from ISR you should set (OSCALL_EVENTS = OSFROM_ANYWHERE).

Well, the solution that I got is very simple - just put something like that in ISR

if (FALSE)
OSSIgnalXYZ(..);

The Hitech compiler understands that this si impossible case and dont' add any code for this, but the linker doesn't give error messages.

My question is - is it the only one way to this (I exlude possibility to change the source of SALVO like bad style of programming approach). I don't say that this is a disadvantage, maybe it's not good described in SALVO manual and for people without experience it could be damn dificult to fix such "errors".

Regards
Luben

luben
 
Posts: 324
Joined: Sun Nov 19, 2000 12:00 am
Location: Sofia, Bulgaria

Re: OSCALL_EVENTS problems

Postby Salvo Tech Support » Sun Jun 23, 2002 8:42 am

moved to Target-Specific -> PICMicro(R) MCUs ...

------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am

Re: OSCALL_EVENTS problems

Postby Salvo Tech Support » Sun Jun 23, 2002 8:45 am

Hello Luben.

This is the correct thing to do with library builds.

One can avoid this problem with a source-code build.

This solution is mentioned in the App Notes.

------------------
--------
Salvo Technical Support
Please request all tech support through the Forums.

[This message has been edited by Salvo Tech Support (edited June 23, 2002).]

--------
Salvo Technical Support
Please request all tech support through the Forums.
Salvo Tech Support
 
Posts: 173
Joined: Sun Nov 19, 2000 12:00 am


Return to PICmicro MCUs

Who is online

Users browsing this forum: No registered users and 1 guest

cron