cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to Configure NucleoF446RE STLink to JLink

dleung
Associate II

Hi! I am having a lot of trouble configuring the ST-Link on my NucleoF466RE board to JLink with STLinkFlash.exe even after consulting different community posts and websites.

I was able to connect to my board using STM32CubeProgrammer on my Ubuntu 24.04.2 LTS laptop and upgrade it with the STLinkUpgrade program below.

dleung_0-1764553745622.png

Then I connected my nucleo board to my Windows VM from Virtual Box since STLinkFlash.exe can only be run in Windows. I have installed the right STLink and JLink drivers from SEGGER website and confirmed in my Device Manager that the STLink was detected.

dleung_1-1764553998485.png

However, when I launched STLinkFlash.exe to upgrade my STLink to JLink, I got the error "ERROR: Timeout: ST-LINK/V2-1 did not enter DFU mode". I tried putting the nucleo board in DFU mode by shorting the BOOT0 pin to VDD or removing/connecting different jumpers available on the board, but none worked...

dleung_2-1764554090582.png

Has anyone been able to configure their STLink on their nucleo board to JLink recently? Would really appreciate any pointers to debug this! Thank you in advance :) 

 

 

5 REPLIES 5
Andrew Neil
Super User

@dleung wrote:

Hi! I am having a lot of trouble configuring the ST-Link on my NucleoF466RE board to JLink with STLinkFlash.exe


That's a Segger utility - nothing to do with ST - so you need to go to Segger for support it:

https://www.segger.com/support/technical-support/

https://forum.segger.com/board/4-j-link-flasher-related/

 

BTW: there doesn't seem to be any such thing as a NucleoF466RE - did you mean NUCLEO-F446RE ?

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.
Ozone
Principal III

> Has anyone been able to configure their STLink on their nucleo board to JLink recently? Would really appreciate any pointers to debug this! Thank you in advance :) 

I did, with success.
And I only know of the Windows version of this conversion tool  - unfortunately.

Although it seems plausible that this tool requires the ST-Link Windows drivers (from ST) installed to recognize the ST-Links as such in the first place.

Ahhh thanks for the clarification and sending the Segger links! And yep sorry there was a typo, I meant Nucleo-F446RE board. I will submit my query to Segger technical support. Thanks!

Hi Ozone,

Thanks for letting me know! What is your STLink version on your Nucleo-F446RE board? When you say you know of the Windows version of this conversion tool, do you mean STLinkFlash.exe? Because that is what I used to try configuring the STLink on my Nucleo-F446RE board to JLink in my Windows virtual machine on my Ubuntu laptop. I did install the STLink USB Windows driver (STSW-LINK009 from ST) that recognized my Nucleo-F446RE board as a STLink in my Device Manager in my Windows VM, but STLinkFlash.exe failed to upgrade it to JLink with that DFU error...

Thanks!

> What is your STLink version on your Nucleo-F446RE board?

Not a F446 Nucleo.
Several F407 discoveries, F303 discoveries,  some C031 nucleo and F746 nucleos, and lately two F303 nucleo-32 boards.
Some of them ST-Link V2.0, most of them V2.1.

Since V3 ST-Links are based upon a STM32F7xx instead the F103, such versions most probably don't work.
And Segger explicitely supports only onboard ST-Links in it's licence conditions, not sure if the STLinkFlash.exe contains similiar restrictions.

I tried a ST-Link V3minie (standalone) just for reference, and the STLinkFlash.exe reported "no ST-Link found".
Checking in the device manager, it was listed there as ST-Link.

> Because that is what I used to try configuring the STLink on my Nucleo-F446RE board to JLink in my Windows virtual machine on my Ubuntu laptop.

I use my dayjob PC for this purpose ...