S32K144_PowerManager_Example

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

S32K144_PowerManager_Example

Jump to solution
1,449 Views
hajianik
Senior Contributor I

Hi , I'm running the project S32K144_PowerManager_Example.

Few question on this.

  • The option 3 in the menu is not working for me. Don't know why? This is true with and without the debugger, in fact when the debugger is running when I choose option 3 it resets, is due to clk frequency? I thought the core ,bus clocks are active in this mode?
  • There is no "WFI" instruction before entering the varius low power modes, why is that?

Thanks

0 Kudos
1 Solution
1,132 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

SMC_HAL_SetPowerMode() in smc_hal.c uses STANDBY() function:

wfi2.png

s32_core_cm4.h

wfi.png

Regards,

Daniel

View solution in original post

0 Kudos
6 Replies
1,132 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

 

This is caused by a bug in a clock manager component.

To fix it, in the PowerManager example project in DSK/platform/hal/scr/scg/scg_hal.c

change regAddr = &base->VCCR  to regAddr = &base->HCCR (line 186)

remove line 187 with base->HCCR = value

sdk_bug_fix.png 

 

This bug will be fixed in the release after RTM SDK (0.8.3).

Regards,

Daniel

1,132 Views
hajianik
Senior Contributor I

Thanks for the response,

What about my other question regarding the instruction "WFI" , IN THE DATA SHEET IT IS SAID  ENTERING A LOW POWER MODE  IS TRIGGERED BY "WFI" ,however it is not used in this example anywhere?

What is the story there?

Regards,

0 Kudos
1,133 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

SMC_HAL_SetPowerMode() in smc_hal.c uses STANDBY() function:

wfi2.png

s32_core_cm4.h

wfi.png

Regards,

Daniel

0 Kudos
1,132 Views
hajianik
Senior Contributor I

Hi Daniel,

Just one more thing,

Do you know how to measure the current on this board(S32KEVB)?

I ASKED THIS QUESTION BEFORE AND GOT NO ANSWERS.

There is a MCU Current Measurement section in the schematic a 0ohm resistor and a jumper across(J15), do I need to populate it with a known value resistor and measure the voltage across and divide to get the current?

Thanks.

0 Kudos
1,132 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi,

Simply dump the resistor (R117) and use an ammeter. I measure the current this way.

I don't see a reason for a precise resistor, but you can do that, if you want to.

Regards,

Daniel

0 Kudos
1,132 Views
hajianik
Senior Contributor I

I spoke too soon.

Thanks,

0 Kudos