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.

TDA4VM: LPDDR4_Init failed in SBL

Part Number: TDA4VM
Other Parts Discussed in Thread: DRA829

Hi Guys,

I tried to initialize DDR in the SBL,  but it fails both on the J721_EVM board and my own board. In the SBL_LOG it shows that is passed the BOARD_DDRProbe() and stucks at BOARD_DDRInitDrv().

Here is some relevant log prints, it hangs before BOARD_DDRInitDrv().

Initlialzing PLLs ...done.
InitlialzingClocks ...done.
Initlialzing DDR ...Board_DDRProbe: PASS

Also I want to ask if this initialization succeeded can I link all the sections into the 0x97000000 memory? Seems like you can't load .text to the DDR memory.

Regards,

Kan

  • Hi, :

    I have tested SBL from my side. It goes well.

    My setup: DRA829 Beta EVM, SDK v7.0

    1. build sbl image

        please follow guide : 

    the output:

    psdk_rtos_auto_j7_07_00_00_11/pdk_jacinto_07_00_00/packages/ti/boot/sbl/binary/j721e_evm/mmcsd/bin/sbl_mmcsd_img_mcu1_0_release.tiimage

    2. build app image

        just for example,  in psdk_rtos_auto_j7_07_00_00_11/mcusw/build

       run make can_app

      output as blow:

       psdk_rtos_auto_j7_07_00_00_11/mcusw/binary/can_app/bin/j721e_evm/can_app_mcu1_0_release.appimage

    3. copy image to SD card:

    4. here is the log:

    SBL Revision: 01.00.09.02 (Aug 26 2020 - 17:57:46)
    SYSFW  ver: 20.04.1-v2020.04a (Terrific Lla
    CAN_APP: Sample Application - STARTS !!!
    CAN_APP: Variant - Pre Compile being used !!!
    CAN_APP: Successfully Enabled CAN Transceiver Main Domain Inst 4,9,11!!!
    CAN_APP: Successfully Enabled CAN Transceiver MCU MCAN0!!!
    CAN_APP: Successfully Enabled CAN Transceiver MCU MCAN1!!!
    CAN_APP: Message Id Received a0 Message Length is 64     
    CAN_APP: Can Controller Instance MCAN 0 Internal LoopBack Mode Test Passed
    CAN_APP: Message Id Received 800000b0 Message Length is 64       
    CAN_APP: Can Controller Instance MCAN 1 Internal LoopBack Mode Test Passed
    CAN_APP: Message Id Received c0 Message Length is 64     
    CAN_APP: Can Controller Instance MCAN 2 Internal LoopBack Mode Test Passed
    CAN Stack Usage: 864 bytes
    CAN_APP: CAN Test Passed!!!

  • Hi Peter,

    I used the same psdk_rtos_auto version as you, and got the same problem.

    In psdk_rtos_auto_j7_07_00_00_11/pdk_jacinto_07_00_00/packages/ti/boot/sbl/sbl_component.mk I changed -DSBL_LOG_LEVEL=2 to -DSBL_LOG_LEVEL=3 and got the following log:

    SBL Revision: 01.00.09.02 (Aug 27 2020 - 14:02:35)                              
    SYSFW  ver: 20.04.1-v2020.04a (Terrific Lla                                     
    Efuse xlated: VD 2 to 800 mV (OppVid: 0x37, Slave:0x48, Res:0x0)                
    Successfully set voltage to 800 mV for Slave:0x48, Res:0x0                      
    Initlialzing PLLs ...done.                                                      
    InitlialzingClocks ...done.                                                     
    Initlialzing DDR ...
    

    Since  we use the same code version, I think it's not a software problem.

    Well in CCS and SPL it boots correctly so I think it's not a hardware problem either. Most likely wrong configuration somewhere.

    But now I'll put it behind because it looks we dont need to use SBL later on, we'll just use SPL instead.

    Thanks.

  • Hi Kan,

    Even with logs enabled there should be no problem. Let me know if you encounter this again.

    Regards,

    Karan