I modify the demo like below,I add the "FLASH_DRV_EraseAllBlock" command .

I change the target to Debug_RAM and I can see the function is located to the RAM.

I debug the demo step by step .But when it run to the line FTFx_FSTAT |= FTFx_FSTAT_CCIF_MASK;in the function "FLASH_DRV_CommandSequence" in the FLASH_DRV_EraseAllBlock ,an error occurred like below.

So, what's the reason?How to use FLASH_DRV_EraseAllBlock correctty?