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.

Turn OFF runtime messages

Hi,

When runtime memory allocation fails, i get the message "xdc.runtime.Error @ ti.sdo.ipc.heaps.HeapMemMP: line 743:  E_memory: Out of memory: handle=0x3d3205c0, size=16384"printed on the STDOUT / CCS console. My application handles this error condition and allocates from another segment. In our product, the STDOUT is used print status / messages. This error print by BIOS is causing an un-desired effect.

How do we turn this message OFF.

 Thanks Sujith

  • Sujith,
    the message could be coming from Error.print, which is the default Error.raiseHook function. There could be other pathways, for example the logger for the Error module is enabled, and is set to LoggerSys or some other logger that sends messages to the console. You can verify that if you look into your config script and look for a statement that sets Error.common$.logger or Default.common$.logger.

    First, try the following code:
    var Error = xdc.useModule('xdc.runtime.Error');
    Error.common$.logger = null;
    Error.raiseHook = null;

    Comment out the third statement and uncomment the second one and try your app. Then coment out the second and uncomment the third. See if any of these changes disables the message, and which one. Please let me know the result.

    Depending on the result of that experiment, there are different ways of redirecting or disabling messages logged from the Error module, but none of them can disable only that one specific message. You'll have to disable or redirect a whole category of the error messages. If the error is coming from the parameter Error.raiseHook, you can write your own raise hook, and decide what to do with the messages from raised errors. Here is an example how to do it: http://rtsc.eclipse.org/docs-tip/Using_xdc.runtime_Errors/Example_3, and also the actual source of Error_print (the default hook) is available in xdc/runtime/Error.c

  • Thanks Sasha, i did not get a chance to try this today. I will update you once i have tested with the options that you given.

    Thanks,
    Sujith