Switch Power Mode

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

Switch Power Mode

跳至解决方案
634 次查看
KhaledG
Contributor I

Hello,
Im trying to switch power mode to stop for i.MX-RT1024 with mqx5. But the cpu stay awak
I used the CCM Low Power Control Register as indicated in the reference manual:

CCM->CLPCR = (CCM->CLPCR & ~CCM_CLPCR_LPM_MASK) | CCM_CLPCR_LPM((uint32_t)2);
Did I do something wrong?
Best Regards.

0 项奖励
回复
1 解答
610 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @KhaledG,

The SDK for the RT1024 contains a "power_mode_switch" demo code which exemplifies the usage of this exact application very nicely. I understand that it is not implemented for MQX5, as it implements either FreeRTOS or BM. However, this example code will prove to be a very useful baseline on how to execute power mode switches on the RT1024, which you can then adapt to your MQX5 application. The SDK is available for building and downloading here: SDK Builder | MCUXpresso SDK Builder (nxp.com)

BR,
Edwin.

在原帖中查看解决方案

0 项奖励
回复
2 回复数
611 次查看
EdwinHz
NXP TechSupport
NXP TechSupport

Hi @KhaledG,

The SDK for the RT1024 contains a "power_mode_switch" demo code which exemplifies the usage of this exact application very nicely. I understand that it is not implemented for MQX5, as it implements either FreeRTOS or BM. However, this example code will prove to be a very useful baseline on how to execute power mode switches on the RT1024, which you can then adapt to your MQX5 application. The SDK is available for building and downloading here: SDK Builder | MCUXpresso SDK Builder (nxp.com)

BR,
Edwin.

0 项奖励
回复
569 次查看
KhaledG
Contributor I

Thank you,
It helped me.

0 项奖励
回复