 |
|
 |
MESC TOOL NEWS:
MESCT-MR30-990201D
Please take note of the following problems in using real-time OS MR30 for the M16C/60 and M16C/20 series of microcomputers.
On stk30 Utility
- Problem
When the stack size calculation utility stk30 included with NC30WA is executed in a program that uses MR30's system calls, the result will incorrectly be output as shown in the following example:
[Example]
---------------------------------------------------------------------
|
| *** Stack Size ***
|
| 95 bytes
| 52 bytes + sta_tsk
| 33 bytes + snd_msg
|
| :
|
---------------------------------------------------------------------
- Workaround
Please modify the contents of the mr30.stk file in the directory defined by environmental variable LIB30; i.e., every "_sys_" in front of all the following system calls must be deleted:
---------------------------------------------------------------------
|
| sta_tsk, ista_tsk, ext_tsk, ter_tsk, dis_dsp, ena_dsp,
| chg_pri, ichg_pri, rot_rdq, irot_rdq, rel_wai, irel_wai,
| sus_tsk, isus_tsk, rsm_tsk, irsm_tsk, slp_tsk, wup_tsk,
| iwup_tsk, set_flg, iset_flg, clr_flg, ref_flg, sig_sem,
| sig_sem, isig_sem, wai_sem, twai_sem, preq_sem, snd_msg,
| isnd_msg, ref_mbx, rel_blf, ref_mpf, rel_blk, ref_mpl,
| ret_int, loc_cpu, set_tim, get_tim, dly_tsk, act_cyc,
| get_ver, vrst_msg, vrst_blf, vrst_blk
|
---------------------------------------------------------------------
- Example of Modification
---------------------------------------------------------------------
|
| FUNCTION _sys_sta_tsk
|
|
|
| FUNCTION sta_tsk
|
---------------------------------------------------------------------
Note that this deletion is not needed for the system calls shown below.
---------------------------------------------------------------------
|
| can_wup, get_tid, wai_flg, twai_flg, pol_flg, rcv_msg,
| trcv_msg, prcv_msg, pget_blf, pget_blk
|
---------------------------------------------------------------------
When any of the timers X0, X1, and X2 equipped with the M16C/20 series MCUs is used as the system timer of MR30, the timer must be described in the configuration file as follows:
-------------------------------------------------------------
| Timer | Description of Timer in Configuration File |
|-------------------------------------------------------------|
| X0 -> A1 |
|-------------------------------------------------------------|
| X1 -> A2 |
|-------------------------------------------------------------|
| X2 -> A3 |
-------------------------------------------------------------
|
 |