S32K144 - Erase suspend & Erase resume

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

S32K144 - Erase suspend & Erase resume

跳至解决方案
1,363 次查看
PradeepAithal
Contributor II

In FLASH_DRV_EraseSuspend function in while loop count of 0x40 is used

while (((FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK) == 0U) && (count > 0U))

and

In FLASH_DRV_EraseResume function, in while loop count of 0x20 is used

while ((0U == (FTFx_FSTAT & FTFx_FSTAT_CCIF_MASK)) && (i < RESUME_WAIT_CNT))

 

what is the significance of these check? if clock speed changes what will be the impact of these checks.

0 项奖励
回复
1 解答
1,343 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Pradeep,

This makes sure that functions are not stuck there if for some reasons the CCIF flag is not set.

I don't know why these constants were selected though.

 

BR, Daniel

 

在原帖中查看解决方案

1 回复
1,344 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Pradeep,

This makes sure that functions are not stuck there if for some reasons the CCIF flag is not set.

I don't know why these constants were selected though.

 

BR, Daniel