English
Language : 

SH7040 Datasheet, PDF (723/923 Pages) Renesas Technology Corp – Renesas 32-Bit Single-Chip RISC Microprocessor SuperH RISC engine Family/SH7040 Series(CPU Core SH-2)
User program mode
1. Initial state
The FWP assessment program that confirms that
user program mode has been entered, and the
program that will transfer the programming/erase
control program from flash memory to on-chip
RAM should be written into the flash memory by
the user beforehand. The programming/erase
control program should be prepared in the host
or in the flash memory.
HOST
Programming/erase
control program
New application
program
LSI
Boot program
Flash memory
FWP verify program
Transfer program
SCI
RAM
2. Programming/erase control program transfer
When user program mode is entered, user
software confirms this fact, executes transfer
program in the flash memory, and transfers the
programming/erase control program to RAM.
HOST
New application
program
;;LSI
Boot program
Flash memory
FWP verify program
Transfer program
SCI
RAM
Programming
control program
Application program
(old version)
Application program
(old version)
3. Initializing the flash memory
Execute the Programming/erase program in RAM to
initialize (to H'FF) the flash memory. Erase is executed
in block units, but cannot be executed in byte units.
4. Writing new application program
Next, the new application program in the host is
written into the erased flash memory blocks. Do
not write to unerased blocks.
HOST
HOST
New application
program
LSI
;;; Boot program
Flash memory
FWP verify program
Transfer program
SCI
RAM
Programming
control program
Flash memory
erase
LSI
;;;; Boot program
<Flash memory>
FWP verify program
Transfer program
SCI
RAM
Programming
control program
New application
program
Program execution state
Figure 22.4 User Program Mode
685