good morning, I am using a stm32l010f4, I am using with a battery cr2032 250mha 3v, I am testing to place the microcontroller in low power, I need it to be with 5 nA or approximate when I put it in "stop mode". I have problems because when I put it in stop mode and disable the systick, the cpu stops but still consumes 2.2 mA which is very high, I will discharge the battery. I can not place standby because I can only do wake up with external interruptions. But I want to do stop mode and also stop the ram, flash, pass the inputs as analog mode, stop everything possible to get to the lowest consumption. but I'm not getting examples, nor do I have the correct instructions. has anyone already worked with this type of microcontroller?
5nA is impossible i hope you mean 5uA. And how yout test this? You flash code from IDE with disabled debug in low power mode ? Good is after flash disconnect battery and all external sources.
well 5nA is desirable, but I want to reach the lowest value, I am using 8mhz HSI, I read that if I use external crystal with lower frequency I can reach the lowest consumption value. I measure consumption with the multimeter and placing a 250mHA 3.3v battery, which is the one I need in the project. But I don't disable the debug mode, I write inside the while : HAL_SuspendTick();
I no problem have under 5uA . Try show schematics , place some check code before start power STOP for example set pin to low and after to high. Check with scope if MCU stay in STOP...