LPC55S69: precondition for PowerDown API

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

LPC55S69: precondition for PowerDown API

652 Views
EugeneHiihtaja
Senior Contributor I

Hello !

I try to add PowerDown mode to tickless implementation of RTOS in SDK and all calculation located in this macro:

configPOST_SLEEP_PROCESSING(xExpectedIdleTime);

Enter_PowerDown() is called there. Looks like it enter to PowerDown mode but it is not possible to wakeup it back by any source.

But freertos handler disable all interrupts and enable those back after.

__disable_irq();

...

POWER_EnterPowerDown(
(kPDRUNCFG_PD_LDOMEM | kPDRUNCFG_PD_FRO32K),
0x7FFF,
WAKEUP_GPIO_GLOBALINT0 | WAKEUP_GPIO_GLOBALINT1 |
WAKEUP_RTC_LITE_ALARM_WAKEUP
| WAKEUP_FLEXCOMM3 | WAKEUP_OS_EVENT_TIMER,
1);

....

_enable_irg()

Can wakeup works with disabled interrupts ?

What are other preconditions ?

Regards,

Eugene

Labels (1)
0 Kudos
3 Replies

535 Views
soledad
NXP Employee
NXP Employee

Hi,

Please check the following document:

Tickless Low power features in FreeRTOS 

I hope this helps, have a great day,
Sol

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

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 Kudos

535 Views
EugeneHiihtaja
Senior Contributor I

Hi soledad‌ !

I know how ticklessrtos working, but problem with Power management library . It is a library and no clear why it is not possible to wakeup from PowerDown mode when TZ is enabled. Looks like it should have access to all peripherals what is need but no way to check what exactly it is doing.

So what exact library variant and what precondition need for library ?

Regards,

Eugene

0 Kudos

535 Views
soledad
NXP Employee
NXP Employee

If you use the Power Down Library you should be able to return from an Interrupt but if you secure the complete memory you are blocking the MCU to access the registers and the Interrupts never  goes on.

Remove the TZ after sending the MCU into Power Donw and once you clear the power mode, then you should send back to secure mode. this way you are in a way to wakeup.

Happy Holidays!

0 Kudos