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.

MPM and Resource Manager

Hello,


I want to use the MPM package to load images to DSP's in the EVMK2H.


I read this page: http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Developing_System_Mgmt

and with the MPM almost everything is clear. The issues are the next ones:

- How is related MPM with Resource Manager? Do I have to configure RM in order to use MPM?

- About using MPM, is it necessary to modify or even create a config file (.json) to be able to run mpmcl from command line?

- If I want to use MPM but from an application instead of CLI, I read I have to include the mpmclient.h , but the question is if thats enough or, again, I shall configure the config file, etc.

Thank you for the help.

Ronny

  • Hi Ronny,

    Please check the Image Processing Demo source available in MCSDK 3.0 which uses the IPC for ARM to DSP Communication.

    PATH: ..\ti\mcsdk_bios_3_00_03_15\demos\image_processing

    Please download the latest MCSDK image.

    MCSDK:  http://software-dl.ti.com/sdoemb/sdoemb_public_sw/mcsdk/latest/index_FDS.html

    Thanks.

  • Rajasekaran,

    Could you please tell me where is MPM used? Because in that demo I searched and I didnt find anything related to MPM.


    Insde the demo, there are 3 folders, one images which contains the examples images, another  carpet  with the webpage itself, and the IPC carpet with code sources and libraries. Nevertheless, in thoses codes I cannot find anything related to MPM loader or mpmclient.h


    The following image might help. Inside the mcip_xxxx.c or .h files, there is nothing about MPM.

  • Hi Ronny,

    You are correct. Updated my previous post. Apologize for the wrong information.

    - How is related MPM with Resource Manager? Do I have to configure RM in order to use MPM?

    No. MPM transport layer running on Linux is enough to use MPM.

    - About using MPM, is it necessary to modify or even create a config file (.json) to be able to run mpmcl from command line?

    The default config(.json) file is enough to run mpmcl from command line. The config files provides the DSP configuration parameters to the MPM.

    - If I want to use MPM but from an application instead of CLI, I read I have to include the mpmclient.h , but the question is if thats enough or, again, I shall configure the config file, etc.

    You shall write your own application to reset/load/run using the mpmclient API's and link it with library libmpmclient.a.

    Thanks.

  • Thank you Rajasekaran,


    Your help is very useful.

    What about IPC? Can I use IPC(msgcom) in ARM without config the RM? Or this time is it necessary?

    Regards

    Ronny

  • Ronny,

    RM Supported LLDs are QMSS, CPPI and PA.
    Find the example code for how RM instance transports can be handled over IPC for DSP to DSP applications.
    It is provided in pdk_<device>_w_xx_yy_zz/packages/ti/drv/rm/test/rm_transport_setup.c
    Go through this wiki articles to find more information.
    http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Developing_System_Mgmt#Resource_Manager
    http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Developing_System_Mgmt#DSP_.2B_ARM_Linux_Test_Project

    The MessageQ based IPC is used between ARM to DSP and beween DSP to DSP.
    Please refer to Transport Section in Exploring Chapter of the Keystone-II User's Guide for more information.
    The image processing demo has ARM side master code and DSP slave code.
    To see how the IPC communication between ARM and DSP is coded, refer to the source code in the below path.
    mcsdk_bios_x_xx_xx_xx/demos/image_processing/ipc/master/src
    mcsdk_bios_x_xx_xx_xx/demos/image_processing/ipc/slave/src

  • Thank you Pubesh!

    Ronny