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/TDA2: TDA2xx rvp: Null source

Part Number: TDA2

Tool/software: TI-RTOS

Dear All,

We are working on TI TDA2X (Both RVP and EVM).

So far:

1. Able to run "apps" use cases.

2. Able to run "sample_app" config use case.

i.e The "sample_apps" i.e. from file of /vision_sdk/sample_app/src/rtos/* has "NullSource -> Alg_FrameCopy (DSP1) ->Display"

We are able to see the "TI logo" in the center of the HDMI output display.

Question:

Where is the nullsource center "TI logo" frame buffer or source buffer?

We tried to look into the links of nullsrc i.e. links_fw/src/rtos/links_common/nullSrc/nullSrcLink_tsk.c but not much progress could be made. 

Need your support in explaining the "NullSource" input buffer and where is the buffer filled for the first time.

Knowing this would help us to give our own predefined test scenario buffer data.

Regards,

KK

  • Ti Logo is included as a static array from the following header file

    #include <src/common/TI_logo_640_224_sp.h>

    Regards
    Chetan.M
  • Hello Chetan,

    The information was helpful,

    I see that :

    null_src_display/chains_nullSrcDisplay.c


    223 static Void fillSrcBuf(chains_nullSrcDisplayObj *pObj)
    224 {

    ...
    236     status = System_linkControl(
    237     pObj->NullSourceLinkID,
    238     NULL_SRC_LINK_CMD_GET_BUF_INFO,
    239     &getBufInfoPrm,
    240     sizeof(NullSrcLink_GetBufInfoParams), //==> where is this destination buf created?
    241     TRUE);

    244     for (bufCnt = 0;bufCnt < getBufInfoPrm.numBuf;bufCnt ++)
    245     {

    262         offset = (logoStartY * NULLSRC_OUT_WIDTH) + logoStartX;
    263         dstAddr = (UInt8*)((UInt32)pVideoFrame->bufAddr[0] + offset); //==>destination buffer address.

    264         srcAddr = tiLogo_640_224; //==> This is where it is used as a source
    ..
    283         Cache_wb(); //==> What is the role of this?

    294             }
    295 }

    Thanks,
    KK

  • Hi KK,

    Please find answers below:

    Que 1 : where is this destination buf created?

    destination buffers has been created by the Null_src link at the create time.
    In line no 240 its a size of buffer information structures.
    by calling the api at line 236 with the given params its asking the link about how many no of buffers has been created and information of all buffers.

    Que 2 : destination buffer address.

    this is the destination address from where the Ti logo will start.

    Que 3 : This is where it is used as a source

    Yes that is the address of source buffer.

    Que 4 : What is the role of this?

    this api is called to write back the cache data on the ddr so that it will be shown to other cores as well.

    Regards,
    Anuj
  • Thanks Anuj,

    The information was helpful and understood Q2 , Q3, Q4.

    Que 1 : where is this destination buf created?
    "its asking the link about how many no of buffers has been created and information of all buffers."
    Q 1.1. Which source file should we refer to understand the NullSource link.
    Q1.2. If design needs to change the Number of buffer and the size of the buffer, where/what is the procedure?

    Thanks for the support,

    Regards,
    KK
  • Hi,

    Q 1.1. Which source file should we refer to understand the NullSource link
    vision_sdk\links_fw\src\rtos\links_common\nullSrc\
    vision_sdk\links_fw\include\link_api\nullSrcLink.h

    Q1.2. If design needs to change the Number of buffer and the size of the buffer, where/what is the procedure
    This things you need to change in usecase file (vision_sdk\apps\src\rtos\usecases\null_src_display\chains_nullSrcDisplay.c)

    check the implemetation of this function
    chains_nullSrcDisplay_SetAppPrms()

    Please go through the below doc for more information
    vision_sdk\docs\FeatureSpecificUserGuides\VisionSDK_DevelopmentGuide.pdf

    Regards,
    Anuj
  • Hello Anuj,

    Information about the SetAppPrms and document is helpful.
    I will read through the document and will get back if still there are some questions.

    Thanks,
    KK