I uploaded the simplest code to my Nucleo-32 L432KC STM32 board. The LED3 should just blink every 1 second. It works perfectly when the board is connected to the computer by USB, and it also works perfectly when the power source is connected to the VIN pin, although in that case it consumes about 40mA which is unacceptable for that project.
I'm tying to move the power source positive pin to 3V3 or to 5V but in both cases the board doesn't function properly. It does get power and starts working, lighting up the LED2 red light, but the LD3 light that should blink just does't light up. And that's just the example. obviously my original code doesn't work as well when the board is connected to 3V3 or 5V.
Is anyone familiar with this issue?