Motorola M68EZ328ADS user manual Appendix C Programming ON-BOARD Flash Memory

Page 33

Freescale Semiconductor, Inc.

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

Freescale Semiconductor, Inc.

APPENDIX C

PROGRAMMING ON-BOARD FLASH MEMORY

ARCHIVED BY FREESCALE SEMICONDUCTOR, INC. 2005

C.1 OVERVIEW

The Flash memory on the ADS board cannot be written directly. A special program com- mand sequence is required to unlock it before starting the write process. A flash program is therefore provided with the ADS board for helping users to do re-programming. The sections below will describe the program and provide further information about the process and other required elements.

It is recommended that user should have a basic understanding of bootstrap mode operation of MC68EZ328 before reading the material below. For more details on Bootstrap mode, please refer to the MC68EZ328 user’s manual.

C.2 ELEMENTS FOR PROGRAMMING THE FLASH

The following files are necessary for programming the Flash memory

1.EZTOOLS including BBUG.EXE and STOB.EXE

2.INIT.B - b-record for initializing the ADS

3.ERASE.B - b-record for erasing the flash memory

4.FLASHNML.B - b-record for programming flash. ROM image is copied from RAM area to the Flash memory area

5.ROM.B - ROM image of user program in b-record/s-record format.

MOTOROLAM68EZ328ADS v2.0 USER’S MANUALC-32

For More Information On This Product,

Go to: www.freescale.com

Image 33
Contents Preliminary Freescale Semiconductor, IncTable of Contents Comparison of M68EZ328ADS Version 1.x Appendix aResistive Touch Panel Operation Programming On-board Flash MemoryIii M68EZ328ADS v2.0 USER’S Manual List of Illustrations List of Tables Features Section General InformationIntroduction Related Documentation Technical Support 1.4.1 M68EZ328ADSDebugger Installation Procedure Section Quick Installation GuideOverview Equipments RequiredM68EZ328ADS v2.0 Key Component Layout DIP Switch Options for SDS monitor Default DIP Switch Options for Metrowerks monitorConnecting M68EZ328ADS v2.0 to PC Installing software debuggerMetrowerks 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 Section Hardware Description and Board Operation M68EZ328ADS v2.0 Functional Block DiagramDIP Switches Control SwitchesDIP Switch pack S1 Setting DIP Switch pack S2 SettingOperation Mode Setting LED IndicatorsFunction of LED Indicators Operation ModesMemory M68VZ328ADS v2.0 Default Memory MapMemory Map Flash MemoryInterface of EMU ROM EMU ROMMC68EZ328 CSD1 EDO DramMC68VZ328 Uart and IrdaLCD Interface LCD and Touch Panel InterfaceTouch Panel Interface Signal Assignment for Touch Panel ControllerExpansion Connectors Single Tone GeneratorLogic Analyzer Interface Pin Assignments of P4 Power SupplyGND VEE Appendix a Comparison of M68EZ328ADS Version 1.X Table A-2. Software Change for using M68EZ328ADSHardware SoftwareFreescale Semiconductor, Inc General Concepts of Resistive Panels Appendix B Resistive Touch Panel OperationDetermination of X,Y Position Elements for Programming the Flash Appendix C Programming ON-BOARD Flash MemoryOffset Address of ROM Image MethodExecuting Program Command Sequence Error Program EnablePolling NOW EchoVerifiy ProgramNOV Echo Finish TxdrdyBootstrap Error EchoEND Figure C-2. Flash Program Algorithm Freescale Semiconductor, Inc Appendix D Monitor Initialization Code Initialization Code of Metrowerks Monitor RESET.SMonitor Initialization Code Freescale Semiconductor, Inc Lxmax Reset OptionsLymax Lcxp#MONSTACKTOP,A7 #$9,PGSEL#0,RTCWD #$08,ICEMCRInitialization Code of SDS Monitor MONITOR.H Equ M328BASE+$150 PWM RegistersARCHIVED by Freescale SEMICONDUCTOR, INC Device Options Addressing OptionsBasein BaseoutIrqmask AcrvalInterrupt Behavior Options StoplevelResethard Usrreset#$7,ICEMSR Monstacktop#$0000,GRPBASED #0,PCSEL#0,PCPDEN BASEIN+OFF7 BASEIN+OFF6ACR Other DefinitionsEndmARCHIVED by Freescale SEMICONDUCTOR, INC Freescale Semiconductor, Inc M68EZ328ADS Appendix E SchematicsM68EZ328ADS By Freescale SEMICONDUCTOR, INC Memory LCD Screen IncUart Ports FreescaleIrDA Reset Circuit Misc Logic Analyzer Connectors Test pin & VME connector