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
649 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
1 Solution
629 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
630 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