 |
|
 |
RENESAS TOOL NEWS on October 1, 2005: RSO-M3T-NC308WA-051001D
A Note on Using the C Compiler Package
M3T-NC308WA |
Please take note of the following problem in using the C compiler package for the M32C/90, M32C/80, and M16C/80 series--M3T-NC308WA
- On compiling programs where the real-time OS M3T-MR308 used
- Version Concerned
M3T-NC308WA V.5.20 Release 02
- Description
If a task takes a parameter so that the start code of the task can be passed to the task as an argument in a program where the real-time OS M3T-MR308 is used, the following warning message appears in error during compilation:
[Warning(ccom):task.c,line xxx] task function has invalid argument
NOTE: String xxx denotes the line number concerned.
Even if the above message appears, neglect it because the code generated by the compiler and the operation of the OS are not affected.
| 2.1 |
|
Conditions
This problem occurs if the following conditions are all satisfied:
| (1) |
|
Any of the following M3T-MR308 real-time OSes is used:
M3T-MR308 V.1.00 Release 1 through M3T-MR308 V.1.20 Release 1B |
| (2) |
|
A task takes a parameter. |
|
| |
|
|
| 2.2 |
|
Example
------------------------------------------------------------------
#include <mr308.h> /* Include file for M3T-MR308 */
#include "id.h" /* Include file for M3T-MR308 */
void task( INT stacd ) /* Condition (2) */
{
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
}
------------------------------------------------------------------ |
- Solution
We plan to fix this problem in the next release of the product.
|
 |