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.

[参考译文] CC2541:访问外部变量时出错

Guru**** 2595805 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/612189/cc2541-error-in-accessing-external-variable

器件型号:CC2541

您好!

我正在使用栈1.4.2.2上的密钥卡代码、已在 simpleprofile.c 中定义了变量 、我正在尝试访问应用程序代码中的数据以读取从移动应用程序接收到的值

当我在 simpleprofile_WriteAttrCB 中从移动应用复制接收到的数据时、错误显示为 Error[E46]:Undefined external。

我也尝试了相反的方法 、即在应用程序中声明变量并在 simpleprofile 中访问变量、结果仍然相同。 我使用的是 IAR9.30评估版

它工作一次或两次、但在我重新生成错误后开始。

请推荐!!!!

此致  

阿图尔

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。
    您能否从 IAR 复制并粘贴完整的构建错误日志?