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.

TDA4VH-Q1: TI EVM booting from SD then OSPI

Part Number: TDA4VH-Q1

Tool/software:

i have created mcu0_freertos.xer5f image with example SDL 

how to use it with SBL and execute

Regards,

Yogesh Asati

Aptiv Bangalore

  • Yogesh,

    The engineer assigned is out of office until Oct. 4th.

    Please expect a delay in response.

    -Josue

  • Hi Yogesh, 

    For booting via SD boot mode: 5.2. J784S4 SBL — Platform Development Kit (PDK) - J784S4 User Guide (ti.com)

    1. Copy the SBL image present in pdk/packages/ti/boot/sbl/binary/j784s4_evm/mmcsd/sbl_mmcsd_img_mcu1_0_release.tiimage as tiboot3.bin to the boot partition of SD card.
    2. Copy the TIFS image present in pdk/packages/ti/drv/sciclient/soc/V6/tifs.bin as tifs.bin to the boot partition of SD card.
    3. Load the appimage present in sdl/binary/esm_main_app/esm_main_app_r5f_mcu1_0_freertos_debug.appimage as app to the boot partition of SD card. (You do not have to use the xer5f binary. You can directly use the .appimage generated in the same folder)
    4. Use the following link to set the device boot mode pins to mmcsd boot mode - 7. EVM Setup for J784S4 — Processor SDK QNX J784S4 (ti.com)
    5. Plug in the SD card, connect to the MCU UART and you should see the output logs there.

    For booting via OSPI mode: 5.2. J784S4 SBL — Platform Development Kit (PDK) - J784S4 User Guide (ti.com)

    1. The SBL image (pdk/packages/ti/boot/sbl/binary/j784s4_evm/mmcsd/sbl_mmcsd_img_mcu1_0_release.tiimage), TIFS (pdk/packages/ti/drv/sciclient/soc/V6/tifs.bin as tifs.bin) and appimage (sdl/binary/esm_main_app/esm_main_app_r5f_mcu1_0_freertos_debug.appimage) will be the same in this case as well.

    Regards,

    Josiitaa

  • Hi Josiitaa,

    Thanks for reply,

    i am building TI SDk example:

    command to build sdl example

    ti-processor-sdk-rtos-j784s4-evm-10_00_00_05/sdl$ make esm_main_app SOC=j784s4 BUILD_OS_TYPE=freertos PROFILE=debug

    Execution logs below

    Welcome to minicom 2.8
    OPTIONS: I18n                                                                
    Port /dev/ttyUSB5, 12:59:15                                                                                                                      
    Press CTRL-A Z for help on special keys                                                                                                                                                    
    SBL Revision: 01.00.10.01 (Aug 12 2024 - 09:19:00)   

                                                                  
    TIFS  ver: 10.0.8--v10.00.08 (Fiery Fox)                                                                           
    mcuClkFreq 1000000000                                                                                              
                                                                                                                       
    ESM Example Application                                                      
                                                                                 
    ESM_ECC_Example_init: Init MAIN ESM complete                                 
                                                                                 
    Failed to configure the RAT index 2 address 0x20000000                       
    SDTF_init: Error initializing R5F core ECC: result = -1                      
                                                                                 
     ESM Safety Example tests: unsuccessful                                      
     ESM UC-6 and UC-7 Test Failed.                                              

    Some tests have failed.
    main.c:297:esm_app:FAIL

    -----------------------
    1 Tests 1 Failures 0 Ignored
    FAIL

    ---------------------------------------------------

    I can RAT failed

    i tried other apps also all failing on

    RAT index 2 address 0x20000000 

    there are no my local changes.

    Regards,

    Yogesh

  • Hi Josiitaa,

    these are my contains of SD card BOOT partition:

    dlb58q5j3@diagdenali:/media/dlb58q5j3/BOOT$ ll
    total 5772
    drwxr-xr-x  3 dlb58q5j3 dlb58q5j3    4096 Jan  1  1970  ./
    drwxr-x---+ 4 root      root         4096 Oct  5 14:04  ../
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3 1246324 Oct  5 12:51  app
    drwxr-xr-x  2 dlb58q5j3 dlb58q5j3    4096 Oct  3 22:03 'System Volume Information'/
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3  303967 Oct  5 12:47  tiboot3.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3  476225 Oct  1 19:48  tiboot3-j784s4-gp-evm.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3  476225 Oct  1 19:48  tiboot3-j784s4-gp-evm-j784s4-evm-k3r5-2024.04+git-r0_tisdk_5_edgeai_4.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3  478814 Oct  1 19:48  tiboot3-j784s4-hs-evm.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3  478814 Oct  1 19:48  tiboot3-j784s4-hs-fs-evm.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3  158666 Oct  5 12:57  tifs.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3 1086687 Oct  1 19:48  tispl.bin
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3 1164635 Oct  1 19:48  u-boot.img
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3    1135 Oct  1 19:48  uEnv.txt
    -rw-r--r--  1 dlb58q5j3 dlb58q5j3      14 Oct  1 19:48  version

    Regards,

    Yogesh

  • HI Josiitaa,

    if i build for baremetal esm_main its passed

    build command:   make esm_main_app SOC=j784s4

    am i doing any mistake for building freertos same esm_main_app ?

    regards,

    Yogesh

  • Hi Yogesh,

    Are you planning on executing all the examples on freertos?

    I will try executing the SDL example on freertos and see if I can reproduce the issue by Monday(7/10).

    Regards,

    Josiitaa 

  • hi josiitaa,

    for now, i am just planning to execute  freertos  main_esm0.appimage 

    I am blocek here.

    Can we have joined debug seesion today at 3 to 4 PM.

    let me know i will send meeting invite.

    you can include your expert engineer if you need.

    regards,

    Yogesh

  • Hi Yogesh,

    I am able to reproduce this issue as well. I will check with the internal team and get back to you in a few days.

    I see that you have created an E2E with the same discussion - https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1421461/tda4vh-q1-freertos-sdl-example-apps-failed-but-pass-on-baremetal

    Let us continue the discussion there.

    Regards,

    Josiitaa