Other Parts Discussed in Thread: SYSBIOS
在学习sysbios时,处理器为C6748,用到了System_printf()来打印字符串,请问System_printf()可以用来打印程序中的变量吗?
如果可以的话,该怎么使用?
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.
在学习sysbios时,处理器为C6748,用到了System_printf()来打印字符串,请问System_printf()可以用来打印程序中的变量吗?
如果可以的话,该怎么使用?
可以打印。请问您目前是使用该函数无法打印是吗?
试一下在.cfg文件中添加以下配置:
var System = xdc.useModule('xdc.runtime.System');
var SysStd = xdc.useModule('xdc.runtime.SysStd');
System.SupportProxy = SysStd;
需要添加 #include <xdc/runtime/System.h>头文件。