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.

RTOS/TDA2P-ACD: Building appImage for pdk package

Part Number: TDA2P-ACD

Tool/software: TI-RTOS

Hello All,

I am new to vision sdk.

I have been trying to run  the example 'mcspi_spi1tospi2' in Processor SDK at 'PROCESSOR_SDK_VISION_03_03_00_00/ti_components/drivers/pdk_01_09_00_17/packages/ti/drv/bsp_lld/mcspi/examples' with TDA2px EVM + Fusion Board.

App Image is getting generated.

But when I try to run the image I get only following message:

 TDA2Px SBL Boot

 DPLL Configuration Completed

 Clock Domain Configuration Completed

 Module Enable Configuration Completed

 TI EVM PAD Config Completed

 TDA2Px DDR Configuration

 DDR Config Completed

 App Image Download Begins

 SD Boot - file open completed successfully

Trying to boot App Image with header version 1

 IPU1 CPU0 Image Load Completed

 App Image Download Completed

 Putting MPU CPU1 in Off mode

 EVE MMU configuration completed

 EVE MMU configuration completed

*****************************************************************

 PMCCNTR counts once every 64 clock cycles, multiple by 64 to get actual CPU cycles

 SBL Initial Config Cycles - 118244  (10.9 ms)
 SOC Init Cycles - 170491  (14.54 ms)
 DDR Config Clock Cycles - 89753  (7.65 ms)
 App Image Load Cycles - 4565193  (389.56 ms)
 Slave Core Bootup Cycles - 130834  (11.16 ms)
 SBL Boot-up Cycles - 5075571  (433.11 ms)
 Time at which SBL started IPU1_0 - 22908  (1.95 ms)
*****************************************************************

 Putting MPU in Retention...

I am using following images:

-> PROCESSOR_SDK_VISION_03_03_00_00/ti_components/drivers/pdk_01_09_00_17/packages/ti/binary/bsp_examples_mcspi_spi1tospi2/bin/tda2px-evm/bsp_examples_mcspi_spi1tospi2_ipu1_0_release.appimage renamed to Appimage

->/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/drivers/pdk_01_09_00_17/packages/ti/binary/sbl/sd/opp_nom/tda2px-evm/MLO

Building steps:-

export MAKECONFIG=tda2px_evm_bios_all

export MAKEAPPNAME=apps

export VISION_SDK_PATH=~/ADAS/PROCESSOR_SDK_VISION_03_03_00_00/vision_sdk

export PATH="$VISION_SDK_PATH"/../ti_components/os_tools/linux/xdctools_3_32_01_22_core:$PATH

export BOARD=tda2px_evm

cd "~/ADAS/PROCESSOR_SDK_VISION_03_03_00_00/ti_components/drivers/pdk_01_09_00_17/packages/ti/build"

Please help me.

Regards,

