cancel
Showing results for 
Search instead for 
Did you mean: 

Problem to flashing immage to STM32MPF-DK2

MMarc.11
Associate II

I cannot load the image into the SD card of the STM32MP157F-DK2 board.

I set the switches to OFF

I start the board that starts in BOOT FOR FLASCHING (only the LD4 led is on steady red)

Through the terminal or graphical STMProgrammer I start the download of the image (file: FlashLayout_sdcard_stm32mp157f-dk2-trusted.tsv)

It loads Partition ID 0x001 correctly, finishes loading Partition ID 0x003, then the board exits the BOOT FOR FLASHING mode (the blue LD8 LED lights up and the LD6 LED flashes red) and the software returns to me Reconnecting the device ...

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

Hi @MMarc.11​ 

Blue led mean uBoot started, and led6 flashing is probably an USB Type-C compliance issue.

To confirm, could you share the board Console log (available thru ST-Link VCP) ?

0693W00000aInAjQAK.pngRegards

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

5 REPLIES 5
PatrickF
ST Employee

Hi @MMarc.11​ 

Blue led mean uBoot started, and led6 flashing is probably an USB Type-C compliance issue.

To confirm, could you share the board Console log (available thru ST-Link VCP) ?

0693W00000aInAjQAK.pngRegards

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.
MMarc.11
Associate II

Here you are:

10:36:36 : Start Embedded Flashing service

 10:36:36 : Memory Programming ...

 10:36:36 : Opening and parsing file: tf-a-stm32mp157f-dk2-usb.stm32

 10:36:36 :  File     : tf-a-stm32mp157f-dk2-usb.stm32

 10:36:36 :  Size     : 220,38 KB 

 10:36:36 :  Partition ID : 0x01 

 10:36:36 : Download in Progress:

 10:36:37 : File download complete

 10:36:37 : Time elapsed during download operation: 00:00:01.580

 10:36:37 : RUNNING Program ... 

 10:36:37 :  PartID:   :0x01 

 10:36:38 : Start operation done successfully at partition 0x01

 10:36:38 : Memory Programming ...

 10:36:38 : Opening and parsing file: fip-stm32mp157f-dk2-trusted.bin

 10:36:38 :  File     : fip-stm32mp157f-dk2-trusted.bin

 10:36:38 :  Size     : 1,14 MB 

 10:36:38 :  Partition ID : 0x03 

 10:36:38 : Download in Progress:

 10:36:41 : File download complete

 10:36:41 : Time elapsed during download operation: 00:00:03.766

 10:36:41 : RUNNING Program ... 

 10:36:41 :  PartID:   :0x03 

 10:36:42 : Reconnecting the device ...

MMarc.11
Associate II

and after the timeout time you add this:

 10:37:42 : Error: Unable to reconnect the target device: time out expired

 10:37:42 : Error: Start operation failed at partition 0x03

 10:37:42 : Error: TSV flashing service failed

 10:37:42 : Warning: Connection to device 0x500 is lost

 10:37:42 : Disconnected from device.

if instead I press reset and reconnect the cycle repeats itself indefinitely

PatrickF
ST Employee

Hi @MMarc.11​ 

I was meaning the UART console log using a serial terminal on STLink Virtual Com Port.

This is an example on Linux Ubuntu PC : https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-DK2/Let's_start/Execute_basic_commands#Serial_terminal

On W10 or W11 it is very similar, you could use any terminal application like putty or teraterm or else.

Setup is 115200,n,8,1

Regards,

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.
MMarc.11
Associate II

I solved the problem, in the logs it showed me the supply current was too low.

Thank you