Set MQX_ENABLE_LOW_POWER make ittya does not work?

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

Set MQX_ENABLE_LOW_POWER make ittya does not work?

跳至解决方案
1,601 次查看
danielchai
Senior Contributor I

Hi All,

I try to enable the low power mode and measure the current on MK60FN1M0VLQ12 using CW10.4.

I set MQX_ENABLE_LOW_POWER to 1 in user_config.h and rebuild the bsp and psp.  When I try to open the "ittya:", it failed.

Then I change MQX_ENABLE_LOW_POWER back to 0 and try the same code to open the "ittya:". This time it works.

Does the MQX_ENABLE_LOW_POWER disable the "ittya:" or conflict with "ittya:"?

Thank you.

-Daniel

0 项奖励
回复
1 解答
1,255 次查看
dereksnell
NXP Employee
NXP Employee

Hi Daniel,

This is due to the UART driver settings for the LPM.  The file \Freescale_MQX_4_0_2\mqx\source\bsp\twrk60f120m\init_sci.c defines the state of the UART peripherals in the different LPM operating modes.  This file disables UART0 peripheral for ITTYA.  If you want the MQX_ENABLE_LOW_POWER feature, then you will need to modify this file to keep UART0 enabled in the different power modes.  You can refer to UART2 and UART5 in the same file to see an example for an enabled UART.

Refer to appnote AN4447 for more details on using LPM with peripheral drivers in MQX

http://cache.freescale.com/files/32bit/doc/app_note/AN4447.pdf?fsrch=1&sr=1

在原帖中查看解决方案

0 项奖励
回复
2 回复数
1,256 次查看
dereksnell
NXP Employee
NXP Employee

Hi Daniel,

This is due to the UART driver settings for the LPM.  The file \Freescale_MQX_4_0_2\mqx\source\bsp\twrk60f120m\init_sci.c defines the state of the UART peripherals in the different LPM operating modes.  This file disables UART0 peripheral for ITTYA.  If you want the MQX_ENABLE_LOW_POWER feature, then you will need to modify this file to keep UART0 enabled in the different power modes.  You can refer to UART2 and UART5 in the same file to see an example for an enabled UART.

Refer to appnote AN4447 for more details on using LPM with peripheral drivers in MQX

http://cache.freescale.com/files/32bit/doc/app_note/AN4447.pdf?fsrch=1&sr=1

0 项奖励
回复
1,255 次查看
danielchai
Senior Contributor I

Hi Derek,

I changed it and now it works.

Could you gives some points how could I use PTD0 for LLWU in MQX?

I read AN4447 and AN4503, but they are not clear.

Thank you.

-Daniel

0 项奖励
回复