 |
|
 |
MESC TOOL NEWS:
MESCT-MR32R-000201D
MR32R V.3.10 Release 1 Precaution
|
Please take note of the following problem in using real-time OS MR32R V.3.10 Release 1 for the M32R family of microcomputers:
-
Problem
When timer-initializing template file "m32160.tpl" for the M32160 group MCUs is used to set the system timer automatically, an address exception will be generated at the period of initializing the system timer.
- 1.1 Conditions
- This problem occurs if the following two conditions are satisfied:
- (1)In the definitions of the system clock in the configuration file, the template file is defined as follows: "file_name = m32160.tpl;"
- (2) File "timer.inc" for setting the initial values of the timer is created by executing the configurator with the "-i" option.
-
Workaround
Modify the "m32160.tpl" file in the directory indicated by environment variable "LIB32R" as follows:
[Modified "m32160.tpl"]
--------------------------------------------------------------------
__sys_timer_init:
.aif /&USE_TIMER gt 0
INTERVAL
st r14,@-r15
ld24 r4,#__D_Sys_TIME_H
lduh r5,@r4
ld24 r6,#__Sys_time
sth r5,@r6
ld24 r4,#__D_Sys_TIME_L
ld r5,@r4
st r5,@(2,r6)
ld24 r3,#TOPPRO
ld24 r4,#__pro_bit
lduh r5,@r3
and r5,r4
sth r5,@r3
ld24 r1,#__cen_bit
not r2,r1
ld24 r0,#TOPCEN
ldh r1,@r0 <--- Added
and r2,r1 <--- Added
sth r2,@r0 <--- Altered
--------------------------------------------------------------------
[Original "m32160.tpl"]
--------------------------------------------------------------------
__sys_timer_init:
.aif /&USE_TIMER gt 0
INTERVAL
st r14,@-r15
ld24 r4,#__D_Sys_TIME_H
lduh r5,@r4
ld24 r6,#__Sys_time
sth r5,@r6
ld24 r4,#__D_Sys_TIME_L
ld r5,@r4
st r5,@(2,r6)
ld24 r3,#TOPPRO
ld24 r4,#__pro_bit
lduh r5,@r3
and r5,r4
sth r5,@r3
ld24 r1,#__cen_bit
not r2,r1
ld24 r0,#TOPCEN
st r2,@r0 <--- To be altered
--------------------------------------------------------------------
-
Schedule of Fixing Problem
We plan to fix this problem in our next release.
|
 |