MKW41Z4 hard fault on wake from VLPS

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

MKW41Z4 hard fault on wake from VLPS

338 Views
ericsmith
Contributor I

I'm working on a project with the MKW41Z4 doing 802.15.4 communication, and trying to go to VLPS mode with wake up by LPTMR. I have a simple test program without the 802.15.4 that just does the VLPS and LPTMR, using the sequence:


            SMC_PreEnterStopModes();
            SMC_SetPowerModeVlps(SMC);
            SMC_PostExitStopModes();

to enter sleep mode, and that works fine. However, when I put that in the real application (which was mostly written by someone else), I get a hard fault when it wakes.  Are there any things I should be doing before entering VLPS othter than what is done by those three SMC functions?

0 Kudos
1 Reply

252 Views
gerardo_rodriguez
NXP Employee
NXP Employee

Hello Eric Smith,


The wireless stacks make use of the connectivity framework which has a low power library for managing the low power modes on the KW41Z. Please refer to chapter 3.15.4 Kinetis Wireless Dual Mode (Bluetooth LE and IEEE ®
802.15.4) Microcontrollers Low-power Library Overview on the "Connectivity Framework Reference Manual.pdf" located in <SDK path>\docs\wireless\Common\ for information on the low power library and how to use it.

Which 802.15.4 demo are you using as a base for your application?

Regards,

Gerardo

0 Kudos