C.3 method, C.4 offset address of rom image, Freescale semiconductor, i – Motorola M68EZ328ADS User Manual
Page 34

Programming On-board Flash Memory
C-33
M68EZ328ADS v2.0 USER’S MANUAL
MOTOROLA
C.3 METHOD
Flash memory can be programmed in bootstrap mode. First, a ROM image and a flash pro-
gram are downloaded to the system memory by loading their b-records. Then, run the flash
program. It will execute the Flash program command sequence and copy the ROM image
from the system RAM to the Flash memory. The detailed steps are as follows.
1. Force the MC68EZ328 into bootstrap mode by turning S2-8 on and pressing RESET
switch once.
2. Use BBUG.EXE or TERMINAL program to communicate with the M68EZ328ADS
through RS232 port of a PC.
3. Initialize the internal registers of DragonBall-VZ by loading the INIT.B.
4. Make sure the Flash Memory is blank. Load ERASE.B to erase the flash memory
when needed.
5. Load FLASHNML.B (the Flash Program) and ROM.B (the ROM image) to system
RAM (EDO DRAM on M68EZ328ADS).
6. Execute the Flash Program by using the execution B-record. For example, if the start-
ing address of Flash Program is 0x4000, the execution B-record is then "0000400000".
C.4 OFFSET ADDRESS OF ROM IMAGE
Figure C-1 shows that the ROM image is first put to the system RAM before it is copied to
Flash. In order to create S-record/B-record with download address different from its execu-
tion address, an OFFSET is sometimes required to be specified in downloading program.
FLASH Program
System RAM
Flash Memory
Copy the ROM Image from
system
RAM
to
Flash
Memory by the flash Pro-
gram.
ROM Image
offset
Figure C-1. Method of programming on-board Flash memory
Freescale Semiconductor, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc.
..
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
ARCHIVED BY FREESCALE SEMICONDUCT
OR,
INC.
2005