cancel
Showing results for 
Search instead for 
Did you mean: 

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

WSief.1
Associate II

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?

5 REPLIES 5
Olivier GALLIEN
ST Employee

Hi @WSief.1​ ,

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

Thanks,

Olivier

Olivier GALLIEN
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.
WSief.1
Associate II

STM32MP1 OpenSTLinux Starter Package: 4.1.0

STMCubeProgrammer: v2.12.0

Olivier GALLIEN
ST Employee

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

Olivier GALLIEN
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.
WSief.1
Associate II

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.1
Associate II

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