In the sample code, before doing a flash operation (Or any FTFC operation) we are checking the command complete flag.
while(0 == (FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK));
But since it is an infinite loop, I would like to add a specific timeout here to make sure that the program flow is not stuck here for ever. So I would like to know is there any specification for the command execution time for FTFC commands available?
My aim is to add a timeout in these places , so that I can do some recovery actions after timeout.