Page 1 of 1

Cannot compile with OSENABLE_BOUNDS_CHECKING

PostPosted: Mon Nov 10, 2003 3:55 am
by din
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.


Re: Cannot compile with OSENABLE_BOUNDS_CHECKING

PostPosted: Mon Nov 10, 2003 5:17 am
by aek
Need more details -- OSENABLE_BOUNDS_CHECKING is working fine here.

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

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


Re: Cannot compile with OSENABLE_BOUNDS_CHECKING

PostPosted: Mon Nov 17, 2003 5:22 am
by din
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).]


Re: Cannot compile with OSENABLE_BOUNDS_CHECKING

PostPosted: Mon Nov 17, 2003 11:59 am
by aek
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.

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