2024-09-30 02:00 PM
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:
Any advice or guidance would be greatly appreciated. Thanks in advance for your help!
2024-10-01 05:47 AM
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.