Part Number:LP-EM-CC2340R5Other Parts Discussed in Thread:CC2340R5
定义OAD_IMG_ID_VAL部分,没有找到DeviceFamily_ID_CC23X0R5相关的,是这个头文件在CC2340R5里没用了,还是SDK代码没有更新?
#if defined(DeviceFamily_CC26X2) || defined (DeviceFamily_CC26X2_V2) || \defined(DeviceFamily_CC26X2X7) || defined(DeviceFamily_CC26X1)#define OAD_IMG_ID_VAL{'C', 'C', '2', '6', 'x', '2', 'R', '1'} #elif defined (DeviceFamily_CC13X2) ||\defined (DeviceFamily_CC13X2X7) ||\defined (DeviceFamily_CC13X1) ||\defined (DeviceFamily_CC13X2_V1) ||\defined (DeviceFamily_CC13X2_V2)#define OAD_IMG_ID_VAL{'C', 'C', '1', '3', 'x', '2', 'R', '1'} #elif defined (DeviceFamily_CC13X4)#define OAD_IMG_ID_VAL{'C', 'C', '1', '3', 'x', '4', ' ', ' '} #elif defined (DeviceFamily_CC26X3)#define OAD_IMG_ID_VAL{'C', 'C', '2', '6', 'x', '3', ' ', ' '} #elif defined (DeviceFamily_CC26X4)#define OAD_IMG_ID_VAL{'C', 'C', '2', '6', 'x', '4', ' ', ' '} #elif defined (DeviceFamily_CC26X0R2)#define OAD_IMG_ID_VAL{'O', 'A', 'D', ' ', 'I', 'M', 'G', ' '} #elif defined (DOXYGEN)/*!* Magic number to identify OAD image header. It is recommended that the* customer adjust these to uniquely identify their device** This define will be filled in conditionally based on DeviceFamily_**- DeviceFamily_CC26X2: @code {'C', 'C', '2', '6', 'x', '2', 'R', '1'} @endcode*- DeviceFamily_CC13X2: @code {'C', 'C', '1', '3', 'x', '2', 'R', '1'} @endcode*- DeviceFamily_CC26X0R2: @code {'O', 'A', 'D', ' ', 'I', 'M', 'G', ' '} @endcode*- Else an error will be thrown*/#define OAD_IMG_ID_VAL #else#error "Unknown Device Family" #endif //DeviceFamily_CC26X2
Yolande Wang:
您好,
CC2340 的 OAD 是基于 MCUBoot,和 CC26xx 系列的 image header 不一样,所以这里没有 CC2340 。
,
Xuefeng:
谢谢,我再看看mcuboot。
,
Yolande Wang:
不客气!