Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/c/68.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/visual-studio-code/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在CodeComposer studio中使用log_printf_C_Printf - Fatal编程技术网

在CodeComposer studio中使用log_printf

在CodeComposer studio中使用log_printf,c,printf,C,Printf,代码可以正确编译和构建,但不提供任何输出。在哪里可以看到输出 #include <stdio.h> #include <std.h> #include <log.h> #include "Configuration2cfg.h" extern far LOG_Obj fastprint; void main() { LOG_printf (&fastprint, "Algorithm 1 is running\n"); }

代码可以正确编译和构建,但不提供任何输出。在哪里可以看到输出

#include <stdio.h>
#include <std.h>    
#include <log.h>
#include "Configuration2cfg.h"

extern far LOG_Obj fastprint;   

void main()
{
LOG_printf (&fastprint, "Algorithm 1 is running\n");    
}
#包括
#包括
#包括
#包括“配置2CFG.h”
extern far LOG_Obj fastprint;
void main()
{
LOG_printf(&fastprint,“算法1正在运行\n”);
}
进入菜单工具-->RTA-->打印日志,应更新消息

如果没有,您能否尝试使用BIOS 5.4x运行其中一个提供的示例,并查看是否在此屏幕上获得输出?这可能会排除与特定项目相关的任何问题。有关如何使用示例项目的详细信息,请检查:


没有名为
LOG\u printf
的标准函数,您从哪里获得它的?关键字
far
也不是标准C语言。@JoachimPileborg。。。LOG_printf(…)在composer studio中提供。请看这是我遵循的(幻灯片50-54)Thnx,问题是日志消息仅在目标运行时显示。如果暂停,则不显示任何内容