Hi, I have to try enter STOP 3 mode. The power consumption about 500 uA, but datasheet typical is under 1uA.
How to reduce power consumption? thank you.
SOPT1_STOPE=1;
SPMSC1_LVDE=0;
SPMSC1_LVDSE=0;
SPMSC2_PPDE=0;
SPMSC2_PPDC=0;
Hello Jeff, and welcome to the forum.
If any GPIO pins are not connected to external circuitry, and have not been properly initialised, there will be extra current draw due to inputs that are left floating. After POR, all GPIO pins are inputs. To minimize the current draw, either enable pullups, or alternatively set each unused pin for output.
If you happen to be using a package with reduced number of pins, for the particular device, the unpinned GPIO must always be initialised in the above manner.
Regards,
Mac