Part Number: LAUNCHXL-CC2640R2
Hi,
I am configuring the IAR Workbench Simple Peripheral for On-Chip OAD. I followed the "Add On-Chip OAD to an existing project" Guide. The oad files are already at IAR Workbench Simple Peripheral and the xxx_oad.icf.file. Originally these files are excluded from build. So, I included them from build to add oad support files. The problem is I am getting these build errors. below. I am not an expert with IAR Workbench, so I am having difficulty resolving the build errors.
Build Errors:
Error[Pe020]: identifier "img_hdr_t" is undefined C:\ti\simplelink_cc2640r2_sdk_1_00_00_22\examples\rtos\CC2640R2_LAUNCHXL\blestack\profiles\oad\oad_target.h 101 Error[Pa002]: the type attribute "__code" is not allowed on this declaration C:\ti\simplelink_cc2640r2_sdk_1_00_00_22\examples\rtos\CC2640R2_LAUNCHXL\blestack\profiles\oad\oad_target.h 101 Warning[Pe223]: function "Reset_addService" declared implicitly C:\ti\simplelink_cc2640r2_sdk_1_00_00_22\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral\src\app\simple_peripheral.c 554
For Reset_addService declared implicitly, I added to include paths and predefined symbols below, so I do not get why I am getting the declared implicitly error.
Predefined Symbols for Reset_addService()
IMAGE_INVALIDATE
HAL_IMAGE_B
Include Path for Reset_addService()
$SRC_EX$/profiles/oad
$SRC_EX$/profiles/oad/cc26xx
Also, if I do the last part below of "Add On-Chip OAD to an existing project", I get a build error.
Add OAD_IMG_B=1 to your –cfgArgs
- kel