Skip to main content
Visitor II
May 15, 2023
Question

Issues while programming board STM32MP157C-dk2 over STM32CubeProgrammer. See details below.

  • May 15, 2023
  • 5 replies
  • 1639 views

STM32MP157C-dk2

I am trying to update the Board using SUART3 (Pins PB10, PB12) over STM32CubeProgrammer. The connection to STM32CubeProgrammer is established successfully. Unfortently after downloading the fdbl-boot (tf-a-stm32mp157c-dk2-uart.stm32)

the failure appears while system tries to start from downloaded part.

See console:

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

 19:25:00 :  File         : tf-a-stm32mp157c-dk2-uart.stm32

 19:25:00 :  Size         : 216.38 KB

 19:25:00 :  Partition ID : 0x01

 19:25:00 : Download in Progress:

 19:26:23 : File download complete

 19:26:23 : Time elapsed during download operation: 00:01:23.074

 19:26:23 : RUNNING Program ...

 19:26:23 :  PartID:     :0x01

 19:26:23 : Start operation done successfully at partition 0x01

 19:26:54 : Timeout error occured while waiting for acknowledgement.

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

Are there any limitation to the UART used by given bootloader? Or what are other reasons which might be related to the issue?

    This topic has been closed for replies.

    5 replies

    Technical Moderator
    May 16, 2023

    Hi @WSief.1​ ,

    Could you please share the log from serial console and details of ecosystem used ( CubeProgrammer and OpenSTLinux version )

    Thanks,

    Olivier

    WSief.1Author
    Visitor II
    May 16, 2023

    STM32MP1 OpenSTLinux Starter Package: 4.1.0

    STMCubeProgrammer: v2.12.0

    Technical Moderator
    May 17, 2023

    Hi @WSief.1​ ,

    The log file you sent is still the one from CubeProgrammer on host side.

    The one I have asked for is the serial log from target, usually on UART4.

    Anyway, in the one you sent I can read :

    "10:26:06:639 : Error: File does not exist: H:\W.Siefried\von JSLT\Piedrafita\Starter-Package\WMS\STM32MP157C-DK2/arm-trusted-firmware/tf-a-stm32mp157c-dk2-usb.stm32

    10:26:06:713 : Error: TSV flashing service failed"

    That's look to point to an obvious issue in your tsv file or binary file organization.

    Typically path of such firmware in Starter Package is this:

    \images\stm32mp1\arm-trusted-firmware

    Why -usb flavor while I understand you want to program with UART3 ?

    And, for my curiosity, why you program a DK2 with UART3 ?

    On this board preferable path is USB, then UART4.

    Olivier

    WSief.1Author
    Visitor II
    May 17, 2023

    The described error is not related for issue (startup of programmer)

    The configuration is loaded at 10:26:17:482 : Read TSV File....

    I will check UART 4 and provide information.

    In general: I am using UART3 as alternative to USB to check a developer board where USB currently not working. This eval board is used for verification purpose.

    WSief.1Author
    Visitor II
    May 17, 2023

    Log of UART4:

    NOTICE: CPU: STM32MP157CAC Rev.B

    NOTICE: Model: STMicroelectronics STM32MP157C-DK2 Discovery Board

    NOTICE: Board: MB1272 Var2.0 Rev.C-01

    INFO:   PMIC version = 0x10

    INFO:   Reset reason (0x15):

    INFO:     Power-on Reset (rst_por)

    INFO:   FCONF: Reading TB_FW firmware configuration file from: 0x2ffe2000

    INFO:   FCONF: Reading firmware configuration information for: stm32mp_io

    INFO:   Using UART

    INFO:     Instance 3

    INFO:   Boot used partition fsbl1

    NOTICE: BL2: v2.6-stm32mp1-r2.0(debug):v2.6-dirty(a1f02f4f)

    NOTICE: BL2: Built : 13:14:26, Nov 23 2021

    INFO:   BL2: Doing platform setup

    INFO:   RAM: DDR3-DDR3L 16bits 533000kHz

    INFO:   Memory size = 0x20000000 (512 MB)

    ASSERT: plat/st/common/bl2_io_storage.c:329

    Exception mode=0x00000016 at: 0x00000001