Zakładka z wyszukiwarką danych komponentów
  Polish  ▼
ALLDATASHEET.PL

X  

AN4035 Arkusz danych(PDF) 35 Page - STMicroelectronics

Numer części AN4035
Szczegółowy opis  Flash programming through
PDF  42 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
Producent  STMICROELECTRONICS [STMicroelectronics]
Strona internetowa  http://www.st.com
Logo STMICROELECTRONICS - STMicroelectronics

AN4035 Arkusz danych(HTML) 35 Page - STMicroelectronics

Back Button AN4035 Datasheet HTML 31Page - STMicroelectronics AN4035 Datasheet HTML 32Page - STMicroelectronics AN4035 Datasheet HTML 33Page - STMicroelectronics AN4035 Datasheet HTML 34Page - STMicroelectronics AN4035 Datasheet HTML 35Page - STMicroelectronics AN4035 Datasheet HTML 36Page - STMicroelectronics AN4035 Datasheet HTML 37Page - STMicroelectronics AN4035 Datasheet HTML 38Page - STMicroelectronics AN4035 Datasheet HTML 39Page - STMicroelectronics Next Button
Zoom Inzoom in Zoom Outzoom out
 35 / 42 page
background image
AN4035
System initialization
Doc ID 022669 Rev 2
35/41
5
System initialization
For Flash programming, there is some system initialization that needs to be performed by
the external tool.
The initialization to perform is the SRAM initialization.
5.1
Internal SRAM initialization
The SPC56x family of devices all contain internal SRAM that must be initialized after power-
on-reset by 64-bit writes to the entire memory. This is necessary to initialize the error-
correcting code (ECC) logic.
The easiest way to do this with an external tool is to single step over a number of stmw
(store multiple words) instructions with r0 as the rS field, the address to begin the writes in
WBBRlow, and CTL[FFRA] set. This causes all 32 GPRs to be written to memory beginning
at the address in WBBRlow using 64-bit writes. For example, the starting physical address of
the internal SRAM is 0x40000000. Stepping over stmw r0, 0(X) with the 0x40000000 in
WBBRlow causes all 32 GPRs to be written to memory starting at address 0x40000000
using 64-bit writes. Then 0x80 should be added to the address, written to WBBRlow and
stmw executed again. This should be done [size of internal SRAM] / [0x80] times to initialize
the entire internal SRAM.
5.2
Setting up the memory management unit
The memory management unit (MMU) on the SPC56x devices, that include this hardware
implementation (for example SPC560B devices don’t have this hardware implementation),
provides memory translation from effective to real addresses. For the purpose of Flash
programming, it is easiest to setup the MMU such that the effective addresses are the same
as the real addresses. For the CPU to access a memory mapped region, an MMU entry for
that memory space must be configured. The external tool has the capability to setup MMU
entries by writing the appropriate SPRs and single stepping over the tlbwe instruction.
For Flash programming, the external tool should set up at least four MMU entries. The steps
required to setup an MMU entry are:
1.
Setup MAS0 (SPR 624).
2.
Setup MAS1 (SPR 625).
3.
Setup MAS2 (SPR 626).
4.
Setup MAS3 (SPR 627).
5.
Execute tlbwe (0x7C0007A4).



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42


Arkusz danych Pobierz

Go To PDF Page


Link URL



Czy Alldatasheet okazała się pomocna?  [ DONATE ] 

O Alldatasheet   |   Reklama   |   Kontakt   |   Polityka prywatności   |   Link do karty katalogowej    |   Linki   |   Lista producentów
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
Russian : Alldatasheetru.com  |   Korean : Alldatasheet.co.kr  |   Spanish : Alldatasheet.es  |   French : Alldatasheet.fr  |   Italian : Alldatasheetit.com
Portuguese : Alldatasheetpt.com  |   Polish : Alldatasheet.pl  |   Vietnamese : Alldatasheet.vn
Indian : Alldatasheet.in  |   Mexican : Alldatasheet.com.mx  |   British : Alldatasheet.co.uk  |   New Zealand : Alldatasheet.co.nz
Family Site : ic2ic.com  |   icmetro.com