2024-08-13 11:02 AM
Hello,
I am trying to populate the EMMC on the STM32MP257F-EV1 development board using a USB connection and I am running into a strange issue. I am trying to download the file from this wiki: Populate the target and boot the image - stm32mpu and specifically trying to download "FlashLayout_emmc_stm32mp257f-ev1-ca35tdcid-ostl-m33-examples-optee.tsv". When I do this everything seems fine at first. But it looks like the download may be in an infinite loop. Here is what the Log said from when I started the download to when I stopped it:
09:58:50 : Number of partitions: 14
09:58:56 : Start Embedded Flashing service
09:58:56 : Memory Programming ...
09:58:56 : Opening and parsing file: tf-a-stm32mp257f-ev1-ca35tdcid-ostl-usb.stm32
09:58:56 : File : tf-a-stm32mp257f-ev1-ca35tdcid-ostl-usb.stm32
09:58:56 : Size : 198.86 KB
09:58:56 : Partition ID : 0x01
09:58:56 : Download in Progress:
09:59:04 : File download complete
09:59:04 : Time elapsed during download operation: 00:00:07.629
09:59:04 : RUNNING Program ...
09:59:04 : PartID: :0x01
09:59:05 : Reconnecting the device ...
09:59:05 : USB speed : High Speed (480MBit/s)
09:59:05 : Manuf. ID : STMicroelectronics
09:59:05 : Product ID : DFU @Device ID /0x505, @Revision ID /0x0000, @Name /STM32MP257FAI Rev.B,
09:59:05 : SN : 002300444136500800353653
09:59:05 : DFU protocol: 1.1
09:59:05 : Board : --
09:59:05 : Device ID : 0x0505
09:59:05 : Device name : STM32MP257FAI Rev.B
09:59:05 : Device type :
09:59:05 : Device CPU :
09:59:05 : Start operation done successfully at partition 0x01
09:59:05 : Memory Programming ...
09:59:05 : Opening and parsing file: fip-stm32mp257f-ev1-ca35tdcid-ostl-ddr-optee-emmc.bin
09:59:05 : File : fip-stm32mp257f-ev1-ca35tdcid-ostl-ddr-optee-emmc.bin
09:59:05 : Size : 29.38 KB
09:59:05 : Partition ID : 0x02
09:59:05 : Download in Progress:
09:59:06 : File download complete
09:59:06 : Time elapsed during download operation: 00:00:00.920
09:59:06 : RUNNING Program ...
09:59:06 : PartID: :0x02
09:59:06 : Reconnecting the device ...
09:59:06 : USB speed : High Speed (480MBit/s)
09:59:06 : Manuf. ID : STMicroelectronics
09:59:06 : Product ID : DFU @Device ID /0x505, @Revision ID /0x0000, @Name /STM32MP257FAI Rev.B,
09:59:06 : SN : 002300444136500800353653
09:59:06 : DFU protocol: 1.1
09:59:06 : Board : --
09:59:06 : Device ID : 0x0505
09:59:06 : Device name : STM32MP257FAI Rev.B
09:59:06 : Device type :
09:59:06 : Device CPU :
09:59:06 : Start operation done successfully at partition 0x02
09:59:06 : Memory Programming ...
09:59:06 : Opening and parsing file: fip-stm32mp257f-ev1-ca35tdcid-ostl-optee-emmc.bin
09:59:06 : File : fip-stm32mp257f-ev1-ca35tdcid-ostl-optee-emmc.bin
09:59:06 : Size : 2.65 MB
09:59:06 : Partition ID : 0x03
09:59:06 : Download in Progress:
10:00:30 : File download complete
10:00:30 : Time elapsed during download operation: 00:01:24.215
10:00:30 : RUNNING Program ...
10:00:30 : PartID: :0x03
10:00:31 : Reconnecting the device ...
10:00:33 : USB speed : High Speed (480MBit/s)
10:00:33 : Manuf. ID : STMicroelectronics
10:00:33 : Product ID : DFU in HS Mode @Device ID /0x505, @Revision ID /0x2000
10:00:33 : SN : 002300444136500800353653
10:00:33 : DFU protocol: 1.1
10:00:33 : Board : --
10:00:33 : Device ID : 0x0505
10:00:33 : Device name : STM32MP257FAI Rev.B
10:00:33 : Device type :
10:00:33 : Device CPU :
10:00:33 : Start operation done successfully at partition 0x03
10:00:33 : Memory Programming ...
10:00:33 : Opening and parsing file: tf-a-stm32mp257f-ev1-ca35tdcid-ostl-usb.stm32
10:00:33 : File : tf-a-stm32mp257f-ev1-ca35tdcid-ostl-usb.stm32
10:00:33 : Size : 198.86 KB
10:00:33 : Partition ID : 0x01
10:00:33 : Download in Progress:
10:00:41 : File download complete
10:00:41 : Time elapsed during download operation: 00:00:07.632
10:00:41 : RUNNING Program ...
10:00:41 : PartID: :0x01
10:00:42 : Reconnecting the device ...
10:00:42 : USB speed : High Speed (480MBit/s)
10:00:42 : Manuf. ID : STMicroelectronics
10:00:42 : Product ID : DFU @Device ID /0x505, @Revision ID /0x0000, @Name /STM32MP257FAI Rev.B,
10:00:42 : SN : 002300444136500800353653
10:00:42 : DFU protocol: 1.1
10:00:42 : Board : --
10:00:42 : Device ID : 0x0505
10:00:42 : Device name : STM32MP257FAI Rev.B
10:00:42 : Device type :
10:00:42 : Device CPU :
10:00:42 : Start operation done successfully at partition 0x01
10:00:42 : Memory Programming ...
10:00:42 : Opening and parsing file: fip-stm32mp257f-ev1-ca35tdcid-ostl-ddr-optee-emmc.bin
10:00:42 : File : fip-stm32mp257f-ev1-ca35tdcid-ostl-ddr-optee-emmc.bin
10:00:42 : Size : 29.38 KB
10:00:42 : Partition ID : 0x02
10:00:42 : Download in Progress:
10:00:43 : File download complete
10:00:43 : Time elapsed during download operation: 00:00:00.920
10:00:43 : RUNNING Program ...
10:00:43 : PartID: :0x02
10:00:43 : Reconnecting the device ...
10:00:43 : USB speed : High Speed (480MBit/s)
10:00:43 : Manuf. ID : STMicroelectronics
10:00:43 : Product ID : DFU @Device ID /0x505, @Revision ID /0x0000, @Name /STM32MP257FAI Rev.B,
10:00:43 : SN : 002300444136500800353653
10:00:43 : DFU protocol: 1.1
10:00:43 : Board : --
10:00:43 : Device ID : 0x0505
10:00:43 : Device name : STM32MP257FAI Rev.B
10:00:43 : Device type :
10:00:43 : Device CPU :
10:00:43 : Start operation done successfully at partition 0x02
10:00:43 : Memory Programming ...
10:00:43 : Opening and parsing file: fip-stm32mp257f-ev1-ca35tdcid-ostl-optee-emmc.bin
10:00:43 : File : fip-stm32mp257f-ev1-ca35tdcid-ostl-optee-emmc.bin
10:00:43 : Size : 2.65 MB
10:00:43 : Partition ID : 0x03
10:00:43 : Download in Progress:
10:00:48 : aborting on going operation...
10:00:48 : Operation canceled
10:00:48 : Error: failed to download Segment[0]
10:00:48 : Error: failed to download the File
10:00:48 : Error: Download partition 0x03 failed
10:00:48 : Error: TSV flashing service failed
10:00:48 : Disconnected from device.
I have tried running the download for significantly longer (Current attempt has been 45 minutes) and it never seems to leave this loop. Any help would be greatly appreciated.
2024-08-14 02:14 AM
Hi @Carson ,
Can you please provide information about when and from who you get the board + share the reference you can find on the board and the SoC please.
I assume you are using latest ecosystem V5.1 right ?
Getting trace from UART during flashing operation can help to progress in analysis
Thanks
OIivier