Pumpkin, Inc.

Pumpkin User Forums

Cannot compile with OSENABLE_BOUNDS_CHECKING

If you think you've found a bug or other mistake in your Salvo distribution, post it here.

Cannot compile with OSENABLE_BOUNDS_CHECKING

Postby din » Mon Nov 10, 2003 3:55 am

Hi,

I found out that when the directive OSENABLE_BOUNDS_CHECKING is TRUE, the source files 'task.c' and 'inittask.c' causes compiler error. There is a mixup between tcbP and ecbP.

din
 
Posts: 7
Joined: Sat Oct 18, 2003 11:00 pm

Re: Cannot compile with OSENABLE_BOUNDS_CHECKING

Postby aek » Mon Nov 10, 2003 5:17 am

Need more details -- OSENABLE_BOUNDS_CHECKING is working fine here.

Perhaps it's due to the version of the compiler you're using?

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

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

Re: Cannot compile with OSENABLE_BOUNDS_CHECKING

Postby din » Mon Nov 17, 2003 5:22 am

Here are details:

I am using the release 3.2.3 for PIC MCU's that is available via ftp.

My compiler: ht-pic 8.01 PL1.

OSLOGGING is set to TRUE.

Code that causes problem: ecbP is not defined
file:task.c

code:
OSWarnRtn("OSStartTask",
OSMakeStr("task %d nonexistent or invalid.",
OSeID(ecbP)), (OStypeErr) OSERR_BAD_P);



and file: inittask.c
code:
OSWarnRtn("OSCreateTask",
OSMakeStr("task %d nonexistent or invalid.",
OSeID(ecbP)), (OStypeErr) OSERR_BAD_P);


[This message has been edited by aek (edited November 17, 2003).]

din
 
Posts: 7
Joined: Sat Oct 18, 2003 11:00 pm

Re: Cannot compile with OSENABLE_BOUNDS_CHECKING

Postby aek » Mon Nov 17, 2003 11:59 am

Those are indeed typographic errors. And they occur in a few other places, as well.

Change OSeID(ecbP) to OStID(tcbP) to correct.

We will incorporate this fix into the next release.

Sorry for the inconvenience, and thank you for bring this to our attention.

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

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


Return to Bug Reports

Who is online

Users browsing this forum: No registered users and 1 guest

cron