Hi,friend
Did you have close interrupt? if you operate FLASH, you must close interrupt .
/* Erase the two PFlash sector */
address =ccp_save_address;
size = FEATURE_FLS_PF_BLOCK_SECTOR_SIZE*2;
ret = FLASH_DRV_EraseSector(&flashSSDConfig, address, size);
EnableInterrupts
if (ret != STATUS_SUCCESS)
{
while(1);
}