Timeout for FTFC operations

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Timeout for FTFC operations

680 Views
ummerkunnummalk
Contributor III

Hello,

   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.

Thanks

Ummer K

1 Reply

606 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hello,
This is specified in the S32K1xx Datasheet rev.9.
Table 23. Flash command timing specifications for S32K14x
Table 24. Flash command timing specifications for S32K11x

BR, Daniel