Skip to main content
Associate II
January 6, 2026
Solved

STM32MP257F-EV1 – Issue in connecting ST-Link with STM32CubeProgrammer

  • January 6, 2026
  • 1 reply
  • 342 views

Hi ST Team,

I am working with STM32MP257F-EV1 board and facing an issue while trying to connect the ST-Link interface using STM32CubeProgrammer.

Connection setup:
An external ST-LINK/V2 programmer is connected to the CN22 (ST-LINK header) on the STM32MP257F-EV1 board.

Behaviour:
1) Tried connecting with both SWD and JTAG modes, but the connection fails in both the cases.
2) The board is detected only when connecting USB to connector CN15(USB_DRD) in DFU Mode.

For your reference ,I have attached the STM32CubeProgrammer configuration screenshots and connection logs.

Additionally, while reviewing the ST Community forum, I found the following discussion related to this issue.
link: https://community.st.com/t5/stm32-mpus-software-development/debug-authentication-on-the-stm32mp2257f-ev1-for-st-link/td-p/708255

Could you please confirm whether this behavior is expected for the STM32MP257F-EV1 and any configuration or steps to enable and validate CN22 (ST-LINK header) on STM32MP257F-EV1 board ?

Thanks and Regards,
Kaviya M

Best answer by PatrickF

Hi @Kaviya_M 

Unlike other STM32 MCUs, the STM32MPx MPUs cannot be flashed with JTAG/SWD.

Only USB (and to a certain extend, UART) should be used with CubeProgrammer.

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer

 

JTAG/SWD (and so, STLINK) is only used for debug purposes.

https://wiki.st.com/stm32mpu/wiki/STM32_MPU_Platform_trace_and_debug_environment_overview

 

Regards.

1 reply

PatrickF
PatrickFBest answer
Technical Moderator
January 6, 2026

Hi @Kaviya_M 

Unlike other STM32 MCUs, the STM32MPx MPUs cannot be flashed with JTAG/SWD.

Only USB (and to a certain extend, UART) should be used with CubeProgrammer.

https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer

 

JTAG/SWD (and so, STLINK) is only used for debug purposes.

https://wiki.st.com/stm32mpu/wiki/STM32_MPU_Platform_trace_and_debug_environment_overview

 

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent