2026-02-25 7:38 AM
I'm working on STM32MP257F-DK board. I use a device tree without SD card, only eMMC. I set BOOTDEVICE_LABELS = "emmc" in my machine.conf.
When I want to program I have the following error:
~/workspace/ninja/out/release-v0.0.0-16-gcd0ce3d-dirty/images/cg-stm32mp257f-dk-emmc (amo/work)$ STM32_Programmer_CLI -c port=usb1 -w flashlayout_cg-image-core/optee/FlashLayout_emmc_stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee.tsv
-------------------------------------------------------------------
STM32CubeProgrammer v2.21.0
-------------------------------------------------------------------
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU in HS Mode @Device ID /0x505, @Revision ID /0x2000
SN : 004500464236501300333258
DFU protocol: 1.1
Board : --
Device ID : 0x505
Device name : STM32MP23xx/25xx
Device type : MPU
Revision ID : --
Device CPU : Cortex-A35
Start Embedded Flashing service
Opening and parsing file: tf-a-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-programmer-usb.stm32
Memory Programming ...
File : tf-a-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-programmer-usb.stm32
Size : 191.98 KB
Partition ID : 0x01
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:02.187
RUNNING Program ...
PartID: :0x01
Reconnecting the device ...
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU @Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAK Rev.Y,
SN : 004500464236501300333258
DFU protocol: 1.1
Board : --
Device ID : 0x505
Device name : STM32MP257FAK Rev.Y
Device type : MPU
Device CPU : Cortex-A35
Start operation done successfully at partition 0x01
Opening and parsing file: fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-ddr-optee-programmer-usb.bin
Memory Programming ...
File : fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-ddr-optee-programmer-usb.bin
Size : 33.67 KB
Partition ID : 0x02
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:00.201
RUNNING Program ...
PartID: :0x02
Reconnecting the device ...
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : DFU @Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAK Rev.Y,
SN : 004500464236501300333258
DFU protocol: 1.1
Board : --
Device ID : 0x505
Device name : STM32MP257FAK Rev.Y
Device type : MPU
Device CPU : Cortex-A35
Start operation done successfully at partition 0x02
Opening and parsing file: fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-programmer-usb.bin
Memory Programming ...
File : fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-programmer-usb.bin
Size : 2.99 MB
Partition ID : 0x03
Download in Progress:
[==================================================] 100%
File download complete
Time elapsed during download operation: 00:00:08.648
RUNNING Program ...
PartID: :0x03
Reconnecting the device ...
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAK Rev.Y,
SN : 004500464236501300333258
DFU protocol: 1.1
Board : --
Device ID : 0x505
Device name : STM32MP257FAK Rev.Y
Device type : MPU
Device CPU : Cortex-A35
Start operation done successfully at partition 0x03
Flashlayout Programming ...
[==================================================] 100%
Running Flashlayout Partition ...
Reconnecting the device ...
USB speed : High Speed (480MBit/s)
Manuf. ID : STMicroelectronics
Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, @Name /STM32MP257FAK Rev.Y,
SN : 004500464236501300333258
DFU protocol: 1.1
Board : --
Device ID : 0x505
Device name : STM32MP257FAK Rev.Y
Device type : MPU
Device CPU : Cortex-A35
Flashlayout partition started successfully
Error: Message from Embedded Flash Loader : mmc device 1 not found
Received PhaseID == 0xFF, system is going to rebootMy .tsv file is:
#Opt Id Name Type IP Offset Binary
- 0x01 fsbl-boot Binary none 0x0 arm-trusted-firmware/tf-a-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-programmer-usb.stm32
- 0x02 fip-ddr FIP none 0x0 fip/fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-ddr-optee-programmer-usb.bin
- 0x03 fip-boot FIP none 0x0 fip/fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-programmer-usb.bin
P 0x04 fsbla1 Binary mmc1 boot1 arm-trusted-firmware/tf-a-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-emmc.stm32
P 0x05 fsbla2 Binary mmc1 boot2 arm-trusted-firmware/tf-a-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-emmc.stm32
PD 0x06 metadata1 FWU_MDATA mmc1 0x00080000 arm-trusted-firmware/metadata.bin
PD 0x07 metadata2 FWU_MDATA mmc1 0x00100000 arm-trusted-firmware/metadata.bin
P 0x08 fip-a FIP mmc1 0x00180000 fip/fip-stm32mp257f-cg-stm32mp257f-dk-emmc-mx-optee-emmc.bin
PED 0x09 fip-b FIP mmc1 0x00580000 none
PED 0x0A u-boot-env ENV mmc1 0x00980000 none
P 0x10 bootfs System mmc1 0x00A00000 cg-image-core-cg-linux-core-cg-stm32mp257f-dk-emmc.splitted-bootfs.ext4
P 0x11 vendorfs FileSystem mmc1 0x04A00000 cg-image-core-cg-linux-core-cg-stm32mp257f-dk-emmc.splitted-vendorfs.ext4
P 0x12 rootfs FileSystem mmc1 0x14400000 cg-image-core-cg-linux-core-cg-stm32mp257f-dk-emmc.splitted-rootfs.ext4
P 0x13 userfs FileSystem mmc1 0xD4400000 cg-image-core-cg-linux-core-cg-stm32mp257f-dk-emmc.splitted-userfs.ext4When I use a build with sdcard and eMMC, I can program the sdcard and I can see the eMMC. I also tried on another dk board with the same result.
I don't understand why I have this error and not found solution on the web.
Thanks