IAR中的 identifier "FILE" is undefined 问题

Posted Darren_pty

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了IAR中的 identifier "FILE" is undefined 问题相关的知识,希望对你有一定的参考价值。

   最近由于希望使用IAR的printf()函数方便进行打印字符,出现IAR报错,即:identifier "FILE" is undefined,问题得以解决。

 

  (1)进行printf到串口的重映射:

  需添加头文件:#include "stdio.h"

  

 

 

 

 (2)经编译出现:

  

 

 

 

 (3)经查找原来是这里需要进行配置:

 

 

 

 

 (4)改成full就可以了:

 

 

以上是关于IAR中的 identifier "FILE" is undefined 问题的主要内容,如果未能解决你的问题,请参考以下文章

关于IAR函数指针问题

语法错误:bash 脚本中的“fi”意外(预期“then”)

如何修复“[Lp002]:IAR ARM 工具重定位失败?

IAR 一直显示 Warning[Pe223]: function "gpio_initial" declared implicitly

Bash / Dash:在“If then else”语句中的“fi”上杀死进程?

可以用IAR直接烧录stm32吗? 用的是jlink,怎么烧?