Timeout for FTFC operations

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Timeout for FTFC operations

871 次查看
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 回复

797 次查看
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