2025-06-23 2:29 AM - last edited on 2025-06-23 2:47 AM by Andrew Neil
I have a Nucleo-L4R5 board that I want to power externally and for power consumption reasons, deactivate the ST-Link.
For that reason I removed the jumper from JP6 and applied 5V power to CN8 pin 9 (5V)and 13 (Gnd).
USB is plugged to the ST-Link and I program the board with the timedWakeUp-example from the STM32Duino-LowPower library.
The builtin LED starts blinking as expected, but as soon as I pull the USB from the ST-Link part of the board, the blinking stops.
Board version is MB1312-A01 to which I cannot find the documentation/schematic. Only newer A03 Version is available.
When I look into the A03 schematic, all should be fine and the MCU running when JP6 jumper is pulled. The 3V3 regulator U6 is powered and I can measure that the 3V3 voltage is present.
Any idea what might be wrong?
Solved! Go to Solution.
2025-06-23 3:57 AM
@b.a. wrote:Of course I am aware that the ST-Link can be broken off.
That's not a given - many don't realise that !
My guess would be that the "deactivated" (but still connected) ST-Link is holding the NRST line down.
It looks like there is a link to disconnect NRST - so you could try that.
You said this was specifically about power consumption. In that case, you really do need to be sure that all connections to the ST-Link are properly disconnected - otherwise there will be leakage ...
2025-06-23 2:46 AM
@b.a. wrote:I have a Nucleo-L4R5
You mean the Nucleo-L4R5ZI ?
@b.a. wrote:for power consumption reasons, deactivate the ST-Link.
That board has the break-off ST-Link section (highlighted above). The surest way to deactivate the ST-Link is to break it off!
2025-06-23 3:52 AM
Yes, that's the board I use.
Of course I am aware that the ST-Link can be broken off.
So if I am asking here, maybe that is not the solution I would prefer...
Furthermore, I really would like to understand what is going on.
I am quite sure that breaking of the ST-Link will not change the current behaviour of the board not running the program with deactivated ST-Link.
So I'll end up with a broken board AND no solution ...
2025-06-23 3:57 AM
@b.a. wrote:Of course I am aware that the ST-Link can be broken off.
That's not a given - many don't realise that !
My guess would be that the "deactivated" (but still connected) ST-Link is holding the NRST line down.
It looks like there is a link to disconnect NRST - so you could try that.
You said this was specifically about power consumption. In that case, you really do need to be sure that all connections to the ST-Link are properly disconnected - otherwise there will be leakage ...
2025-06-23 4:01 AM
ST-Link is holding the NRST line down.
nailed it :)
Thank you very much, as well for the hint to cutting all the connections.
2025-06-23 4:17 AM
Oh! Just realized, that when I power the ST-Link from a different source, and connect JP6 to E5V, it draws no power from the E5V!
So that is a quick way to roughly measure power consumption of the MCU part :)
2025-06-23 4:22 AM
@b.a. wrote:
ST-Link is holding the NRST line down.nailed it :)
Glad that helped!
The User Manual mentions it for external 3.3V operation, but not 5V:
@STTwo-32 - is this a documentation error/omission?