Use of PMCTRL STOPA bit

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

Use of PMCTRL STOPA bit

587件の閲覧回数
aberger
Contributor V

I am running the power_manager demo available with the FRDM-K32L2B3 demo board. Following wake from Normal STOP mode, I see that the SMC_PMCTRL[STOPA] bit is set. From the Reference Manual, this should only occur if entry into STOP mode was prevented by an interrupt:

When set, this read-only status bit indicates an interrupt occured during the previous stop mode entry sequence, preventing the system from entering that mode. This field is cleared by reset or by hardware at the beginning of any stop mode entry sequence and is set if the sequence was aborted.

However, I have found that the bit is set after a successful entry into STOP and subsequent wake from STOP back to RUN.

Is this a bug with the hardware? Or perhaps a bug in the fsl_smc SMC_SetPowerModeStop() method?

 

タグ(3)
0 件の賞賛
5 返答(返信)

116件の閲覧回数
ebadia
Contributor I

Hi, I do have the same issue, could you please share or contact?

 

 

0 件の賞賛

484件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @aberger 

Please do not use this bit, the STOPA bit will asserted whenever STOP mode is exist from any wake up source.

 

BR

Alice

0 件の賞賛

474件の閲覧回数
aberger
Contributor V

OK. Good to know. Since the documentation explicitly states otherwise, it should be updated to reflect the  actual operation.

Can you offer an alternative for detecting an aborted stop mode entry sequence? It would be useful to know, so that the code execution can simply try again to enter stop mode.

0 件の賞賛

396件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @aberger 

After check, There is no another ways for detecting an aborted stop mode entry sequence.

 

BR

Alice

0 件の賞賛

517件の閲覧回数
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello @aberger 

Thanks for your sharing, we have reproduced the issue, will reply you after checking with itnernal.

 

BR

Alice

0 件の賞賛