This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] 使用 IAR 命令和关键字时、编译的十六进制文件不符合预期值

Guru**** 2589245 points
Other Parts Discussed in Thread: BLE-STACK

请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/600449/when-using-the-iar-command-and-keyword-the-compiled-hex-file-does-not-meet-the-expected-value

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

我不会说什么原因、有时 十六进制文件中的数据是正确的  

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您好!

    您能告诉我您想要做什么吗?

    您使用的是哪种器件?

    您使用的是哪个版本的 TI BLE-Stack?

    您是否从 TI 样片应用开始? 如果是、哪一个?

    您是否尝试为 OAD 目的设置映像版本? 如果是、您是否遵循了与您使用的 BLE-Stack 版本相对应的 OAD 指南?