STM32用IAR调试出现Error[Pe020]: identifier "FILE" is undefined 解决方法

这是在调试示例程序RTC中的Calendar时候遇到的问题,错误定位到PUTCHAR_PROTOTYPE处
解决办法:
需要在IAR的Options -> General Options ->Library Configuration里设置一下函数库,不然printf函数不对,将Library Configuration 中的Library 设置由"Normal"改为"Full"就可以了。
 
 
转自:http://blog.chinaunix.net/uid-26435987-id-3283001.html
posted on 2013-03-25 13:45  yh.tong  阅读(821)  评论(0编辑  收藏  举报