This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Compiler/DRA71XEVM: The device power on when inserting SD card,Unable to start from QSPI flash

Part Number: DRA71XEVM

Tool/software: TI C/C++ Compiler

Hello, expert,

    The device power on when inserting SD card, our understanding is as follows:The hardware configuration mode is SD - > QSPI. First, the first level boot program of CPU will detect SD card. If the SD card does not have an active partition , it start from QSPI.

    Based on the above understanding, in the SD card without active partition, Device startup will skip SD card and Boot from QSPI, but the current phenomenon is as follows:The device power on when inserting SD card.Serial port has no output.  then Wait 3 to 5 minutes, and Successfully started from SPI. We expect to launch directly from QSPI,Please help to analyze the reason.

    boot-mode.jpg is the hardware configuration screenshot for boot mode

  • Hi,

    Is it the same with SD card not inserted? I.e. SD card not skipped by ROM code?

    Regards,

    Stan

  • hi

        The device can start normally when SD card not inserted。

  • hi expert

        Add the following information:

        information 1. When it's testing on the development board, there will be the same problem when inserting 32G SD card. 

        information 2. On our own board. When power on. the device failed to start from QSPI  for the case of  only using  hardware reset when inserting 32G SD card.

        information 3. On our own board. When power on. the device sucess to start from QSPI  for the case of  adding software reset  after hardware reset when inserting 32G SD card.

        Please help to analyze the causes of the information 1 and the information 2.

        See the attachment for the current power on sequence:

    Yellow: SOC last power supply

    Blue: hardware reset ~ porz

    Purple: soft reset ~ reset

  •  Hi Liu Wang:

    Can you help us confirm purple line is TDA2E-17 pin K24: resetn or pin E20: rstoutn.

    I want to insure it is hardware warm reset been trigger at second time.

    Best Regards!

    Han Tao

  • Hi:

    The  purple line is pin K24: resetn.

    Best Regards!

  • Hi Liu wang,

    The reason QSPI boot completes after a SW reset and after a 3-minute timeout (WDT) is because in those 2 cases, SD card is not tryed at all. After warm resets, only boldfaced peripherals in the table are searched for boot image.

    Why SD card is not skipped? - I presume ROM either 'hangs', either enters Raw boot mode because there is a content in the SD card.

    Can you tell more about what is on the SD card?

    Is it FAT32 formatted?

    Does it have the Active bit set for the partition?

    Does it have an MLO file in the root directory?

    Also, did you try with another SD card?

    Regards,

    Stan

  • HI Guo Kuo:

    TRM descript the reason why resetn trigger jump SD card boot.

    you can find it at 32 chapter like below picture.

    Best Regards!

    Han Tao

  • hi 

    Is it FAT32 formatted?   YES

    Does it have the Active bit set for the partition? YES

    Does it have an MLO file in the root directory? YES

    Also, did you try with another SD card?  

    I've tried with another SD card,Some cards start normally, some cards start abnormally

  • hi  

    The above information is incorrect. The correct information is as follows

    Is it FAT32 formatted?   

    YES

    Does it have the Active bit set for the partition?

    NO

    Does it have an MLO file in the root directory?

    NO

    Also, did you try with another SD card?  

    I've tried with another SD card ,Some cards start normally, some cards start abnormally

  • Hi,

    The Active bit for a partition must be set by using a partitioning tool like linux gparted or windows partition tool.

    ROM code checks this bit as part of the booting process.

    MLO file (MMC LOader) is the actual boot image (bootstrap) which ROM is loading and hands over the booting process. MLO will later load and start the uboot.

    Regards,

    Stan