Skip to main content
Visitor II
March 10, 2023
Solved

Problem to flashing immage to STM32MPF-DK2

  • March 10, 2023
  • 5 replies
  • 5393 views

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 ...

    This topic has been closed for replies.
    Best answer by PatrickF

    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

    5 replies

    PatrickFAnswer
    Technical Moderator
    March 13, 2023

    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

    MMarc.11Author
    Visitor II
    March 13, 2023

    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.11Author
    Visitor II
    March 13, 2023

    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

    Technical Moderator
    March 13, 2023

    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,

    MMarc.11Author
    Visitor II
    March 14, 2023

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

    Thank you