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.

TDA2EVM5777: Vision SDK sample_app build configuration

Part Number: TDA2EVM5777
Other Parts Discussed in Thread: TDA2

Hello,

I am attempting to build the sample_app provided with PROCESSOR_SDK_VISION_03_06_00_00 for TDA2 EVM with RTOS (config: tda2xx_evm_bios_all).

My Vision SDK is located in the path C:\PROCESSOR_SDK_VISION_03_06_00_00, while my 'build', 'links_fw', and 'sample_app' folders are located in the path D:\TEST.

Following build steps from the TDA2xx Vision SDK User Guide and with a few modifications to the makefiles, I was able to build the sample_app.

The issue is, my binaries are getting generated in the path C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\binaries.

How can I modify the make configuration so that my binaries are generated in the path D:\TEST\binaries?

Thank you.

  • Hi,

    You need to change DEST_ROOT in PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\build\rtos\makerules\env.mk.

    Regards,
    Rishabh
  • Hello,

    My objective is to separate the application from the TI toolchain and other VSDK dependencies. Thus, my folder structures are as shown below.

    C:\PROCESSOR_SDK_VISION_03_06_00_00

         |___ti_components
         |___vision_sdk
                |___apps
                |___build
                |___docs
                |___links_fw
                |___sample_app

    D:\TEST

               |___binaries
               |___build
               |___links_fw
               |___sample_app

    I also performed the following steps:

    (1) All content under C:\PROCESSOR_SDK_VISION_03_06_00_00 is unchanged from its default state

    (2) Edited line #13 of D:\TEST\build\Rules.make to build 'sample_app' instead of 'apps'

    (3) Edited line #2 of D:\TEST\build\tools_path.mk to point to C:\PROCESSOR_SDK_VISION_03_06_00_00\ti_components

    (4) Edited line #11 of D:\TEST\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    I had expected that these steps will create the executables as I wanted. But the executables are still getting created under C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\binaries.

    It appears that the build configuration from D:\TEST does not override the configuration from C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\build.

    What are the proper steps to achieve this?

    Thank you.

  • Hi,

    I see binaries folder inside D:/Test as well as shared in the above folder.
    Are you initiating build from D:/Test/build folder?
    Are you seeing few folders in C:\PROCESSOR_SDK_VISION_03_06_00_00\ and others in D:\Test or everything is under C:\PROCESSOR_SDK_VISION_03_06_00_00\.

    Regards,
    Rishabh
  • Hello,


    Rishabh Garg said:

    I see binaries folder inside D:/Test as well as shared in the above folder.

    In the folder structure that I have depicted, I have shown the binaries folder under D:\TEST only, because that is how I want it.

    Rishabh Garg said:

    Are you initiating build from D:/Test/build folder?

    Yes.

    Rishabh Garg said:

    Are you seeing few folders in C:\PROCESSOR_SDK_VISION_03_06_00_00\ and others in D:\Test or everything is under C:\PROCESSOR_SDK_VISION_03_06_00_00\.

    I am seeing everything under C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\.

    Thank you.

  • Hi,

    Just to confirm, the build folder (D:\Test\build) from where you are trying to build, Did you copied it from "C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk" folder ?

    And also looking like you are modifying wrong "env.mk" file

    (4) Edited line #11 of D:\ADAS_PRK_I\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    Either you should edit the file under C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    or edit the file under D:\Test\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    Regards

    Surya

  • Hello,

    Suryamani Jena said:

    Just to confirm, the build folder (D:\Test\build) from where you are trying to build, Did you copied it from "C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk" folder ?

    Yes.

    Suryamani Jena said:

    And also looking like you are modifying wrong "env.mk" file

    (4) Edited line #11 of D:\ADAS_PRK_I\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    Either you should edit the file under C:\PROCESSOR_SDK_VISION_03_06_00_00\vision_sdk\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    or edit the file under D:\Test\build\rtos\makerules\env.mk to point to D:\TEST\binaries

    I did NOT edit D:\ADAS_PRK_I\build\rtos\makerules\env.mk. By mistake, I specified the wrong path here; I have corrected step (4) in my earlier postI edited D:\TEST\build\rtos\makerules\env.mk to point to D:\TEST\binaries, which is as per your suggestion.

    Thank you.

  • Hi,

    1. Instead of changing DEST_ROOT in file D:\Test\build\rtos\makerules\env.mk, you can modify "vision_sdk_PATH " in file "Rules.mk"

    & then try building from D:\TEST\build folder

    vision_sdk_PATH  := $(abspath ..)

    to

    vision_sdk_PATH  := D:\TEST

    2. Rename "vision_sdk" folder inside the "PROCESSOR_SDK_VISION_03_06_00_00" package to "__vision_sdk"

    & then try building from D:\TEST\build folder

    Regards

    Surya

  • Hello,

    Your suggestion worked nicely. The binaries were generated under D:\TEST, as required.

    Thank you very much for your help.

  • Hi Sagar,

    Thanks for the update and confirmation.

    Regards,
    Rishabh