Hi @Simon-Liu
Sorry for the inconvenience. These are typos, please make sure that FLS_MAX_VIRTUAL_SECTOR located in C40_Ip_Cfg.h has the same value as the C40_UTEST_ARRAY_0_S000 and that C40_SECTOR_ERROR is one value greater than C40_UTEST_ARRAY_0_S000.
For example instead of:
#define FLS_MAX_VIRTUAL_SECTOR (271U)
…
#define C40_UTEST_ARRAY_0_S000 (272U)
#define C40_SECTOR_ERROR (272U)
Needs to be:
#define FLS_MAX_VIRTUAL_SECTOR (272U)
…
#define C40_UTEST_ARRAY_0_S000 (272U)
#define C40_SECTOR_ERROR (273U)
Note: every time you update the code by ConfigTool these will return to their original value so you will have to change again.
B.R.
VaneB