Atmel Evaluation Kit AT91SAM9M10-G45-EK AT91SAM9M10-G45-EK Data Sheet

Product codes
AT91SAM9M10-G45-EK
Page of 1361
 693
SAM9M10 [DATASHEET]
6355F–ATARM–12-Mar-13
 
35.11.2
Boot  Procedure,  DMA  Mode
1.
Configure the HSMCI data bus width by programming SDCBUS Field in the HSMCI_SDCR register. The 
BOOT_BUS_WIDTH field in the device Extended CSD register must be set accordingly.
2.
Set the byte count to 512 bytes and the block count to the desired number of blocks by writing BLKLEN 
and BCNT fields of the HSMCI_BLKR Register.
3.
Enable DMA transfer in the HSMCI_DMA register.
4.
Configure DMA controller, program the total amount of data to be transferred and enable the relevant 
channel.
5.
Issue the Boot Operation Request command by writing to the HSMCI_CMDR register with SPCND set to 
BOOTREQ, TRDIR set to READ and TRCMD set to “start data transfer”.
6.
DMA controller copies the boot partition to the memory.
7.
When DMA transfer is completed, host processor shall terminate the boot stream by writing the 
HSMCI_CMDR register with SPCMD field set to BOOTEND.