Executing Program Command Sequence - Motorola FREESCALE SEMICONDUCTOR M68EZ328ADS User Manual

Application development system v2.0
Table of Contents

Advertisement

Programming On-board Flash Memory
For example, when using SDS's DOWN.EXE to generate the s-record, the "-w offset"
parameter can be used to specify this offset value. Please refer to the SingleStep User
Guide for using this command.
ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005
C.5 EXECUTING PROGRAM COMMAND SEQUENCE
Listed below is the source code of the flash Program which contains the necessary steps to
write the flash memory MBM29LV160T. It executes the flash program command sequence
and copies the ROM image from RAM area to the Flash memory area on ADS board. Figure
C-2 shows the flow chart of this program. Different brands of Flash memory may have dif-
ferent program command sequences, please refer to their datasheets for more details.
OFFSET1
OFFSET2
TIME
*****************************************************************
ECHO
MACRO
bsr
nop
nop
nop
move.b
ENDM
*****************************************************************
ENABLE
MACRO
move.w
move.w
move.w
ENDM
*****************************************************************
SECTION parameter
pSOURCE
pTARGET
pSIZE
pFLASH
pERROR
pFINISH
pERROR_ADDRESS
*****************************************************************
SECTION code
START
MOVEA.L #STKTOP,a7
MOVE.L
MOVE.L
move.l
C-34
Freescale Semiconductor, Inc.
XREF
STKTOP
equ $AAA
equ $554
equ $FFF
CHAR
TXD_RDY
#CHAR,$FFFFF907
#$00AA,(A5)
; Unlock Flash
#$0055,(A6)
#$00A0,(A5)
DC.L
$00010000
DC.L
$01000000
DC.L
$00010000
DC.L
$01000000
DC.L
$0
DC.L
$0
DC.L
$0
DC.L
STKTOP
;re-istall stack pointer in case bootstrap mode
#0,pERROR
#0,pFINISH
#0,pERROR_ADDRESS
M68EZ328ADS v2.0 USER'S MANUAL
For More Information On This Product,
Go to: www.freescale.com
MOTOROLA

Advertisement

Table of Contents
loading

Table of Contents