cancel
Showing results for 
Search instead for 
Did you mean: 

Failed to firmware upgrade ST-LINK firmware on STM32MP157F-DK2 board using STM32CubeProgrammer version 2.12

SThon.1
Associate II

Hi,

I am using STM32CubeProgrammer version 2.12 running on Windows 10 to connect to the STM32MP157F-DK2 board ST-LINK connector CN-11.

I managed to connect and when I click "Firmware upgrade" the STLinkUpgrade 3.4.0 window opens.

However, when I press "Open in update mode" I get the error message:

Error connecting to device ST-LINK/V2-1 (error 0x3); check USB connection and refresh the device list

At this point the connection is dropped and I have to connect again.

I also noticed that the "Current Firmware" was not listed as I expected from my experience of upgrading the ST-LINK firmware on other NUCLEO and DISCOVERY boards.

Maybe the current version of STM32CubeProgrammer doesn't yet support the STM32MP157F-DK2 board ?

Any help would be much appreciated.

Kind regards,

Steinar

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hi @SThon.1​ ,

could you please try without connecting to the target.

Note that STLINK within CubeProgrammer is useless with STM32MP1 devices as Flash programming must be issued using USB or UART(not viable due to size to be loaded). see https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image.

STLINK is only there for VCP (console) and debugging using CubeIDE.

Alternatively you could also update to latest STLINK FW using dedicated tool: https://www.st.com/en/development-tools/stsw-link007.html

Regards

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.

View solution in original post

2 REPLIES 2
PatrickF
ST Employee

Hi @SThon.1​ ,

could you please try without connecting to the target.

Note that STLINK within CubeProgrammer is useless with STM32MP1 devices as Flash programming must be issued using USB or UART(not viable due to size to be loaded). see https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let%27s_start/Populate_the_target_and_boot_the_image.

STLINK is only there for VCP (console) and debugging using CubeIDE.

Alternatively you could also update to latest STLINK FW using dedicated tool: https://www.st.com/en/development-tools/stsw-link007.html

Regards

In order to give better visibility on the answered topics, please click on 'Select as Best' on the reply which solved your issue or answered your question. See also 'Best Answers'

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.
SThon.1
Associate II

I got it to work when not connecting to the target as you suggested and was able to upgrade the ST-Link firmware on the board.

Thank you for the quick reply!