Hi julien,
Thank you for your interest in NXP LPC Product, I would like to provide service for you.
From your code, I find you are using the deep sleep mode, not the sleep mode.
But as I know, both the deep sleep and the sleep mode, the reset all can wake it up.
And I have tested it in our MCB4357 board with the lpcopen pmc_states, this is the test result:
==========================================================================
NXP Semiconductors LPC18xx/43xx MCU Power Management Controller example
=============================================================================
Select the power state test to be executed
- Sleep state & Wake up test : Press '1' to select
- Deep Sleep state & Wake up test : Press '2' to select
- Power down state & Wake up test : Press '3' to select
- Deep power down state & Wake up test : Press '4' to select
- Exit the demo : Press 'X' or 'x' to select
=============================================================================
'Deep Sleep' state test selected
Select the Wake up signal
- WAKEUP0 pin : Press 'W' or 'w' to select
- RTC Alarm : Press 'R' or 'r' to select
WAKEUP0 pin selected
Press 'C' or 'c' to start demo...
Entering 'Deep Sleep' state ...
Press WAKEUP0 button/Connect WAKEUP0 pin to 3.3V to exit 'Deep Sleep' mode
==========================================================================
NXP Semiconductors LPC18xx/43xx MCU Power Management Controller example
=============================================================================
Select the power state test to be executed
- Sleep state & Wake up test : Press '1' to select
- Deep Sleep state & Wake up test : Press '2' to select
- Power down state & Wake up test : Press '3' to select
- Deep power down state & Wake up test : Press '4' to select
- Exit the demo : Press 'X' or 'x' to select
=============================================================================
You can find after entering the deep sleep mode, the printf information let to press WAKEUP0 to wake up the chip.
But i press the reset button, I also make the chip wake up.
So, I think you can try our official code:
LPCOpen Software for LPC43XX|NXP
Besides, about the RESET pin circuit, I don't know how you design it, you need to add the external pull up and 0.1uf capacitor to ground.
Wish it helps you!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------