I´m working with LPCXpresso v8.2.0 [Build 647] [2016-07-18] on LPC1769 & LPCOpen 2.10 (http://cache.nxp.com/files/microcontrollers/software/LPCWare/lpcopen_2_10_lpcxpresso_nxp_lpcxpresso_...) Powe Mode Use application (periph_pmu.zip) have a problem.
In debug mode when I press Resume (F8) the Sleep mode works OK, but the other three modes (Deep-Sleep, Power-down and Deep-Power-down) don´t work OK => debugging is stopped (see image or attached file).
Solved! Go to Solution.
Hi Hi Juan Manuel Cruz,
Thanks for your reply.
In the reference manual, it also recommend the user to re-configure the PLLs and clock dividers after the wake-up.
So it good to call the Chip_SetupXtalClocking() to re-configure the PLLs and clock dividers after the wake-up.
And I'll report the issue to the AE for checking.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Hi Juan Manuel Cruz,
It's not an issue.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
Thanks jeremyzhou, the debugger does not work in those low-power modes.
But the LPCOpen library has a bug and to fix it => set the microcontroller clock & PLL calling the function Chip_SetupXtalClocking() after WFI or WFE.
Hi Juan Manuel Cruz,
Thanks for your reply.
I was wondering if you can clarify where the "bug" reside in.
Thank you in advance.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------
This application uses a UART of microcontroller to send debug messages, when the CPU returns from the low power modes it is necessary set the microcontroller clock & PLL so that the UART operates correctly again and that we can see OK the UART messages.
Set the microcontroller clock & PLL calling the function Chip_SetupXtalClocking() after WFI or WFE.
We can do this call in the LPCOpen library or in the application, but we must do it for the example to work correctly, OK?
Hi Hi Juan Manuel Cruz,
Thanks for your reply.
In the reference manual, it also recommend the user to re-configure the PLLs and clock dividers after the wake-up.
So it good to call the Chip_SetupXtalClocking() to re-configure the PLLs and clock dividers after the wake-up.
And I'll report the issue to the AE for checking.
Have a great day,
Ping
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------