Proccessor Expert to configure the RUN Mode

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

Proccessor Expert to configure the RUN Mode

跳至解决方案
1,166 次查看
hajianik
Senior Contributor I

Hi,

My target is S32K144 EVAL board and using design studio,

I've done this successfully by manually coding, however I've a hard time to use the Processor expert to configure the clk for 112 MHZ AND ENTERING THE HIGH SPEED MODE. 

I see the PLL clk configuration which is fine however I don't know how to enter the high speed mode using P.E.

As I said I've done this manually but having difficulty using P/E to do this.

and additionally I don't know how to select the source for the RUN mode using P.E. it seems it uses the FIRC by default.

Any Ideas?

Thanks

0 项奖励
1 解答
941 次查看
raresvasile
NXP Employee
NXP Employee

Hi,

You need to add Power Manager Component into your project.

After the component is added, please configure it to have HSRUN mode and call:

/* Initialize Power Manager */
POWER_SYS_Init(&powerConfigsArr, POWER_MODES, &powerStaticCallbacksConfigsArr, 0);

/* Set power mode to HSRUN */
POWER_SYS_SetMode(configurationIndex, POWER_MANAGER_POLICY_AGREEMENT);

, where configurationIndex needs to be replaced by the index of the PowerManager configuration which is selected to HSRUN.

You can also see power_mode_switch example or the Documentation for usage scenarios.

Best regards,

Rares

在原帖中查看解决方案

0 项奖励
2 回复数
942 次查看
raresvasile
NXP Employee
NXP Employee

Hi,

You need to add Power Manager Component into your project.

After the component is added, please configure it to have HSRUN mode and call:

/* Initialize Power Manager */
POWER_SYS_Init(&powerConfigsArr, POWER_MODES, &powerStaticCallbacksConfigsArr, 0);

/* Set power mode to HSRUN */
POWER_SYS_SetMode(configurationIndex, POWER_MANAGER_POLICY_AGREEMENT);

, where configurationIndex needs to be replaced by the index of the PowerManager configuration which is selected to HSRUN.

You can also see power_mode_switch example or the Documentation for usage scenarios.

Best regards,

Rares

0 项奖励
941 次查看
hajianik
Senior Contributor I

Rares,

Thanks for your response.

Just one thing, the input parameters for the  function POWER_SYS_Init is a bit different from yours . the following is the definition in the SDK in my system.

status_t POWER_SYS_Init(power_manager_user_config_t *(* powerConfigsPtr)[],

uint8_t configsNumber,

power_manager_callback_user_config_t *(* callbacksPtr)[],

uint8_t callbacksNumber)

Note that the second input is the index of the configuration i.e. 1

Thanks for your great answer.

0 项奖励