您好,我把这个片外OAD例程导进CCS后(C:\ti\simplelink_cc2640r2_sdk_3_20_00_21\examples\rtos\CC2640R2_LAUNCHXL\blestack\simple_peripheral_oad_offchip)
在编译stack,出现了这个问题:
后来我改成这样:
显示编译成功,但是OAD_NUM_NV_PGS和OSAL_SNV应该相等的,现在不相等编译成功了,请求指导,谢谢
Kevin Qiu1:
正常导入工程编译不会出现错误,导入是否正确
user6172527:
回复 Kevin Qiu1:
都导入了,直接bim、app、stack三个工程,两个变量相等 就会报错
user6172527:
回复 Kevin Qiu1:
我导入后,看stack中pre-define preprocessor…里面OSAL_SNV=2,但是oad_image_header.h里面OAD_NUM_NV_PGS是1,这个和simplelink_academy_cc2640r2sdk_4_20_03_00__win/simplelink_academy_cc2640r2sdk_4_20_03_00/modules/blestack/ble_enhanced_oad/ble_enhanced_oad.html文件里添加OAD到Multi Role中这句话好像是矛盾的:Open oad_image_header.h and change the define OAD_NUM_NV_PGS to 2.This change is required because multi_role uses OSAL_SNV=2The OAD_NUM_NV_PGS and OSAL_SNV settings must be in sync.
Kevin Qiu1:
回复 user6172527:
simplelink_cc2640r2_sdk_4_20_00_04中没有错误,默认设定值是1,建议你升级SDK
user6172527:
回复 Kevin Qiu1:
好的,谢谢