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.

<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 />

;=============================== <strong>Flash</strong>Program to low block 1==============================;<br />

; Pass input arguments<br />

R3 pSSDConfig<br />

R4 $8000<br />

R5 program_size<br />

R6 source_start<br />

R7 NULL_CALLBACK<br />

; Set stack pointer<br />

R1 Addr_StackTop<br />

; Set PC<br />

PC Addr_<strong>Flash</strong>Program<br />

; Run<br />

go<br />

;=========================== ProgramVerify for low block 1===============================;<br />

; Pass input arguments<br />

R3 pSSDConfig<br />

R4 $8000<br />

R5 program_size<br />

R6 source_start<br />

R7 failAddress<br />

R8 failData<br />

R9 failSource<br />

R10 NULL_CALLBACK<br />

; Set stack pointer<br />

R1 Addr_StackTop<br />

; Set PC<br />

PC Addr_ProgramVerify<br />

; Run<br />

go<br />

;======================= <strong>Flash</strong>Program to mid block 0================================;<br />

; Pass input arguments<br />

R3 pSSDConfig<br />

R4 $40000<br />

R5 program_size<br />

R6 source_start<br />

R7 NULL_CALLBACK<br />

; Set stack pointer<br />

R1 Addr_StackTop<br />

; Set PC<br />

PC Addr_<strong>Flash</strong>Program<br />

; Run<br />

go<br />

;======================== ProgramVerify for mid block 0===============================;<br />

Freescale Semiconductor 42

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

Saved successfully!

Ooh no, something went wrong!