at91sam9g20-cu ATMEL Corporation, at91sam9g20-cu Datasheet - Page 76

no-image

at91sam9g20-cu

Manufacturer Part Number
at91sam9g20-cu
Description
At91 Arm Thumb Microcontrollers
Manufacturer
ATMEL Corporation
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
AT91SAM9G20-CU
Manufacturer:
Atmel
Quantity:
5
Part Number:
AT91SAM9G20-CU
Manufacturer:
ATMEL
Quantity:
188
Part Number:
AT91SAM9G20-CU
Manufacturer:
ATMEL
Quantity:
705
Company:
Part Number:
AT91SAM9G20-CU
Quantity:
4
13.4.2.1
13.5
6384B–ATARM–15-Dec-08
Serial Flash Boot
Example
Figure 13-5. Structure of the ARM Vector 6
An example of valid vectors follows:
The size of the image to load into SRAM is contained in the location of the sixth ARM vector.
Thus the user must replace this vector by the correct size of his/her application.
The Serial Flash boot looks for a valid application in the SPI Serial Flash memory.
SPI0 is configured in master mode to generate a SPCK at 8 MHz. Serial Flash shall be con-
nected to NPCS0 or NPCS1.
The Serial Flash boot reads the Serial Flash status register (Instruction code 0x05). The Serial
Flash is considered as ready if bit 0 of the returned status register is cleared.
If no Serial Flash is connected or if it does not answer, Serial Flash boot exits after 1000
attempts.
If the Serial Flash is ready, Serial Flash boot reads the first 8 words into SRAM (Instruction code
“Continuos read array” 0x0b) and checks if it corresponds to valid exception vectors according to
the Valid Image detection algorithm.
If a valid application is found, this application is loaded into internal SRAM and executed by
branching at address 0x0000_0000 after remap. This application may be the application code or
a second-level bootloader.
31
00
04
08
0c
10
14
18
ea000006
eafffffe
ea00002f
eafffffe
eafffffe
00001234
eafffffe
B
B
B
B
B
B
B
0x20
0x04
_main
0x0c
0x10
0x14
0x18
Size of the code to download in bytes
<- Code size = 4660 bytes
AT91SAM9G20 Preliminary
0
76

Related parts for at91sam9g20-cu