2025-12-09 2:14 AM - edited 2025-12-09 2:40 AM
I'm currently trying to boot STM32MP257 DK board.
I managed to do it in the past with starter and developer package. I recently got back to it and tried to boot it again but without success.
I tried to upload starter package to SD card and EMMC, both ways are not working.
I followed guide on https://wiki.st.com/stm32mpu/wiki/STM32MP25_Discovery_kits_-_Starter_Package
STM32 programmer is able to see the device:
❯ STM32_Programmer_CLI -l usb
-------------------------------------------------------------------
STM32CubeProgrammer v2.20.0
-------------------------------------------------------------------
===== DFU Interface =====
Total number of available STM32 device in DFU mode: 1
Device Index : USB1
USB Bus Number : 001
USB Address Number : 006
Product ID : USB download gadget@Device ID /0x505, @Revision ID /0x0011, /STM32MP257FAK Rev.Y,
Serial number : 003B002E4136500C00373653
Firmware version : 0x0110
Device ID : 0x0505However, each time I try to upload image to the SD card I get following error:
$> STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_sdcard_stm32mp257f-dk-optee.tsv
Message from Embedded Flash Loader : mmc device 0 not found
Received PhaseID == 0xFF, system is going to rebootI tried already 4 different SD cards and none of them work
I tried uploading image to EMMC and it works (flashing is complete):
STM32_Programmer_CLI -c port=usb1 -w flashlayout_st-image-weston/optee/FlashLayout_emmc_stm32mp257f-dk-optee.tsvbut then after I change boot pins to boot from EMMC (0100) there is absolutely no sign of life from the board - nothing on HDMI, nothing on serial console though ttyACMx devices are detected.
When not connected to PC, I'm using PSU for Raspberry Pi: 5.1 V, 3.1 A, 15.3W
Have I missed something? How can I make my board work or run more diagnostics?
Solved! Go to Solution.
2025-12-09 6:21 AM
Something very strange happened - all the time I had CSI camera module connected to the board. When I unplugged it, the flashing of starter package finished with success.
Could anybody tell me what happened and why does it work that way?
2025-12-09 6:21 AM
Something very strange happened - all the time I had CSI camera module connected to the board. When I unplugged it, the flashing of starter package finished with success.
Could anybody tell me what happened and why does it work that way?
2025-12-09 10:45 AM
It looks like the board is not detecting the SD card at all, which causes the “mmc device 0 not found” error. Since different SD cards give the same result and eMMC boot also shows no output, it may be a boot pin, power, or bootloader issue. Double-check the boot switch settings, try flashing a clean starter package, use a stable USB-C power source, and check the UART output from the moment you power on. If the SD interface still does not appear, there may be a hardware problem on the board.
2025-12-10 6:04 AM
Hi @Surcouf7
please double check for potential supply issue.
PWR led (LD6) must be light green. Orange mean it is limited and could not be enough when activity increase (or adding external boards like CSI). Additionally LD11 is showing the supply is going to STPMIC25
USB must be Type-C 5V 3A capable with correct Power Delivery signalling (not always true on supply we could found).
For Sd-Card, maybe an issue with the SD-Card holder (is it clicking well ?)
Regards.