Motorola M68EZ328ADS user manual Method, Offset Address of ROM Image

Page 34

Freescale Semiconductor, Inc.

Freescale Semiconductor, Inc.

Programming On-board Flash Memory

C.3 METHOD

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

FLASH Program

System RAM

 

ROM Image

Copy the ROM Image from

 

system RAM to Flash

offset

 

 

Memory by the flash Pro-

 

 

gram.

2005

Flash Memory

 

 

 

 

 

 

 

 

 

 

 

 

INC.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

SEMICONDUCTOR,

 

 

 

 

 

 

 

Figure C-1. Method of programming on-board Flash memory

 

 

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.

FREESCALE

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

BY

 

through RS232 port of a PC.

3.

Initialize the internal registers of DragonBall-VZ by loading the INIT.B.

ARCHIVED

5.

Load FLASHNML.B (the Flash Program) and ROM.B (the ROM image) to system

 

4.

Make sure the Flash Memory is blank. Load ERASE.B to erase the flash memory

 

 

when needed.

 

 

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-1shows 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.

C-33M68EZ328ADS v2.0 USER’S MANUALMOTOROLA

For More Information On This Product,

Go to: www.freescale.com

Image 34
Contents Freescale Semiconductor, Inc PreliminaryTable of Contents Resistive Touch Panel Operation Appendix aComparison of M68EZ328ADS Version 1.x Programming On-board Flash MemoryIii M68EZ328ADS v2.0 USER’S Manual List of Illustrations List of Tables Section General Information FeaturesIntroduction Technical Support 1.4.1 M68EZ328ADS Related DocumentationDebugger Overview Section Quick Installation GuideInstallation Procedure Equipments RequiredM68EZ328ADS v2.0 Key Component Layout Default DIP Switch Options for Metrowerks monitor DIP Switch Options for SDS monitorInstalling software debugger Connecting M68EZ328ADS v2.0 to PCMetrowerks Codewarrior Select ADS68EZ328 Stationery for new project Change the connection settings in the Debug Settings Windows Debug Pop-Up Window of SDS Connection Setting inside Debug Pop-up Window of SDS M68EZ328ADS v2.0 Functional Block Diagram Section Hardware Description and Board OperationDIP Switch pack S1 Setting Control SwitchesDIP Switches DIP Switch pack S2 SettingFunction of LED Indicators LED IndicatorsOperation Mode Setting Operation ModesMemory Map M68VZ328ADS v2.0 Default Memory MapMemory Flash MemoryEMU ROM Interface of EMU ROMEDO Dram MC68EZ328 CSD1Uart and Irda MC68VZ328LCD and Touch Panel Interface LCD InterfaceSignal Assignment for Touch Panel Controller Touch Panel InterfaceSingle Tone Generator Expansion ConnectorsLogic Analyzer Interface Power Supply Pin Assignments of P4GND VEE Hardware Table A-2. Software Change for using M68EZ328ADSAppendix a Comparison of M68EZ328ADS Version 1.X SoftwareFreescale Semiconductor, Inc Appendix B Resistive Touch Panel Operation General Concepts of Resistive PanelsDetermination of X,Y Position Appendix C Programming ON-BOARD Flash Memory Elements for Programming the FlashMethod Offset Address of ROM ImageExecuting Program Command Sequence Polling Program EnableError NOW EchoNOV Echo ProgramVerifiy Finish TxdrdyError Echo BootstrapEND Figure C-2. Flash Program Algorithm Freescale Semiconductor, Inc Initialization Code of Metrowerks Monitor RESET.S Appendix D Monitor Initialization CodeMonitor Initialization Code Freescale Semiconductor, Inc Lymax Reset OptionsLxmax Lcxp#0,RTCWD #$9,PGSEL#MONSTACKTOP,A7 #$08,ICEMCRInitialization Code of SDS Monitor MONITOR.H Equ M328BASE+$150 PWM RegistersARCHIVED by Freescale SEMICONDUCTOR, INC Basein Addressing OptionsDevice Options BaseoutInterrupt Behavior Options AcrvalIrqmask Stoplevel#$7,ICEMSR UsrresetResethard Monstacktop#0,PCSEL #$0000,GRPBASED#0,PCPDEN ACR BASEIN+OFF6BASEIN+OFF7 Other DefinitionsEndmARCHIVED by Freescale SEMICONDUCTOR, INC Freescale Semiconductor, Inc Appendix E Schematics M68EZ328ADSM68EZ328ADS By Freescale SEMICONDUCTOR, INC Memory Inc LCD ScreenFreescale Uart PortsIrDA Reset Circuit Misc Logic Analyzer Connectors Test pin & VME connector