S32K144 - Erase suspend & Erase resume

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144 - Erase suspend & Erase resume

ソリューションへジャンプ
686件の閲覧回数
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 解決策
666件の閲覧回数
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 返信
667件の閲覧回数
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