Hi!
Could you explain the way to use Log_printf() in CCSv5 using TMDSEVM6670LE?
I'd like to know how i configure the SYS/BIOS and use Log_printf() in user code such as main.c() .
Thank you.
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.
Hi!
Could you explain the way to use Log_printf() in CCSv5 using TMDSEVM6670LE?
I'd like to know how i configure the SYS/BIOS and use Log_printf() in user code such as main.c() .
Thank you.
You can start here with the basic description of Log_print: http://rtsc.eclipse.org/cdoc-tip/xdc/runtime/Log.html#print6. It's the documentation for Log_print6, but it covers all Log_print functions. Then, create a new CCS project and in Project templates and examples select SYS/BIOS->Generic Examples->Log Example. The app source in that example uses mainly Log_info and Log_warning functions, but everything is already setup for the Log module and you can easily insert Log_print statement and test how they work.
Thank you,
Unfortunately, i didn't sucess the Log_print() from your comment.(: http://rtsc.eclipse.org/cdoc-tip/xdc/runtime/Log.html#print6.)
Log_print1(Diags_USER2,"list2 = %d\n",cnt); ==> No Output...
But, I success when i coded the Log_print() such as following.
int cnt = 10;
Log_print1(65415,"list0 = %d\n",cnt);
Could you explain the meaning of "65415" from log.cfg > Buffer-based logger > xdc.runtime > level4Mask = 65415.
Thank you.
To get the output you have to enable appropriate Diags bits. The way logging works in RTSC is that you can add many log statements in your source code, but then you can select in your config script which ones are enabled. You can find some examples in Diags documentation. I am not sure how you got the value 65415, but it seems that that value matches with some enabled Diags bits, and you get the output in the console.
You may also want to read this guide on using runtime modules: http://rtsc.eclipse.org/docs-tip/Using_xdc.runtime_Logging.