Proccessor Expert to configure the RUN Mode

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

Proccessor Expert to configure the RUN Mode

Jump to solution
1,153 Views
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 Kudos
1 Solution
928 Views
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

View solution in original post

0 Kudos
2 Replies
929 Views
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 Kudos
928 Views
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 Kudos