 |
|
 |
MESC TOOL NEWS:
MESCT-MR308-000501D
MR308 and MR30 Precautions
|
Please take note of the following problem in using real-time OSes MR308 and MR30:
-
Versions Concerned
The following real-time OSes are concerned in this problem:
| MR308 V.1.00 Release 1--V.1.00 Release 2 | for M16C/80 series MCUs |
| MR30 V.1.00 Release 1--V.3.20 Release 1S | for M16C/60 and M16C/20 series MCUs |
-
Problem
In the header files included in MR308 and MR30, signed 8-bit data types B and VB are declared without "signed", so these data types are assumed to be "unsigned" in Mitsubishi C compilers NC308WA and NC30WA.
-
Workaround
In order to handle data types B and VB as "signed", modify every portion
that defines the data types of B and VB in header files mr308.h and mr30.h, included in MR308 and MR30 as follows (at the same time, modify the data types of H, W, VH, and VW as well):
[Modified]
---------------------------------------------
typedef signed char B;
typedef signed short H;
typedef signed long W;
:
typedef signed char VB;
typedef signed short VH;
typedef signed long VW;
---------------------------------------------
[Original]
---------------------------------------------
typedef char B;
typedef short H;
typedef long W;
:
typedef char VB;
typedef short VH;
typedef long VW;
---------------------------------------------
The above header files are saved in directories "/MTOOL/INC308" and "/MTOOL/INC30", respectively.
-
Schedule of Fixing Problem
We plan to fix this problem in our next release by defining the data types of B, H, W, VB, VH, and VW as "signed".
|
 |