Skip to main content
b.a.
Associate III
June 23, 2025
Solved

Nucleo-L4R5 not working when powered externally

  • June 23, 2025
  • 2 replies
  • 534 views

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?

Best answer by Andrew Neil

@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 ...

2 replies

Andrew Neil
Super User
June 23, 2025

@b.a. wrote:

I have a Nucleo-L4R5 


You mean the Nucleo-L4R5ZI ?

 

AndrewNeil_1-1750671534412.png


@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!


 

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
b.a.
b.a.Author
Associate III
June 23, 2025

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 ...

 

Andrew Neil
Andrew NeilBest answer
Super User
June 23, 2025

@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 ...

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
b.a.
b.a.Author
Associate III
June 23, 2025

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 :)