S32K144_PowerManager_Example

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

S32K144_PowerManager_Example

跳至解决方案
3,093 次查看
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

标记 (1)
0 项奖励
回复
1 解答
2,776 次查看
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 项奖励
回复
6 回复数
2,776 次查看
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

2,776 次查看
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 项奖励
回复
2,777 次查看
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 项奖励
回复
2,776 次查看
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 项奖励
回复
2,776 次查看
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 项奖励
回复
2,776 次查看
hajianik
Senior Contributor I

I spoke too soon.

Thanks,

0 项奖励
回复