Skip to main content
SLetter
Associate III
April 8, 2021
Solved

I continually get "Error: Cannot identify the device" on STM32MP157c-dk2

  • April 8, 2021
  • 2 replies
  • 3634 views

Trying to program over ST-LINK instead of DFU. Boot0 and Boot2 are both switched away from the card edge. Here is what I am seeing:

letter@steve-T7500:~/work/Starter-Package/stm32mp1-openstlinux-5-4-dunfell-mp1-20-11-12/images/stm32mp1$ STM32_Programmer_CLI -c port=SWD -w flashlayout_st-image-weston/trusted/FlashLayout_sdcard_stm32mp157c-dk2-trusted.tsv

     -------------------------------------------------------------------

                       STM32CubeProgrammer v2.7.0                 

     -------------------------------------------------------------------

ST-LINK SN : 0668FF303739465043112823

ST-LINK FW : V2J32M22

Board      : NUCLEO-NONE 

Voltage    : 3.23V

SWD freq   : 4000 KHz

Connect mode: Normal

Reset mode : Software reset

Error: Cannot identify the device

What am I doing wrong?

This topic has been closed for replies.
Best answer by Houda GHABRI

Hi @nonesuchetter​ ,

Program MP1 MPU using STM32CubeProgrammer is possible only using DFU, SWD is not supported.

Have a look at MP1 WIKI which give many information about MP1 flashing.

If your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Houda

2 replies

Houda GHABRI
Houda GHABRIBest answer
ST Employee
April 9, 2021

Hi @nonesuchetter​ ,

Program MP1 MPU using STM32CubeProgrammer is possible only using DFU, SWD is not supported.

Have a look at MP1 WIKI which give many information about MP1 flashing.

If your question is answered, please close this topic by choosing Select as Best. This will help other users find that answer faster.

Houda

SLetter
SLetterAuthor
Associate III
April 9, 2021

Then why is it even an option? Just curious.

Houda GHABRI
ST Employee
April 9, 2021

Hi @nonesuchetter​ ,

The SWD is kept in this use case because it is used for testing purpose. :smiling_face_with_smiling_eyes:

Houda