2025-07-14 10:09 AM
Hello,
I'm using a STM32L071KZT6 on a custom PCB and it was working fine, until after some programming iterations, it suddendly started drawing more current than expected. It reached 220mA to power with 3.3V.
This happened twice, in two different mcu, and with the same version of the code, which is nothing too complex.
Any idea why this might happen and how I can solve this?
I already tried to erase the mcu flash, program with an empty code and configure all peripherals as analog, all suggestions that I've seen around foruns, but none of these worked.
2025-07-14 10:15 AM - edited 2025-07-14 10:16 AM
Most likely cause is due to a hardware error. If it's happening consistently, probably an error in the design.
This doesn't sound like a software issue.
Post the schematic.
Getting started with STM32L0xx hardware development
Perhaps this: