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.

TDA4VM: MMALIB ressource usage, compilation options and Test reports

Part Number: TDA4VM

Hello all,

We intend to use the MMALIB provided as part of the ti-processor-sdk-rtos-j721e-evm-08_02_00_05 package and as it is only provided as object files, we would need more information to comply with our corporate design rules:

  • MISRA compliance test reports
  • compilation options used
  • Design constraint taken into account on areas such as dynamic memory allocations or integration in a custom C71x application
  • Integration constraints such as stack usage

Could some details be shared on these subjects ?

Best Regards

  • What is your desired application? I anticipate this is deep learning application.

    The TIDL and TIOVX are the applications sitting above MMALIB in the stack has methods to include MMALIB kernels. Those are part of SDK. The MMALIB test bench with linker command files has all the information for stack and memory setup as examples. TIDL custom layer integration gives a method to integrate the MMALIB kernels for DNN layers not supported in TIDL. You can use that method.

    The compilation options used are internal to the MMALIB with -03 (highest optimization) on TI compiler. 

    Regards,

    Asheesh

  • Hi,

    Yes this is for deep learning bare metal application development.

    I have looked into the lnk_reg.cmd file in the mmalib folder of the SDK :

    - My understanding is that the stack is configured to 8KB. Is this the minimum stack value required ?

    - A heap of 8MB seems to be also reserved. For what and how is that heap used ? Is this the minimum heap value required ?

    Could you point to the "TIDL custom layer integration" documentation ? I was not able to find it in the TIDL or MMALIB user_guides.

    Best regards

  • Hi John,

    The application on top of MMALIB is not a bare metal development. The stack usage required for the given application. We have kept the stack max just for MMALIB inside the MMALIB linker command file but with application level that will change and SDK is the best reference for that. The custom layer documentation is part of TIDL offering. I will check with TIDL team to provide more references.

    Regards,

    Asheesh

  • Hi John,

         For public release we don't provide custom layer APIs. The same is available as part of addon package for Processor SDK RTOS and details to get the same can be found here:

    https://software-dl.ti.com/jacinto7/esd/processor-sdk-rtos-jacinto7/08_02_00_05/exports/docs/psdk_rtos/docs/user_guide/datasheet_sdk_j721e.html 

    Once this is installed the custom layer documentation can be found at following location:
    tidl_xx_xx_xx_xx/ti_dl/docs/user_guide_nda_html/md_tidl_custom_layer.html

    Regards,

    Anshu