Prasad

  • Hi Prasad,

    Have you connected two EVMs as given in processors.wiki.ti.com/.../PDK_TDA_CSL_User_Guide
    Also as you are running the app using SBL you need to wait for SBL to finish. To do this you can add a 100 ms wait in the beginning of MCSPI application.

    Regards,
    Rishabh
  • Hi Rishabh,

    Thank you for your quick response.

    I was trying to check whether the programs start or not by waiting to see any print messages on the console. But since no message was seen on console I felt it is not running.

    I had given the board for taking lines out from the board as pin outs are not available. (Please consider providing some jumper connectors for gpios & other peripherals like spi, uart, etc. similar to your other SoC's evms).

    I will run the mcspi_spi1tospi2 today again with hardware connections.

    One update: when I ran the Led blinking example, I can see leds blinking.

    So, that means applications are running properly but System_printf() outputs are not redirected to terminal via uart.

    Can you tell me how to do this?

    Regards,
    Prasad
  • Hi Prasad,

    Led blink app is working fine.
    System_printf is not routed to UART. You should use Vps_printf.

    Regards,
    Rishabh
  • Hi Rishabh,

    Since Vps_printf is in vision sdk (vision_sdk/links_fw/src/rtos/utils_common/src/utils_remote_log_server.c), when I compile mcspi_loopback example with System_printf replaced by Vps_printf, I get compilation termination error.

    Please help on how to resolve this.

    Regards,
    Prasad
  • Hi Prasad,

    Sorry I did not understand that you want to use prints in BSP example.
    Can you see if GT_0trace works for you.

    Regards,
    Rishabh
  • Hi Rishabh,

    I tried with GT_0trace(as shown below), but it didn't work:
    void spiSampleTask(UArg arg1, UArg arg2)
    {
    Task_sleep(1000U);
    GT_0trace(BspAppTrace, GT_ERR, "spiSampleTask started!!!\n");

    Also, I tried with Bsp_printf() & uartStdio(present in <pdk>/packages/ti/drv/stw_lld/uartconsole/src/uartStdio.c) but nothing gets printed on the console.

    However, Uart Echo Example(present at <pdk>/packages/ti/drv/bsp_lld/uart/examples/uart_echo) works.

    Please tell me how to proceed.

    Regards,
    Prasad
  • Hi Prasad,

    Sorry for the delayed response.
    Can you try running the DSS example i.e. vps_examples_displayDss using SBL.
    This application has UART prints. Let's confirm if that works for you.

    Regards,
    Rishabh
  • Hi Rishabh,

    With vps_examples_displayDSS, I can see some messages. Following is the console log:-

    TDA2Px SBL Boot

    DPLL Configuration Completed

    Clock Domain Configuration Completed

    Module Enable Configuration Completed

    TI EVM PAD Config Completed

    TDA2Px DDR Configuration

    DDR Config Completed

    App Image Download Begins

    SD Boot - file open completed successfully

    Trying to boot App Image with header version 1

    IPU1 CPU0 Image Load Completed

    App Image Download Completed

    Putting MPU CPU1 in Off mode

    EVE MMU configuration completed

    EVE MMU configuration completed

    *****************************************************************

    PMCCNTR counts once every 64 clock cycles, multiple by 64 to get actual CPU cycles

    SBL Initial Config Cycles - 118320 (10.9 ms)
    SOC Init Cycles - 170581 (14.55 ms)
    DDR Config Clock Cycles - 89688 (7.65 ms)
    App Image Load Cycles - 7129136 (608.35 ms)
    Slave Core Bootup Cycles - 130991 (11.17 ms)
    SBL Boot-up Cycles - 7639771 (651.92 ms)
    Time at which SBL started IPU1_0 - 29831 (2.54 ms)
    *****************************************************************

    Putting MPU in Retention...

    Build time : [15:42:47 Jun 26 2018]
    FVID2 Version : [FVID_02_01_00_01]
    BSP Version : [PDK_01_09_00_xx]
    Platform : [EVM]
    SOC : [TDA2PX]
    SOC Revision : [ES1.0]
    FT Revision : [3]
    Package : [UNKNOWN]
    Core : [M4]
    Board Detected : [Vision]
    EEPROM Base Board Name: [DRA76/7xP,TDA2P]
    Base Board Revision : [REV A]
    Daughter Card Revision: [REV D]

    Load 4 YUV422I_YUYV video frames of size 1920x1080 to location: 0x81400000
    Trying to Load buffer from SD card.
    FatFs: CD to dir /dss_input_files failed
    Couldnot Load buffer from SD card.
    waiting for 1 min to load buffer from scripting consolePress any key (in UART console) after loading buffer

    This confirms uart prints via SBL works.
    If I'm not wrong, starting log (till "Putting MPU in Retention...") itself confirms that uart prints via SBL works.

    Should I try with printing via SBL or any other approach do you suggest?

    Regards,
    Prasad
  • Hi Prasad,

    All the prints after "Putting MPU in Retention..." are from DSS application.
    This confirms that UART prints are working fine.
    Now if you see bsp_examples_mcspi_spi1tospi2 application source code, you will see System_printf being used for prints.
    These prints are sent to CIO console.
    You should refer to DSS example and then replace console prints with UART prints.
    This way you will be able to run the application using SBL.

    Regards,
    Rishabh
  • Hi,

    We haven't heard back from you, I'm assuming you were able to resolve your issue.
    If not, just post a reply below (or create a new thread if the thread has locked due to time-out).

    Regards,
    Rishabh
  • Hi Rishabh,

    Sorry for the delay.

    I am busy with few other things, so was not able to check this.
    Also, in the mean time, I got access to debugger. So, was not blocked on this.

    I will update about this as soon as I test this.

    Thank you for your support till now.

    Regards,
    Prasad
  • Hi Prasad,

    Do let me know in case you face any issues.

    Regards,
    Rishabh