AnsweredAssumed Answered

Low power switching K64

Question asked by Pietro di Castri on Feb 4, 2015
Latest reply on Feb 6, 2015 by Pietro di Castri

Good morning

I have the FRDM k64 board. I am playing with the power mode switching.

The CPU is running the BLPI at 1 MHz.

I have the interrupt of the PORTC installed.

I have also the interrupt of the LLW interrupt handler which toggles the red led.

When I toggle between the wait and stop, the interrupt is serviced repeadetly at every pressure of

the button. I see the blu led toggling as in the loop, the green lines.

When I enter the lls mode, the LLW isr is serviced, but the execution is lost.

The last red lines should produce two toggles of the blue and red led.

I see the LLW interrupt serviced but the execution dies.

According to the manual I should see the execution continuing. No reset flow with the lls mode.

Here is the code.

 

 

POWER_SYS_SetMode( epower_mode_wait, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_stop, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_wait, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_stop, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_wait, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_stop, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_lls, kPowerManagerPolicyAgreement );

leds_blue_toggle();

POWER_SYS_SetMode( epower_mode_lls, kPowerManagerPolicyAgreement );

leds_blue_toggle();


Thank You


Pietro


Outcomes