English
Language : 

E702289_SH7290 Datasheet, PDF (113/252 Pages) Renesas Technology Corp – SH7290 E10A Emulator
3.22 Download Function to the Flash Memory Area
The E10A emulator enables downloading to the flash memory area. This function requires a
program for writing the flash memory (hereinafter referred to as a write module), a program
for erasing the flash memory (hereinafter referred to as an erase module), and the RAM area
for downloading and executing these modules.
Note: The write/erase module must be prepared by users.
 Interface with write/erase module and E10A emulator firmware
The write/erase module is branched from the E10A emulator firmware. To branch from
the E10A emulator firmware to the write/erase module or to return from the write/erase
module to the E10A emulator firmware, the following conditions must be observed:
• Describe all the write/erase modules with the assembly language.
• Guarantee all the general/control register values before and after calling the write/erase
module.
• Return the write/erase module to the calling source after processing.
The module interface must be as follows to pass correctly the information that is required
for flash memory accessing.
Table 3.6 Module Interface
Module Name
Argument
Write module
R4(L): Write address
R7(L): Verify option
0 = no verify,
1 = verify
R5(L): Access size
0x4220 = byte,
0x5720 = word,
0x4C20 = longword
R6(L): Write data
Erase module
R4(L): Access size
0x4220 = byte,
0x5720 = word,
0x4C20 = longword
Note: The (L) means the longword size.
Return Value
R0(L): End code
Normal end = 0,
Abnormal end = other than 0,
Verify error = BT
None
Note: Write module:
The write data for the access size is set to the R6 register. When the access size is
word or byte, 0 is set to the upper bit of the R6 register.
89