LPC1769 - LPCOpen 2.10 - PMU application have problem

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

LPC1769 - LPCOpen 2.10 - PMU application have problem

Jump to solution
1,022 Views
juanmanuelcruz
Contributor II

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).

Sin título.jpg

Labels (2)
1 Solution
722 Views
jeremyzhou
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

View solution in original post

5 Replies
722 Views
jeremyzhou
NXP Employee
NXP Employee

Hi Juan Manuel Cruz,

It's not an issue.

pastedImage_1.png

Have a great day,
Ping

 

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

722 Views
juanmanuelcruz
Contributor II

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. 

0 Kudos
722 Views
jeremyzhou
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
722 Views
juanmanuelcruz
Contributor II

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?

0 Kudos
723 Views
jeremyzhou
NXP Employee
NXP Employee

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!
-----------------------------------------------------------------------------------------------------------------------