AnsweredAssumed Answered

SRAM0B shutdown error

Question asked by Simon Wyss on Jul 26, 2017
Latest reply on Jul 28, 2017 by Simon Wyss

Going in power-down mode works if I use the default setting (from the LPCopen example rtc.c):

/* Go to sleep leaving SRAM and the 32K oscillator powered during sleep. Use lower
voltage during sleep. */

Chip_POWER_EnterPowerMode(curr_pwr,
(SYSCON_PDRUNCFG_PD_SRAM0A | SYSCON_PDRUNCFG_PD_SRAM0B | SYSCON_PDRUNCFG_PD_32K_OSC));

 But wakeup doesn't work if I also shutdown the SRAM0B. Therefore only the first 8kB of the RAM stay active.

/* Go to sleep leaving SRAM and the 32K oscillator powered during sleep. Use lower
voltage during sleep. */

Chip_POWER_EnterPowerMode(curr_pwr,
(SYSCON_PDRUNCFG_PD_SRAM0A | SYSCON_PDRUNCFG_PD_32K_OSC));


My code uses the following space:
text data bss dec hex filename
40288 4 1004 41296 a150 MyCode.axf

 

In my opinion the bss is the required RAM size in bytes. This is much less than the size of the first 8kB of the SRAM0.

How can I solve this problem?

 

Thank you for your advice.

Outcomes