请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
Thread 中讨论的其他器件:BLE-STACK添加 in.c 文件
#pragma LOCATION ="image_version"
const 代码 uint32 _imageVersion = 0x17053155;
#pragma 必需=_imageVersion
添加到 xcl 文件中
-Z (code) image_version=0x4800-0x4803
但在 hex 文件0x4800-0x4803中,数据不是 0x17053155
我的 IAR 版本为8.20、"#pragma Required=_imageVersion"会发出警告
警告[Pe609]:此类 pragma 可能不会在此处使用 C:\Users\Administrator\Desktop\app\boot\source\sb_main.c 26
我不会说什么原因、有时 十六进制文件中的数据是正确的