S32K118 Power management issues

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

S32K118 Power management issues

1,179 次查看
zhaowei961
Contributor III

When the power consumption mode is switched, the receiving of the serial port is affected. The serial port uses the interrupt mode. Even the switch from RUN to RUN also affects the receiving of the serial port. What's the matter?Can anybody help me?thank you very much.

标签 (1)
标记 (3)
0 项奖励
回复
5 回复数

1,076 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi zhaowei961@163.com,

The power manager switches the system clock (in run modes) as you can see below, therefore, it does affect the performance of every peripheral, and it disables the system clock in stop modes. . 

pastedImage_2.png

pastedImage_4.png

But, if the MCU is in RUN mode already, the driver does not switch the mode:

pastedImage_5.png

Could you elaborate on how exactly it affects the LPUART in your application?

Regards,

Daniel

0 项奖励
回复

1,076 次查看
zhaowei961
Contributor III

EM截图_2020218211738.png1.png2.png

0 项奖励
回复

1,076 次查看
danielmartynek
NXP TechSupport
NXP TechSupport

Hi zhaowei961@163.com,

I see that you are disabling the interrupt before it switches to RUN.

If you want to disable interrupts before the MCU switches power modes, you can mask them.

s32_core_cm4.h

DISABLE_INTERRUPTS()

ENABLE_INTERRUPTS() 

BR, Daniel

0 项奖励
回复

1,076 次查看
zhaowei961
Contributor III

   like abve code,I use uart0 interrupt in this way,after I send change power mode command  several times,uart0 goes wrong.

0 项奖励
回复

1,076 次查看
zhaowei961
Contributor III

 

0 项奖励
回复