Lunching partition command on S32K

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

Lunching partition command on S32K

640 Views
hajianik
Senior Contributor I

Hi,

I need to switch from HI_SPEED_RUN mode to Just RUN mode to lunch flash partition command and back to hi speed run mode once done.

This is not working for me. use PE code to do this as fallows:

POWER_SYS_Init(&powerConfigsArr, POWER_MANAGER_CONFIG_CNT, &powerStaticCallbacksConfigsArr, POWER_MANAGER_CALLBACK_CNT);

Where powerConfigsArr is pointer to arrays of 2 configs (HI SPEED RUN, RUN) and the CNT is 2.

Then to switch I do:

POWER_SYS_SetMode( 1, 0);

which is supposed to switch to RUN and then lunch the partition  command which generates a reset.

What is wrong with this?

Please help.

0 Kudos
0 Replies