Atmel Xplained Pro Evaluation Kit ATSAM4E-XPRO ATSAM4E-XPRO Data Sheet

Product codes
ATSAM4E-XPRO
Page of 1506
SAM4E [DATASHEET]
Atmel-11157D-ATARM-SAM4E16-SAM4E8-Datasheet_12-Jun-14
1118
41.11 HSMCI Boot Operation Mode
In boot operation mode, the processor can read boot data from the slave (MMC device) by keeping the CMD line
low after power-on before issuing CMD1. The data can be read from either the boot area or user area, depending
on register setting. As it is not possible to boot directly on SD-CARD, a preliminary boot code must be stored in
internal Flash.
41.11.1   Boot Procedure, Processor Mode
1.
Configure the HSMCI data bus width programming SDCBUS Field in the HSMCI_SDCR. The 
BOOT_BUS_WIDTH field located 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, writing BLKLEN and 
BCNT fields of the HSMCI_BLKR.
3.
Issue the Boot Operation Request command by writing to the HSMCI_CMDR with SPCMD field set to 
BOOTREQ, TRDIR set to READ and TRCMD set to “start data transfer”.
4.
The BOOT_ACK field located in the HSMCI_CMDR must be set to one, if the BOOT_ACK field of the MMC 
device located in the Extended CSD register is set to one.
5.
Host processor can copy boot data sequentially as soon as the RXRDY flag is asserted.
6.
When Data transfer is completed, host processor shall terminate the boot stream by writing the 
HSMCI_CMDR with SPCMD field set to BOOTEND.
41.12 HSMCI Transfer Done Timings
41.12.1   Definition
The XFRDONE flag in the HSMCI_SR indicates exactly when the read or write sequence is finished.
41.12.2   Read Access
During a read access, the XFRDONE flag behaves as shown in 
Figure 41-11. XFRDONE During a Read Access
CMD line
HSMCI read CMD
Card response
CMDRDY flag
Data
1st Block
Last Block
Not busy flag
XFRDONE flag
The CMDRDY flag is released 8 tbit  after the end of the card response.