Hi Mark,
Thanks again. I finally found my problem. The key to the problem that I was
having is in the following text:
*(from the K64F RM - Chapter 25 Multipurpose Clock Generator (MCG), table
25-3)*
NOTE:
*• When entering Low Power Stop modes (LLS or VLPS) from PEE mode, on exit
the*
MCG clock mode is forced to PBE clock mode. C1[CLKS] and S[CLKST] will be
*configured to 2’b10if entering from PEE mode or to 2’b01 if entering from
PEI mode,*
*C5[PLLSTEN0] will be force to 1'b0 and S[LOCK] bit will be cleared without
setting*
S.
*• When entering Normal Stop mode from PEE mode and if C5[PLLSTEN]=0, on
exit*
*the MCG clock mode is forced to PBE mode, the C1[CLKS] and S[CLKST] will
be*
configured to 2’b10 and S[LOCK] bit will clear without setting S[LOLS]. If
*C5[PLLSTEN]=1, the S[LOCK] bit will not get cleared and on exit the MCG
will*
continue to run in PEE mode.
I'm initialzingthe MCG clock mode to be PEE at boot time. From the note
above, the
MCG clcok mode is switched to PBE when waking up from LLS stop mode. This
was causing the UART and the Systick timer to stop working. All I needed to
do in the LLWU ISR was to set the MCG clock mode back to PEE.
Thanks,
German
On Tue, Aug 29, 2017 at 3:06 AM, mjbcswitzerland <admin@community.nxp.com>