Hi Miguel,
I'm not using the LPCXpresso54114 board, but a design we've created using the 64-pin variant of the LPC54114. I've modified the PMU demo to the equivalent of the following code:
// Just disabling the ADC pins to make sure
static const PINMUX_GRP_T pinmuxing[] = {
{0, 29, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 30, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{0, 31, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 0, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 1, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 2, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 3, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 4, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 5, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 6, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 7, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
{1, 8, (IOCON_FUNC0 | IOCON_MODE_INACT | IOCON_DIGITAL_EN)},
};
int main(void)
{
SystemCoreClockUpdate();
Board_Init(); // default, initialises GPIO, led, inputmux/iocon clocks
// Switch to 12 mHz, as suggested in the application note
Chip_Clock_SetMainClockSource(SYSCON_MAINCLKSRC_FRO12MHZ);
LPC_SYSCON->FROCTRL &= ~(SYSCON_FROCTRL_MASK | SYSCON_FROCTRL_HSPDCLK);
Chip_SYSCON_SetFLASHAccess(SYSCON_FLASH_1CYCLE);
Chip_POWER_SetVoltage(Chip_Clock_GetMainClockRate());
// Ensure ADC pins are digital, re: errata
Chip_IOCON_SetPinMuxing(LPC_IOCON, pinmuxing, sizeof(pinmuxing) / sizeof(pinmuxing[0]));
// <flash some LEDs to create a delay>
// Deep power-down settings from the periph_pmu example
NVIC_DisableIRQ(PININT_NVIC_NAME);
Chip_PININT_DeInit(LPC_PININT);
Chip_SYSCON_DisableWakeup(SYSCON_STARTER_PINT0);
Chip_Clock_DisablePeriphClock(SYSCON_CLOCK_INPUTMUX);
// Enter deep power-down, everything should be disabled
Chip_POWER_EnterPowerMode(POWER_DEEP_POWER_DOWN, 0);
}Most of the code above seems to be redundant, but when entering POWER_DEEP_POWER_DOWN with a parameter of 0 I would expect everything except the RTC to be terminated. For some reason we're still seeing a fairly hefty power draw, as I noted above, with just the processor and the 2.5V reference attached.
Physically on the design, using the 64-pin LPC54114, the relevant connected pins are:
Vdd: pins 8, 24, 34, 56 connected directly to 3.6V
Vss: pins 9, 25, 55
VddA: pin 23 connected directly to 3.6V
VrefP_ADC: pin 22 connected to 2.5V reference
VrefN: pin 21 connected to ground
VssA: pin 20 connected to ground
RTC: pins 33, 35, connected to 32.768 kHz
RESETN: pin 64 connected to reset IC and held high
Pins 31, 38: Pulled high
Pins 58, 59, 61: connected to LED
On this test board I'm using, all other components have been disconnected from the main processor. There's no other current-consuming parts other than the voltage reference, which averages 350 nA and maxes at 1.5 uA. With this setup I'd expect an average of around 1 uA sleep, but I'm getting 20 to 80 (depending on whether VddA is connected to 3.6V or 2.5V).
I've reviewed the LPCXpresso54114 schematic and the only difference I've really noted is that the VddA and VrefP are tied to Vcc. We're ordering some of those boards to verify, but in the meantime I'd be interested in any advice you could offer 
- B