Hello,
SDK version 2.2.2 also has same issue. I am using HID FreeRTOS sample project.
But to use FlexNVM, I am referring flash_flexnvm_eeprom sample project from SDK.
I have kept below settings in App_preinclude.h file.
#define gAppUseNvm_d 0
So definition of “#define gNvUseFlexNVM_d (0)”
Does not matter.
AppPoolsDetails_c are defined as below:
#define AppPoolsDetails_c \
blocksize_ 32 numberof_blocks_ 6 eol \
blocksize_ 64 numberof_blocks_ 3 eol \
blocksize_ 128 numberof_blocks_ 10 eol \
blocksize_ 512 numberof_blocks_ 4 eol
For configuring partition, I have reused code from flash_flexnvm_eeprom sample project.
I am using below definitions for partitioning.
#define EEPROM_DATA_SET_SIZE_CODE (0x35U)
#define FLEXNVM_PARTITION_CODE (0x3U)
Please find the attached file which is coded for creating partition.
The code for creating partition is kept commented, because it is part of SW which will be flashed first for creating partition and then the Application SW will only use it.