Figure 20.13 Repeating Procedure Of Erasing And Programming - Renesas H8S/2437 Hardware Manual

Renesas 16-bit single-chip microcomputer h8s family / h8s / 2600 series
Table of Contents

Advertisement

(4) Erasing and Programming Procedure in User Program Mode
By changing the on-chip RAM address of the download destination in FTDAR, the erasing
program and programming program can be downloaded to separate on-chip RAM areas.
Figure 20.13 shows a repeating procedure of erasing and programming.
Start procedure program
Specify a download
destination of erasing
program by FTDAR
Download erasing program
Initialize erasing program
Specify a download
destination of programming
program by FTDAR
Download programming
Initialize programming

Figure 20.13 Repeating Procedure of Erasing and Programming

In the above procedure, download and initialization are performed only once at the beginning.
In this kind of operation, note the following:
• Be careful not to damage on-chip RAM with overlapped settings.
In addition to the erasing program area and programming program area, areas for the user
procedure programs, work area, and stack area are reserved in on-chip RAM. Do not make
settings that will overwrite data in these areas.
• Be sure to initialize both the erasing program and programming program.
Initialization by setting FPEFEQ must be performed for both the erasing program and the
programming program. Initialization must be executed for both entry addresses: (download
start address for erasing program) + 32 bytes and (download start address for programming
program) + 32 bytes.
Rev. 1.00, 09/03, page 564 of 704
program
program
1
1
Erase relevant block
(execute erasing program)
Set FMPDR to
program relevant block
(execute programming
program)
Confirm operation
End ?
Yes
End procedure program
No

Advertisement

Table of Contents
loading

Table of Contents