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.

TDA4VE-Q1: TDA4VE-Q1: sbl boot stuck for a while

Part Number: TDA4VE-Q1

Tool/software:

hello teams:

sdk update from sdk805 to sdk902 

target sdk version: 09.02.00.05  tisdk-tiny-image-j721s2-evm.tar.xz

hw: tda4ve 

sbl boot stuck for a while at


SCISERVER Board Configuration header population... PASSED
Sciclient_setBoardConfigHeader... PASSED

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
01000000011a00006a3761657000000000000000475020200100010001000100CCCSBL Revision: 01.00.10.01 (Jul 25 2024 - 17:04:55)
306 main (Jul 25 2024 - 17:04:55)
320 main (Jul 25 2024 - 17:04:55)
329 main (Jul 25 2024 - 17:04:55)
334 main (Jul 25 2024 - 17:04:55)
1 Board_flashRead in SBL_ReadSysfwImage
TIFS ver: 8.5.2--v08.05.02 (Chill Capybar
SCISERVER Board Configuration header population... PASSED
Sciclient_setBoardConfigHeader... PASSED
366 main (Jul 25 2024 - 17:04:55)
378 main (Jul 25 2024 - 17:04:55)
Initlialzing PLLs ...done.
InitlialzingClocks ...done.
Initlialzing DDR ...01234560Board_DDRProbe: PASS
Board_DDRInitDrv: PASS
--->>> LPDDR4 Initialization is in progress ... <<<---
Reg Value: 128
Frequency Change type 1 request from Controller
Reg Value: 0
Reg Value: 128
Frequency Change type 0 request from Controller
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • When I try to comment out the function void SBL_SciClientInit(uint32_t devGroup)

    Fullscreen
    1
    2
    3
    4
    5
    #if !defined(SBL_SKIP_MCU_RESET)
    /* RTI seems to be turned on by ROM. Turning it off so that Power domain can transition */
    Sciclient_pmSetModuleState(SBL_DEV_ID_RTI0, TISCI_MSG_VALUE_DEVICE_SW_STATE_AUTO_OFF, TISCI_MSG_FLAG_AOP, SCICLIENT_SERVICE_WAIT_FOREVER);
    Sciclient_pmSetModuleState(SBL_DEV_ID_RTI1, TISCI_MSG_VALUE_DEVICE_SW_STATE_AUTO_OFF, TISCI_MSG_FLAG_AOP, SCICLIENT_SERVICE_WAIT_FOREVER);
    #endif
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

    It will get stuck for a while

    log show

    Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    SBL Revision: 01.00.10.01 (Aug 12 2024 - 16:07:55)
    306 main (Aug 12 2024 - 16:07:55)
    320 main (Aug 12 2024 - 16:07:55)
    329 main (Aug 12 2024 - 16:07:55)
    334 main (Aug 12 2024 - 16:07:55)
    1 Board_flashRead in SBL_ReadSysfwImage
    TIFS ver: 9.2.4--v09.02.04 (Kool Koala)
    SCISERVER Board Configuration header population... PASSED
    Sciclient_setBoardConfigHeader... PASSED
    366 main (Aug 12 2024 - 16:07:55)
    378 main (Aug 12 2024 - 16:07:55)
    Initlialzing PLLs ...
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    sbl boot stuck for a while at

    For additional debugging, could you kindly share your SBL  pdk_j721s2_09_02_00_30/packages/ti/boot/sbl file with us? 

    Regards,

    Karthik

  • The entire directory is too large and our company prohibits it, but I can take some code snippets for you to see.

  • Hi,

    I can take some code snippets for you to see.

    Yes, please share all of your modified code snippets.

    Regards,

    Karthik

  • Fullscreen
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    ---
    .../ti/board/src/j721s2_evm/J721S2_pinmux.h | 448 ++--
    .../board/src/j721s2_evm/J721S2_pinmux_data.c | 2228 +++++++++--------
    .../src/j721s2_evm/include/board_ddrRegInit.h | 291 +--
    .../src/j721s2_evm/include/board_internal.h | 4 +-
    packages/ti/boot/sbl/board/k3/sbl_main.c | 4 +
    packages/ti/boot/sbl/sbl_component.mk | 12 +-
    packages/ti/boot/sbl/src/ospi/sbl_ospi.c | 2 +-
    7 files changed, 1512 insertions(+), 1477 deletions(-)
    mode change 100644 => 100755 packages/ti/board/src/j721s2_evm/J721S2_pinmux.h
    mode change 100644 => 100755 packages/ti/board/src/j721s2_evm/J721S2_pinmux_data.c
    mode change 100644 => 100755 packages/ti/board/src/j721s2_evm/include/board_ddrRegInit.h
    mode change 100644 => 100755 packages/ti/board/src/j721s2_evm/include/board_internal.h
    mode change 100644 => 100755 packages/ti/boot/sbl/sbl_component.mk
    diff --git a/packages/ti/board/src/j721s2_evm/J721S2_pinmux.h b/packages/ti/board/src/j721s2_evm/J721S2_pinmux.h
    old mode 100644
    new mode 100755
    index 4c09a581..8def4ee9
    --- a/packages/ti/board/src/j721s2_evm/J721S2_pinmux.h
    +++ b/packages/ti/board/src/j721s2_evm/J721S2_pinmux.h
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

  • Hi,

    When I try to comment out the function void SBL_SciClientInit(uint32_t devGroup)

    Could you please explain why you are uncommenting this function and this modification isn't visible in the code snippets you sent me?

    I can take some code snippets for you to see.

    Can you please tell me why you modified the board_ddrRegInit.h file? Are you using a different DDR or the same DDR?

    It will get stuck for a while

     Please connect to the CCS and  identify the exact api that is causing the code stuck issue.

    Regards,

    Karthik

  • sorry for late

    Could you please explain why you are uncommenting this function and this modification isn't visible in the code snippets you sent me?

    Because this patch is a modification relative to the native SDK, the following comments are the results of debugging. The reason why there are no comments is that there is no effect.

    Can you please tell me why you modified the board_ddrRegInit.h file? Are you using a different DDR or the same DDR?

    the ddr config file is copy form sdk805,it works fine ,It's different from evm board which is 4G 
     

     Please connect to the CCS and  identify the exact api that is causing the code stuck issue.

    There is no condition to use ccs debugging here for the time being,has another way to debug?

  • Hi,

    There is no condition to use ccs debugging here for the time being,has another way to debug?

    I apologise. not able to locate the stuck code without CCS support

    Regards,

    Karthik