S32K144_PowerManager_Example

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32K144_PowerManager_Example

ソリューションへジャンプ
3,077件の閲覧回数
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 件の賞賛
返信
1 解決策
2,760件の閲覧回数
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,760件の閲覧回数
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,760件の閲覧回数
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,761件の閲覧回数
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,760件の閲覧回数
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,760件の閲覧回数
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,760件の閲覧回数
hajianik
Senior Contributor I

I spoke too soon.

Thanks,

0 件の賞賛
返信