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.

[参考译文] LAUNCHXL-CC2640R2:将片上 OAD 添加到 IAR 工作平台简单外设会导致生成错误?

Guru**** 2551110 points


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

https://e2e.ti.com/support/wireless-connectivity/bluetooth-group/bluetooth/f/bluetooth-forum/579227/launchxl-cc2640r2-adding-on-chip-oad-to-iar-workbench-simple-peripheral-results-to-build-errors

器件型号:LAUNCHXL-CC2640R2

您好!

  我正在为片上 OAD 配置 IAR Workbench 简单外设。 我遵循了"将片上 OAD 添加到现有项目"指南。 OAD 文件已经位于 IAR Workbench Simple Peripheral 和 xxx_oad.icf.file 中。 最初、这些文件被从构建中排除。 因此、我将它们从构建添加到 OAD 支持文件。 问题是我遇到这些构建错误。 内容。 我不是 IAR Workbench 的专家、因此我很难解决构建错误。

生成错误:

ERROR[Pe020]:标识符"img_HDR_t"未定义 C:\ti\simplelink_cc2640r2_sdk_1_00_00_22\examples\rtos\CC2640R2_LAUNCHXL\blestack\profiles\oad_target.h 101
Error[Pa002]:type 属性"__code"不允许 oad_target.h
在"CC2640R2\Simple_rtc\Simple_rtc\Simple_rtc\examples\c6420_rts\cl_rts\clon_examples\c64_rts\clon_prisore\c\prere\prere\pru202\c\pru_rtos\pruelink_examples\cmes\clon_pru_pru202\pru202\pru_rtos\c\pru_rtos\pruelink\pru202\pruelink\pruelink\prue_examples\cmis 

对于隐式声明的 Reset_addService、我添加了以包含路径和下面的预定义符号、因此我不明白为什么我会得到隐式声明的错误。

Reset_addService()的预定义符号

image_invalidate
HAL_IMAGE_B

 Reset_addService()的 Include 路径

$SRC_EX$/profiles/oad
$SRC_EX$/profiles/oad/cc26xx

此外、如果我执行下面 的"将片上 OAD 添加到现有项目"的最后部分、我会遇到构建错误。

添加 OAD_IMG_B=1 到–cfgArgs

-克尔