Use of PMCTRL STOPA bit

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

Use of PMCTRL STOPA bit

582 次查看
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 回复数

111 次查看
ebadia
Contributor I

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

 

 

0 项奖励

479 次查看
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 项奖励

469 次查看
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 项奖励

391 次查看
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 项奖励

512 次查看
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 项奖励