S32K144 - Erase suspend & Erase resume

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

S32K144 - Erase suspend & Erase resume

Jump to solution
753 Views
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 Kudos
Reply
1 Solution
733 Views
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

 

View solution in original post

1 Reply
734 Views
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