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.

CC2652R: 使用Sysconfig配置NVS的一个BUG

Part Number: CC2652R
Other Parts Discussed in Thread: SYSCONFIG

Sysconfig配置:

VNS设备对应的索引定义:

extern const uint_least8_t CONFIG_NVSINTERNAL_CONST;
#define CONFIG_NVSINTERNAL 0
/*
* MOSI: DIO17
* MISO: DIO16
* SCLK: DIO18
* SS: DIO19
*/
extern const uint_least8_t CONFIG_NVSEXTERNAL_CONST;
#define CONFIG_NVSEXTERNAL 1
extern const uint_least8_t CONFIG_NVS_0_CONST;
#define CONFIG_NVS_0 2
#define CONFIG_TI_DRIVERS_NVS_COUNT 3

NVS配置表:
const NVS_Config NVS_config[CONFIG_NVS_COUNT] = {
/* CONFIG_NVSINTERNAL */
{
.fxnTablePtr = &NVSCC26XX_fxnTable,
.object = &nvsCC26XXObjects[0],
.hwAttrs = &nvsCC26XXHWAttrs[0],
},
/* CONFIG_NVS_0 */
{
.fxnTablePtr = &NVSCC26XX_fxnTable,
.object = &nvsCC26XXObjects[1],
.hwAttrs = &nvsCC26XXHWAttrs[1],
},
/* CONFIG_NVSEXTERNAL */
{
.fxnTablePtr = &NVSSPI25X_fxnTable,
.object = &nvsSPI25XObjects[0],
.hwAttrs = &nvsSPI25XHWAttrs[0],
},
};

配置表和索引号对不上了,是这样没错吧