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.

mpmcl trace not working

Hello

I test hyplnk_K2HC66BiosExampleProject in EVMk2h board.

I want to see in hyperlink trace log in linux mode. I followed http://processors.wiki.ti.com/index.php/MCSDK_UG_Chapter_Developing_System_Mgmt  

and I run the example program using mpmcl. but I can't see log in trace0 file.

This is trace file body.

root@k2hk-evm:~/nfs/dsp# cat /sys/kernel/debug/remoteproc/remoteproc0/trace0

2 Resource entries at 0x800000

when I tested  that project using CCS 6.1, I confirmed all log.

can I see dsp hyper link trace log in linux??

regards.

  • Hi,

    Have you added the required config options in *.cfg file of hyperlink DSP example code which you running on ARM via mpmcl ?

    Please refer to the following TI wiki page, chapter.

    processors.wiki.ti.com/.../MCSDK_UG_Chapter_Developing_System_Mgmt
  • Hi
    I added .cfg file . example code. I try to another exmaple project. trace works fine. but hyplnk_K2HC66BiosExample don't work.

    Thanks
  • Hi, Please share the updated .cfg file of hyplnk_K2HC66BiosExample project and also try increasing the buffer size,

    Program.global.sysMinBufSize = 0x8000;
    
    var System = xdc.useModule('xdc.runtime.System');
    
    var SysMin = xdc.useModule('xdc.runtime.SysMin');
    
    System.SupportProxy = SysMin;
    
    SysMin.bufSize = Program.global.sysMinBufSize;
    
    /* Configure resource table for trace only.
    
      Note that, it traceOnly parameter should not
    
      be set if application is using MessageQ based IPC
    
      to communicate between cores.
    
    */
    
    var Resource = xdc.useModule('ti.ipc.remoteproc.Resource');
    
    Resource.loadSegment = Program.platform.dataMemory;
    
    Resource.traceOnly = true;
    

    From FAQ:(Please ignore if you have checked this)

    Q: I don't see DSP prints from debugfs

    A: Make sure you followed the procedure described above to include the resource table in the image. Care should be taken for the resource table not being compiled out by linker. To check if the resource table present in the image using command readelf --hex-dump=.resource_table  . It should have some non-zero data. Another point is, if you are loading same image in multiple cores and if the resource table and trace buffer segments overlap with each other in memory, then there can be undesirable effect. Thank you.

  • Hi.

    This is my cfg file.

    I think I added required config.

    Thanks.

    memoryMappedExample.cfg

  • Hello?
    Nobody here??
  • Yes. Apologize for the delay.

    I have gone through your .cfg file, could not find any issue. I have few more suggestion to check at your end.

    1. Please check the MCSDK MPM example is working on your setup . Please find the path below,

    PATH: :\ti\mcsdk_bios_3_01_03_06\examples\mpm\mpmsrv_keystone2_example

    2. Try Increasing the buffer size in the BIOS configuration file,

    Program.global.sysMinBufSize = 0x8000

    Please confirm the MCSDK verison used for the testing.

    Thank you.

     

  • Hi Raja

    1. I ran another example project(SRIO project), the project works fine, and project I made works fine.

    2. I try to increase Program.global.sysMinBufSize, I set 0x800000, the project is not working. I can't find suitable memory size. and My MCSDK version is 3.01.03.06.

    and "2 Resource entries at 0x800000", what is means??

    Regards.
    Shin.
  • I solve it

    The hyplnk_K2HC66BiosExampleProject has not include "xdc" header file.

    I inserted
    "
    #include <xdc/std.h>
    #include <xdc/runtime/Error.h>
    #include <xdc/runtime/System.h>
    "
    words in the hyplnkResource.h file and run it. It works fine.

    Thanks.
    Shin.
  • Hi Shin,
    Sounds good.
    Thanks for your update.
  • Hi Shin,Great. Thank you.