打印
[8/16-bit MCU]

编译出现warning C12002,求解(已解决)

[复制链接]
1189|2
手机看帖
扫描二维码
随时随地手机跟帖
跳转到指定楼层
楼主
本帖最后由 FSL_TICS_A 于 2014-4-1 10:08 编辑

e:\eeprom程序编译故障.jpg


使用PE生成的 EEPROM的驱动代码,然后另新建的一个工程编译出现如图的警告

后来在编译选项里手工加入-CpPPAGE可消除警告

正常操作EEPROM,但是现在移植UCOS-II之后,无法。。正常运行,执行到系统ticks(使用的RTI作为实时时钟)切换任务的时候就会跑飞,看了下最后一次运行的堆栈,里面的数据和SP好像差了一个BYTE,但是如果把编译选项-CpPPAGE去掉UCOS-II就可以正常运行,请问下,有晓得这个是怎么回事么?



相关帖子

沙发
FSL_TICS_LY| | 2014-3-13 12:58 | 只看该作者
在CW的帮助文档里边搜索c12002是,得到的信息是:
The compiler did not know which page register should be used for a far access. The compiler may use the DPAGE register implicitly.
To avoid this warning, compile this file with the correct page (-CpDPage,-CpEPage or -CpPPage) options set
tips:
Compile all your source files with the correct page options (-CpDPage, -CpEPage or -CpPPage)! This message does not occur for the large memory model. In this model, all far and default accesses are implemented by runtime routine calls, unless some page register options are present
希望对楼主有帮助

使用特权

评论回复
评分
参与人数 1威望 +1 收起 理由
feiling208 + 1 很给力!
板凳
FSL_TICS_A| | 2014-4-1 10:08 | 只看该作者
楼主你好,如果你的问题已经得到解决,建议根据 本论坛中结贴方式  帖子描述方式操作结贴。
如果问题尚未解决,可以继续讨论。
谢谢大家配合:)

使用特权

评论回复
发新帖 我要提问
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

5

帖子

1

粉丝