From my understanding of the RT1052 low power app notes and demo apps - in order to go into "SNVS low power mode" - all I really need to do is run the following code:
SNVS->LPCR |= SNVS_LPCR_TOP_MASK;
while (1) /* Shutdown */
{ }
However, if I create an application that just runs ^^^ from main, instead of seeing the expected <1mA current consumption, I see 15mA. (We removed SDRAM, removed FLASH, removed the other peripherals the RT1052 connects to, still see the same current)
If I set up the WAKE pin and then use that to exit wait mode, it successfully exits SNVS low power and wakes back up.
Is there anything else that needs to be done before entering SNVS?