Programming On-board Flash Memory
B-32
M68VZ328ADS USER’S MANUAL
MOTOROLA
B.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 MC68VZ328 into bootstrap mode by turning S2-8 on and pressing RESET
switch once.
2. Use BBUGV.EXE or TERMINAL program to communicate with the M68VZ328ADS
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 FLASH.B (the Flash Program) and ROM.B (the ROM image) to system RAM
(SDRAM on M68VZ328ADS).
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".
B.4 OFFSET ADDRESS OF ROM IMAGE
Figure B-1The 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 execution address, an
OFFSET is sometimes required to be specified in downloader 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 B-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.
..