Understanding Low Power Solution
There may be problems if you have unpowered peripheral devices connected to a powered microcontroller. You need to make sure that all microcontroller pins that are connected to these peripherals are set to a low voltage (logic 0) before removing power to the peripherals. Otherwise, significant current will flow through the input protection circuits of the peripherals.