03.08.2013 Views

AN4365, Qorivva MPC56xx Flash Programming Through Nexus/JTAG

AN4365, Qorivva MPC56xx Flash Programming Through Nexus/JTAG

AN4365, Qorivva MPC56xx Flash Programming Through Nexus/JTAG

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Appendix A<br />

Demo calling basic SSD functions<br />

<strong>Qorivva</strong> <strong>MPC56xx</strong> <strong>Flash</strong> <strong>Programming</strong> <strong>Through</strong> <strong>Nexus</strong>/<strong>JTAG</strong>, Rev. 0<br />

Demo calling basic SSD functions<br />

This is a demo for the LC flash driver included in the flash driver. A similar example is provided in each<br />

of the other Freescale flash drivers.<br />

;*************************************************************************<br />

;* (c) Copyright Freescale Semiconductor & STMicroelectronics Inc. 2011 *<br />

; All Rights Reserved *<br />

;*************************************************************************<br />

;<br />

;*************************************************************************<br />

;* *<br />

;* Standard Software Driver for C90lc(2) *<br />

;* *<br />

;* FILE NAME : demo.mac *<br />

;* DESCRIPTION : This file shows how to call basic SSD functions. *<br />

;* DATE : May 18, 2011 *<br />

;* AUTHOR : FPT Team *<br />

;* *<br />

;* *<br />

;*************************************************************************/<br />

;<br />

;******************************* CHANGES *********************************<br />

; 0.1.0 05.18.2010 FPT Team Initial Version<br />

;*************************************************************************/<br />

;1. Demo with SSD in S-record format;<br />

;<br />

;2. Demo 8 S-record format SSD functions:<br />

; <strong>Flash</strong>Init <strong>Flash</strong>Init.sx<br />

; <strong>Flash</strong>Erase <strong>Flash</strong>Erase.sx<br />

; BlankCheck BlankCheck.sx<br />

; <strong>Flash</strong>Program <strong>Flash</strong>Program.sx<br />

; ProgramVerify ProgramVerify.sx<br />

; CheckSum CheckSum.sx<br />

; GetLock GetLock.sx<br />

; SetLock SetLock.sx<br />

;<br />

;3. RAM Mapping of SSD S-record demo<br />

; Start Address End Address Size (Byte)<br />

; ---------------------------------------------------------------------------<br />

; <strong>Flash</strong>Init $40000000 $40000300-1 $300<br />

; <strong>Flash</strong>Erase $40000300 $40000A00-1 $700<br />

; BlankCheck $40000A00 $40000D00-1 $300<br />

; <strong>Flash</strong>Program $40000D00 $40001B00-1 $E00<br />

; ProgramVerify $40001B00 $40001E00-1 $300<br />

; CheckSum $40001E00 $40002100-1 $300<br />

; GetLock $40002100 $40002600-1 $500<br />

; SetLock $40002600 $40002A00-1 $400<br />

;<br />

; Demo data $40004000 $40004200-1 $200<br />

; Data buffer $40005000 $40005800-1 $800<br />

; Stack $40007000 $40008000-1 $1000<br />

;<br />

; ***********************************************************************<br />

Freescale Semiconductor 35

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!