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.

System_printf() missing messages

Expert

I notice  System_printf missing messages on  Vayu GLSDK. 

Here is print information from console 

root@dra7xx-evm:~# mount -t debugfs none /debug
root@dra7xx-evm:~# cat /debug/remoteproc/remoteproc0/trace0
[ 0.000] 18 Resource entries at 0x95000000
[ 0.000] DSP1 starting..
root@dra7xx-evm:~#

tools_ShowVersion() did not print information if we go through the code.  Actually tools_ShowVersion() information is output in trace buffer as I check ROV by CCS.   The message after red line is not output in console though display in ROV of CCS. Here is setting in *.cfg.  It doesn't help even I refer below link in forum. 

http://e2e.ti.com/support/embedded/tirtos/f/355/t/153100.aspx

var System = xdc.useModule('xdc.runtime.System');

var SysMin = xdc.useModule('ti.trace.SysMin');
System.SupportProxy = SysMin;
SysMin.bufSize = 0x8000;

 

void tools_ShowVersion()
{
System_printf("\n\n **** DSPMM VERSION INFO **** \n\nCompile DATE %s TIME %s \n", __DATE__, __TIME__);

System_printf("\n** DSPMM VERSION INFO END ** \n");
#if 1
System_printf("Trace Buffer PA 0x%x Trace Level %d\
\nTrace Usage: level:[0-4: 0-no trace, 1-err, 2-debug, 3-info, 4-CE,FC,IPC traces] \n\n",
MEMUTILS_getPhysicalAddr((Ptr)(TRACEBUFADDR)), dce_debug);
#endif
}

int main(int argc, char * *argv)
{
extern void start_load_task(void);
UInt16 hostId;

/* Set up interprocessor notifications */
System_printf("%s starting..\n", MultiProc_getName(MultiProc_self()));

hostId = MultiProc_getId("HOST");
RPMessage_init(hostId);

/* Some background ping testing tasks, used by rpmsg samples: */
start_ping_tasks();

/* CPU load reporting in the trace. */
// start_load_task();

/* Dump Tools version */
tools_ShowVersion();

BIOS_start();

return (0);
}

BR

Dong

  • Dong,

         Either you need to call System_flush() to output the contents of SysMin to the console or wait till your application exits. Try calling System_flush() after your System_printf() to see the output on your console.

    Let me know if this helps

    Moses

  • Dong,

    Is this still an issue, or did you get it resolved?

    The ti.trace.SysMin module is provided by IPC. Which version of IPC are you using?

    This particular implementation does not implement the flush() method. If you are still having a problem, it must be something else.

    ~Ramsey

  • Ramsey

    Appreciate your help. I just come back from national day. I got the system_printf() issue resolved.  I 'm using ipc_3_20_00_06.

    one more thing,  I can not get dskt2trace out by following command though i can see the trace in tracebuffer.

    $ mount -t debugfs none /debug; 
    $ cat /debug/remoteproc/remoteproc0/trace0;  

    I set following in *.cfg

    xdc.loadPackage('ti.sdo.fc.dskt2').profile = "debug";

    BR

    dong

  • Moses

    It does help. Thanks.  I'm not clear which configuration is working as I notice two setting in directory.

    ./platform/ti/dce/baseimage/dce_ipu.cfg:298:System.SupportProxy = SysStd;
    ./platform/ti/configs/vayu/IpcCommon.cfg.xs:39:System.SupportProxy = SysMin;

    BR

    Dong