PE Option to Enter VLP Stop?

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

PE Option to Enter VLP Stop?

1,025 Views
brunopaillard
Contributor III

Hi

In a future version of Processor Expert for the MK22FN512, would it be possible to add an option to enter the VLP STOP mode from run (in Operation Mode Settings - SLEEP Options)?

Right now the only three options for SLEEP are: STOP, PSTOP1 and PSTOP2.

It is always possible to modify the CPU_Init.c file directly of course, or to use a custom function to replace it. But adding the options in the Processor Expert GUI would be nicer!

Thanks

Bruno

Capture.JPG.jpg

0 Kudos
5 Replies

494 Views
Jorge_Gonzalez
NXP Employee
NXP Employee

Hello Bruno:

I have not played much with low power modes, but I think VLPS is achieved combining CPU operation mode with Clock configuration, according to the next document by colleague Petr Hradsky:

Operation modes in Processor Expert

Regards!,

Jorge Gonzalez

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

494 Views
brunopaillard
Contributor III

Hi Jorge

Either I do not understand the text in the document that you sent, or there is an option missing (exactly the option that I am suggesting I think).

Regarding sleep modes (not run modes), in the last part, Petr's document indicates:

"For example the DOM_SLEEP can be mapped to normal stop mode, very low power stop, partial stop 1 or partial stop 2 of Kinetis L"


But the image below it only shows 3 options: Normal STOP, PSTOP1 and PSTOP2. Allowing the VLP mode checkmark above has no impact on the code (I checked).

What I am suggesting is to add a VLP STOP mode menu option, which is exactly what Petr seems to say already exists...

Bruno

0 Kudos

494 Views
adriancano
NXP Employee
NXP Employee

Hi,

Prior to enter VLPS mode you need to enter a VLPR mode, this is what is indicated in the mentioned document. To accomplish this you need to set a Clock Configuration for BLPE or BLPI mode checking the Very low power mode as enabled, here an example:

vlps1.png

You enter the Clock configuration calling the methods Cpu_SetClockConfiguration(); and Cpu_GetClockConfiguration();. After ensuring you are running the BLPI or BLPE configuration you call the Cpu_SetOperationMode(DOM_SLEEP, NULL, NULL) to enter VLPS mode. This is the normal behavior of the MCU you can check more information in the AN4503 document. Referring to it:

"STOP mode entry routine:

if in Run mode puts the processor into normal stop mode.

If in VLPR mode puts the processor into VLPS mode.

In this mode core, bus and peripheral clocks are disabled."

As you mentioned before it is possible to enter VLPS mode from Normal RUN mode but this is not implemented in Processor Expert.


Hope this information can help you

Best Regards,
Adrian Sanchez Cano
Technical Support Engineer
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

494 Views
brunopaillard
Contributor III

Hi Adrian

Going directly from normal RUN to VLPS and back from VLPS to normal RUN is a very attractive option (and it is what I need to do). All that would be needed for that code to be generated by Processor Expert would be to have a fourth "VLPS" option for SLEEP, beside STOP, PSTOP1 and PSTOP2. Such an option would be very easy to manage in CPU_Init.c. Right now I have modified manually CPU_Init.c to get that feature (not that hard to do), but it would be much cleaner if PE would manage such an option on its own.

Maybe in a future version?

Bruno

0 Kudos

494 Views
marek_neuzil
NXP Employee
NXP Employee

Hi Bruno,

Thank you for the new feature proposal. I have created a ticket for Processor Expert development team with your request (PEXMCU-2129).

Best Regards,

Marek Neuzil

0 Kudos