English
Language : 

SH7065 Datasheet, PDF (751/941 Pages) Renesas Technology Corp – Renesas 32-Bit RISC Microcomputer SuperH RISC engine Family/SH7000 Series
Section 19 256 kB Flash Memory (F-ZTAT)
User Program Mode
Figure 19.4 shows an example of programming in user program mode. For details of this mode,
see section 19.6.2, User Program Mode.
1. Initial state
The FWE 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
SH7065
Boot program
Flash memory
FWE assessment program
Transfer program
SCI
RAM
Application
program
(old version)
3. Flash memory initialization
The programming/erase program in RAM is
executed, and the flash memory is initialized (to
H'FF). Erasing can be performed in block units,
but not in byte units.
Host
2. Programming/erase control program transfer
When user program mode is entered, user
software confirms this fact, executes the transfer
program in the flash memory, and transfers the
programming/erase control program to RAM.
Host
New application
program
SH7065
Boot program
Flash memory
FWE assessment program
Transfer program
SCI
RAM
Application
program
(old version)
Programming/erase
control program
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
New application
program
SH7065
Boot program
Flash memory
FWE assessment program
Transfer program
SCI
RAM
Flash memory
erase
Programming/erase
control program
SH7065
Boot program
Flash memory
FWE assessment program
Transfer program
New application
program
SCI
RAM
Programming/erase
control program
Note:
: Program execution state
Figure 19.4 Example of Programming Operation in User Program Mode
Rev. 5.00 Sep 11, 2006 page 729 of 916
REJ09B0332-0500