User`s manual

M3T-PD32R V.5.01 Release 00 Release Notes
Rev.1.00 10.01.2006 page 11 of 34
REJ10J1495-0100
5.5. Precautions on download (1)
When one of the following applies, the target microcomputer is reset, and the registers which sets
the memory wait count and clock frequency are initialized.
(1) Immediately after the PD32R gets started
(2) When pressing the RESET button on the PD32R (or when executing the Reset instruction)
(3) When downloading is completed (when the reset operation is enabled after downloading)
You can select the reset operation after downloading by using the "Download Behavior tab" in
the Init dialog box. For details, see the "Setup" section in the PD32R Help.
If you try to download the target program in such a state,
the download speed may drastically
become slow. It is highly recommended that you should download the target program after setting
the memory wait count and clock frequency.
The following shows an example to download the program to the flash memory built in the target
microcomputer M32121.
When using a target microcomputer of other model, set the parameters referring to the given
example.
(Example: When using M32121)
Set the parameters to the register using the PD32R memory rewrite function.
Register Address Access size Setting value Setting data
Built-in ROM wait
control register
H'FFFFC023 Byte H'00 Built-in ROM wait
count 0
Clock mode register H'00F74000 Word BCLKSEL=B'0000 System clock f (XIN)
The PD32R script instruction executes the following:
MB FFFC023, 0
MW 00F74000, 0
A script file LOAD.SCR in which the above data is described is attached.
Immediately after starting PD32R, it is automatically executed by specifying "Init File" on "Resume
tab" in "Init" dialog.
Download speed to the built-in flash memory is influenced by the setting data in the register above
(built-in ROM wait control register/clock mode register).
To download a target program to an external device, be sure to set the parameters of the built-in
chip select controller before starting downloading.
And, if you use microcomputer with a data caching function, you have to disable the function before
downloading a program.