2025-05-27 1:32 AM - edited 2025-05-27 1:34 AM
Dear ST Developer Support,
I download the STM32MP2 android 13 images from https://www.st.com/en/embedded-software/stm32mp2droidsta.html#get-software .
When I flash the st-android-13.0.0-2024-07-31-stm32mp257f-ev1-emmc-starter images by using STM32CubeProgrammer v2.19 for windows, I would fail on flashing super.img phase.
The error message show "Error while reading the file".
Would you help me solve this problem. Thanks.
I attached the fail logs
11:40:58 : STM32CubeProgrammer API v2.19.0 | Windows-64Bits
11:41:07 : UR connection mode is defined with the HWrst reset mode
11:41:07 : USB speed : High Speed (480MBit/s)
11:41:07 : Manuf. ID : STMicroelectronics
11:41:07 : Product ID : DFU in HS Mode @Device ID /0x505, @Revision ID /0x2000
11:41:07 : SN : 002F00414136500B00373653
11:41:07 : DFU protocol: 1.1
11:41:07 : Board : --
11:41:07 : Device ID : 0x0505
11:41:11 : Read TSV File: D:\Project\STM\STM32MP257F\Android-13\en.st-android-13.0.0-2024-07-31-stm32mp257f-ev1-emmc-starter\st-android-13.0.0-2024-07-31-stm32mp257f-ev1-emmc-starter\FlashLayout_emmc_optee.tsv
11:41:11 : Number of partitions: 20
11:41:13 : Start Embedded Flashing service
11:41:13 : Opening and parsing file: fsbl-programmer.img
11:41:13 : Memory Programming ...
11:41:13 : File : fsbl-programmer.img
11:41:13 : Size : 182.86 KB
11:41:13 : Partition ID : 0x01
11:41:13 : Download in Progress:
11:41:14 : File download complete
11:41:14 : Time elapsed during download operation: 00:00:01.560
11:41:14 : RUNNING Program ...
11:41:14 : PartID: :0x01
11:41:15 : Reconnecting the device ...
11:41:15 : USB speed : High Speed (480MBit/s)
11:41:15 : Manuf. ID : STMicroelectronics
11:41:15 : Product ID : DFU @Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAI Rev.Y,
11:41:15 : SN : 002F00414136500B00373653
11:41:15 : DFU protocol: 1.1
11:41:15 : Board : --
11:41:15 : Device ID : 0x0505
11:41:15 : Device name : STM32MP257FAI Rev.Y
11:41:15 : Device type :
11:41:15 : Device CPU :
11:41:15 : Start operation done successfully at partition 0x01
11:41:15 : Opening and parsing file: fip-ddr-programmer.img
11:41:15 : Memory Programming ...
11:41:15 : File : fip-ddr-programmer.img
11:41:15 : Size : 28.79 KB
11:41:15 : Partition ID : 0x02
11:41:15 : Download in Progress:
11:41:15 : File download complete
11:41:15 : Time elapsed during download operation: 00:00:00.026
11:41:15 : RUNNING Program ...
11:41:15 : PartID: :0x02
11:41:16 : Reconnecting the device ...
11:41:16 : USB speed : High Speed (480MBit/s)
11:41:16 : Manuf. ID : STMicroelectronics
11:41:16 : Product ID : DFU @Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAI Rev.Y,
11:41:16 : SN : 002F00414136500B00373653
11:41:16 : DFU protocol: 1.1
11:41:16 : Board : --
11:41:16 : Device ID : 0x0505
11:41:16 : Device name : STM32MP257FAI Rev.Y
11:41:16 : Device type :
11:41:16 : Device CPU :
11:41:16 : Start operation done successfully at partition 0x02
11:41:16 : Opening and parsing file: fip.img
11:41:16 : Memory Programming ...
11:41:16 : File : fip.img
11:41:16 : Size : 2.64 MB
11:41:16 : Partition ID : 0x03
11:41:16 : Download in Progress:
11:41:18 : File download complete
11:41:18 : Time elapsed during download operation: 00:00:02.187
11:41:18 : RUNNING Program ...
11:41:18 : PartID: :0x03
11:41:18 : Reconnecting the device ...
11:41:24 : USB speed : High Speed (480MBit/s)
11:41:24 : Manuf. ID : STMicroelectronics
11:41:24 : Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAI Rev.Y,
11:41:24 : SN : 002F00414136500B00373653
11:41:24 : DFU protocol: 1.1
11:41:24 : Board : --
11:41:24 : Device ID : 0x0505
11:41:24 : Device name : STM32MP257FAI Rev.Y
11:41:24 : Device type :
11:41:24 : Device CPU :
11:41:24 : Start operation done successfully at partition 0x03
11:41:24 : Flashlayout Programming ...
11:41:24 : Running Flashlayout Partition ...
11:41:25 : Reconnecting the device ...
11:41:25 : USB speed : High Speed (480MBit/s)
11:41:25 : Manuf. ID : STMicroelectronics
11:41:25 : Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAI Rev.Y,
11:41:25 : SN : 002F00414136500B00373653
11:41:25 : DFU protocol: 1.1
11:41:25 : Board : --
11:41:25 : Device ID : 0x0505
11:41:25 : Device name : STM32MP257FAI Rev.Y
11:41:25 : Device type :
11:41:25 : Device CPU :
11:41:25 : Flashlayout partition started successfully
11:41:25 : Opening and parsing file: fsbl-optee.img
11:41:25 : Memory Programming ...
11:41:25 : File : fsbl-optee.img
11:41:25 : Size : 198.90 KB
11:41:25 : Partition ID : 0x04
11:41:25 : Download in Progress:
11:41:25 : File download complete
11:41:25 : Time elapsed during download operation: 00:00:00.055
11:41:25 : RUNNING Program ...
11:41:25 : PartID: :0x04
11:41:25 : Start operation done successfully at partition 0x04
11:41:25 : Opening and parsing file: fsbl-optee.img
11:41:25 : Memory Programming ...
11:41:25 : File : fsbl-optee.img
11:41:25 : Size : 198.90 KB
11:41:25 : Partition ID : 0x05
11:41:25 : Download in Progress:
11:41:25 : File download complete
11:41:25 : Time elapsed during download operation: 00:00:00.060
11:41:25 : RUNNING Program ...
11:41:25 : PartID: :0x05
11:41:25 : Start operation done successfully at partition 0x05
11:41:25 : Opening and parsing file: fip.img
11:41:25 : Memory Programming ...
11:41:25 : File : fip.img
11:41:25 : Size : 2.64 MB
11:41:25 : Partition ID : 0x06
11:41:25 : Download in Progress:
11:41:26 : File download complete
11:41:26 : Time elapsed during download operation: 00:00:00.693
11:41:26 : RUNNING Program ...
11:41:26 : PartID: :0x06
11:41:26 : Start operation done successfully at partition 0x06
11:41:26 : Opening and parsing file: splash.img
11:41:26 : Memory Programming ...
11:41:26 : File : splash.img
11:41:26 : Size : 166.05 KB
11:41:26 : Partition ID : 0x10
11:41:26 : Download in Progress:
11:41:26 : File download complete
11:41:26 : Time elapsed during download operation: 00:00:00.048
11:41:26 : RUNNING Program ...
11:41:26 : PartID: :0x10
11:41:26 : Start operation done successfully at partition 0x10
11:41:26 : Opening and parsing file: vbmeta.img
11:41:26 : Memory Programming ...
11:41:26 : File : vbmeta.img
11:41:26 : Size : 8.00 KB
11:41:26 : Partition ID : 0x11
11:41:26 : Download in Progress:
11:41:26 : File download complete
11:41:26 : Time elapsed during download operation: 00:00:00.007
11:41:26 : RUNNING Program ...
11:41:26 : PartID: :0x11
11:41:26 : Start operation done successfully at partition 0x11
11:41:26 : Opening and parsing file: vbmeta.img
11:41:26 : Memory Programming ...
11:41:26 : File : vbmeta.img
11:41:26 : Size : 8.00 KB
11:41:26 : Partition ID : 0x12
11:41:26 : Download in Progress:
11:41:26 : File download complete
11:41:26 : Time elapsed during download operation: 00:00:00.013
11:41:26 : RUNNING Program ...
11:41:26 : PartID: :0x12
11:41:26 : Start operation done successfully at partition 0x12
11:41:26 : Opening and parsing file: boot.img
11:41:26 : Memory Programming ...
11:41:26 : File : boot.img
11:41:26 : Size : 64.00 MB
11:41:26 : Partition ID : 0x21
11:41:26 : Download in Progress:
11:41:47 : File download complete
11:41:47 : Time elapsed during download operation: 00:00:20.862
11:41:47 : RUNNING Program ...
11:41:47 : PartID: :0x21
11:41:47 : Start operation done successfully at partition 0x21
11:41:47 : Opening and parsing file: boot.img
11:41:47 : Memory Programming ...
11:41:47 : File : boot.img
11:41:47 : Size : 64.00 MB
11:41:47 : Partition ID : 0x22
11:41:47 : Download in Progress:
11:42:08 : File download complete
11:42:08 : Time elapsed during download operation: 00:00:21.023
11:42:08 : RUNNING Program ...
11:42:08 : PartID: :0x22
11:42:08 : Start operation done successfully at partition 0x22
11:42:08 : Opening and parsing file: vendor_boot.img
11:42:08 : Memory Programming ...
11:42:08 : File : vendor_boot.img
11:42:08 : Size : 16.00 MB
11:42:08 : Partition ID : 0x23
11:42:08 : Download in Progress:
11:42:14 : File download complete
11:42:14 : Time elapsed during download operation: 00:00:05.298
11:42:14 : RUNNING Program ...
11:42:14 : PartID: :0x23
11:42:14 : Start operation done successfully at partition 0x23
11:42:14 : Opening and parsing file: vendor_boot.img
11:42:14 : Memory Programming ...
11:42:14 : File : vendor_boot.img
11:42:14 : Size : 16.00 MB
11:42:14 : Partition ID : 0x24
11:42:14 : Download in Progress:
11:42:19 : File download complete
11:42:19 : Time elapsed during download operation: 00:00:05.229
11:42:19 : RUNNING Program ...
11:42:19 : PartID: :0x24
11:42:19 : Start operation done successfully at partition 0x24
11:42:19 : Opening and parsing file: dtbo.img
11:42:19 : Memory Programming ...
11:42:19 : File : dtbo.img
11:42:19 : Size : 512.00 KB
11:42:19 : Partition ID : 0x25
11:42:19 : Download in Progress:
11:42:19 : File download complete
11:42:19 : Time elapsed during download operation: 00:00:00.135
11:42:19 : RUNNING Program ...
11:42:19 : PartID: :0x25
11:42:19 : Start operation done successfully at partition 0x25
11:42:19 : Opening and parsing file: dtbo.img
11:42:19 : Memory Programming ...
11:42:19 : File : dtbo.img
11:42:19 : Size : 512.00 KB
11:42:19 : Partition ID : 0x26
11:42:19 : Download in Progress:
11:42:19 : File download complete
11:42:19 : Time elapsed during download operation: 00:00:00.134
11:42:19 : RUNNING Program ...
11:42:19 : PartID: :0x26
11:42:19 : Start operation done successfully at partition 0x26
11:42:19 : Opening and parsing file: misc.img
11:42:19 : Memory Programming ...
11:42:19 : File : misc.img
11:42:19 : Size : 2.03 KB
11:42:19 : Partition ID : 0x27
11:42:19 : Download in Progress:
11:42:19 : File download complete
11:42:19 : Time elapsed during download operation: 00:00:00.006
11:42:19 : RUNNING Program ...
11:42:19 : PartID: :0x27
11:42:19 : Start operation done successfully at partition 0x27
11:42:19 : Opening and parsing file: super.img
11:42:19 : Memory Programming ...
11:42:19 : File : super.img
11:42:19 : Size : 1.37 GB
11:42:19 : Partition ID : 0x28
11:42:19 : Download in Progress:
11:49:57 : Error: Error while reading the file
2025-05-27 1:39 AM
Check if super.img is Corrupted or Incomplete
Go to the directory:
D:\Project\STM\STM32MP257F\Android-13\en.st-android-13.0.0-2024-07-31-stm32mp257f-ev1-emmc-starter\st-android-13.0.0-2024-07-31-stm32mp257f-ev1-emmc-starter\
Try to open super.img using a hex editor or simply right-click → Properties → check the file size. Compare the size with the official one (should be several GB).
If it’s too small (e.g. a few KB), the archive may have failed to extract properly, or the download was corrupted.
2025-05-27 2:02 AM