I want to print the sensor values on my CCS console and other my debug statements on console. I tried using printf() and System_printf() they do not produce any error, neither they print anythihng on the console
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.
I want to print the sensor values on my CCS console and other my debug statements on console. I tried using printf() and System_printf() they do not produce any error, neither they print anythihng on the console
Hi Zaed,
Yes, you can use Sysbem_printf() to print to the console in TI-RTOS applications. I would recommend using SysMin as your system provider. To do so, just add/update the following to the *.cfg file:
/* ================ System configuration ================ */
var SysMin = xdc.useModule('xdc.runtime.SysMin');
System.SupportProxy = SysMin;
Now you can add System_printf() calls to your code to print to an internal buffer and System_flush() to print out to the console.
Regards,
-- Emmanuel
Can you kindly explain in detail how do i use SysMin() in an efficient way. I am a complete beginner.
right now when i am using printf() or system_printf() to print the data i2c data being read by the sensor tag from its sensor via i2c, i get the first value printed and every thing hangs