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.
解決済! 解決策の投稿を見る。
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.
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.
Thank you,
It helped me.