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.

Log_print0() output

Other Parts Discussed in Thread: OMAP3530

Hi,

it seems to be so obvious that no one writes about it or I can't find it. So here is the question: if I run SysLink examples in console, where is the output of Log_print0() commands used on DSP side?

  • Hi Valdez.

    What device are you using?

    Todd

  • Hi Todd,

    I use OMAP3530 on Beagleboard.

    I see in Dsp.cfg these lines:

    /* create a logger instance */
    var LoggerBuf = xdc.useModule('xdc.runtime.LoggerBuf');
    var loggerBufP = new LoggerBuf.Params();
    loggerBufP.numEntries = 128;  /* 128 entries = 4 KB of memory */
    loggerBufP.bufType = LoggerBuf.BufType_FIXED;

    var appLogger = LoggerBuf.create(loggerBufP);
    appLogger.instance.name = "AppLog_Core1";
    Defaults.common$.logger = appLogger;

    But how to see that logs? Do I need JTAG connection? If yes, so it is not possible to see it outside of CCS?

  • The most straight-forward way to view the log data is to have a CCS connection. Then use Tools->ROV to view the LoggerBuf output.

    You can use LoggerSM (instead of LoggerBuf) in the UIA product and have the log data go into shared memory and be displayed by the ARM (assuming it is running linux).

    Todd

  • Thank you for the answer. Now I have to learn how to make connection between CCS and DSP core in OMAP3530 via XDC100v2.

  • Dear Sir


     I have tried to get LoggerSM from UIA to work with the examples shipped with syslink
    but it didn't work. When I removed all calls to Ipc and SysLink API's, everything worked
    fine. I mean I just left bios tasks and calls to xdctools modules. So I did
    ./loggerSMDump.out 0x8D000000 0x200000 dsp
    and I can see all the logs fine. This was done on BeagleBoard and overoboard both with
    OMAP3530.  I am not sure whether this is a problem with the integration with syslink or
    is it a configuration problem from me. I use the Notify example with syslink_2_20_00_14.
    I updated bios, xdctools, ipc to the latest releases so I use

    I use uia_1_01_01_14
    bios_6_34_03_19
    xdctools_3_23_02_47
    ipc_1_24_00_16


    I modified the memory map as you can see in the attached files to allocate more memory
    for the logger, the shared region etc.., but that didn't make a difference. Still programs
    that used bios and xdctools worked and programs that used Ipc didn't work.
    I have attached the modified Dsp.cfg and the shared/config.bld
    Thanks

    Hazem

    files.zip
  • Hi,

                I am using DM8148 and CCS tool version 5.3, I am able to locate LoggerBuf but I dint find the LoggerSM. So how can I view the log data.


    example code:

        Log_print0(Diags_ENTRY, "--> main:");

    Thanks,

    Sudheer.