S32K118 Power management issues

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

S32K118 Power management issues

996 Views
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.

Labels (1)
0 Kudos
5 Replies

893 Views
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 Kudos

893 Views
zhaowei961
Contributor III

EM截图_2020218211738.png1.png2.png

0 Kudos

893 Views
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 Kudos

893 Views
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 Kudos

893 Views
zhaowei961
Contributor III

 

0 Kudos