原先程序中printf("hello !")在simulator中运行时能在输出窗口中产生,后来不知怎原因运行时看不到输出,而其它一切正常。
输出窗口只有:(1)CDT Global Build Console与(2)CDT Build 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.
在程序中用printf可能会出很多问题,建议你使用BIOS的LOG_printf:
Problems with printf()
These issues coupled together typically cause severe problems with real-time performance, but you can easily avoid these issues by using LOG_printf instead.
Depending on which version of SYS/BIOS you are using, you may not see the System_printf's come out on the console due to how System is configured. If you want to have System_printf output go to the same place as printf, add the following three lines to your .cfg file and re-build:
var System = xdc.useModule('xdc.runtime.System');
var SysStd = xdc.useModule('xdc.runtime.SysStd');
System.SupportProxy = SysStd;
If you don't do this, the output will go to a circular buffer in memory. You can examine that buffer using the ROV tool (use the menu: Tools->ROV while in the debugger).