Renesas M32R/ECU Series User Manual page 142

Mitsubishi 32-bit risc single-chip microcomputers
Table of Contents

Advertisement

6
(1) When the flash write/erase program does not exist in the internal flash memory
In this case, the boot program is used to program or erase the internal flash memory. To transfer the write
data, use serial I/O1 in clock-synchronized serial mode.
To program or erase the internal flash memory using a flash programmer, follow the procedure described below.
FP = L or H
MOD1 = L
RAM
Flash
memory
FP = H
MOD1 = L
Flash write/
RAM
erase
program
Flash
memory
FP = H
MOD1 = L
Flash write/
RAM
erase
program
Flash
Flash write
memory
data
Figure 6.5.2 Procedure for Programming/Erasing the Internal Flash Memory (when the flash write/erase
program does not exist in it)
MOD0 = L
RESET = L
CPU
Boot
program
SIO1
M32R/ECU
MOD0 = H
RESET = H
CPU
Boot
program
SIO1
M32R/ECU
MOD0 = H
RESET = H
CPU
Boot
program
SIO1
M32R/ECU
6.5 Programming the Internal Flash Memory
<Step 1>
• Initial state (Flash write/erase program nonexistent in the internal
flash memory)
Write data
External device (e.g., flash programmer)
<Step 2>
• Set the FP pin high, MOD0 pin high and MOD1 pin low to place the
flash memory in boot mode + flash E/W enable mode.
• Dessert reset signal and start up with the boot program.
• Transfer the flash write/erase program into the RAM.
• Jump to the flash write/erase program in the RAM.
Write data
External device (e.g., flash programmer)
<Step 3>
• Using the flash write/erase program in the RAM, set the Flash Control
Register 1 (FCNT1) FENTRY bit to 1.
• Program or erase the internal flash memory using the flash write/erase
program.
• When finished, reset MOD0 low and jump to the internal flash memory
or apply a reset to enter normal mode.
Write data
External device (e.g., flash programmer)
6-13
INTERNAL MEMORY
32180 Group User's Manual (Rev.1.0)

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents