Skip to main content
Visitor II
September 30, 2024
Question

Need Help Flashing STM32MP15xx, Repeat Partition 0x01 Flashing Issue

  • September 30, 2024
  • 1 reply
  • 746 views

Hi,

I'm currently facing an issue while trying to flash my STM32MP157C using STM32CubeProgrammer (CLI) with a flash layout `.tsv` file. Every time I run the command, it seems to flash partition `0x01` successfully, but then it starts flashing the same partition again in an infinite loop.

Here’s the command I’m using:

STM32_Programmer_CLI -c port=usb1 -w flashlayout-demo.tsv

Output from STM32CubeProgrammer:

-------------------------------------------------------------------
STM32CubeProgrammer v2.17.0
-------------------------------------------------------------------


USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x500, @Revision ID /0x0000
SN : 003200273332511731383635
DFU protocol: 1.1
Board : --
Device ID : 0x0500
Device name : STM32MP15xx
Device type : MPU
Revision ID : --
Device CPU : Cortex-A7

Start Embedded Flashing service

Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-ev1-usb.stm32
File : tf-a-stm32mp157c-ev1-usb.stm32
Size : 220.41 KB
Partition ID : 0x01

Download in Progress:
[==================================================] 100%

File download complete
Time elapsed during download operation: 00:00:02.037

RUNNING Program ...
PartID: :0x01
Start operation done successfully at partition 0x01

 

However, after this, the same file is flashed to partition `0x01` again, and this cycle repeats itself. Here’s a snippet of the output, showing the repeated operations:


Memory Programming ...
Opening and parsing file: tf-a-stm32mp157c-ev1-usb.stm32
File : tf-a-stm32mp157c-ev1-usb.stm32
Size : 220.41 KB
Partition ID : 0x01

Download in Progress:
[==================================================] 100%

File download complete
Time elapsed during download operation: 00:00:02.030

RUNNING Program ...
PartID: :0x01
Start operation done successfully at partition 0x01

 

Here is the content of the `flashlayout-demo.tsv` file I’m using:

#opt Id Name Type Device Offset Binary
- 0x01 fsbl-boot Binary none 0x00000000 tf-a-stm32mp157c-ev1-usb.stm32
- 0x03 fip-boot FIP none 0x00000000 fip-stm32mp157c-ev1-optee-emmc.bin

 

My Questions:

  1. Why is the STM32CubeProgrammer repeatedly flashing partition `0x01` even after the "Start operation done successfully" message?
  2. Is there an issue with my `.tsv` file or the flashing procedure?
  3. How can I stop this endless flashing loop and ensure the correct partitions are flashed as per the layout?

 

Any advice or guidance would be greatly appreciated. Thanks in advance for your help!

This topic has been closed for replies.

1 reply

PatrickF
ST Employee
October 1, 2024

Hi,

should work.

Please confirm you are using an STM32MP157x-EV1 board.

Please confirm there is 'tab' separators in the .tsv file.

Could you please share the board console output messages during the flashload (using ST-Link connector of the daughter board and VCP terminal on the PC) ?
Is it working when you do a complete starter package flashload with provided .tsv as described in https://wiki.st.com/stm32mpu/wiki/Getting_started/STM32MP1_boards/STM32MP157x-EV1/Let%27s_start/Populate_the_target_and_boot_the_image ?

Regards.

In order to give better visibility on the answered topics, please click on 'Best Answer' on the reply which solved your issue or answered your question.Tip of the day: Try Sidekick STM32 AI agent