Skip to main content
asadullah4571
Associate III
September 10, 2024
Solved

how to boot from emmc on stm32mp157

  • September 10, 2024
  • 1 reply
  • 2481 views

Hi 
i am struggling in how to boot from the EMMC not from the SD card , i used the custom board where my emmc is connected to SDMMC2 port , i did changes into the device tree i enable the sdmmc2, but i do not know how to boot from the emmc ?,
actually my custom board based on the (STM32MP157D -Dk1), there is no EMMC but in custom board i added the emmc with SDMMC2 channel, so please help me out this situation how to boot ,

please Ignor my basic question i am the frasher and doing own self, i need your support for learn.

Best answer by PatrickF

Hi @asadullah4571 

did you set the BOOT pins to eMMC (b010)? Boot_device_selection_on_STM32MP1_series

see also Boot_from_e-MMC

Regards.

 

1 reply

PatrickF
PatrickFBest answer
Technical Moderator
September 11, 2024

Hi @asadullah4571 

did you set the BOOT pins to eMMC (b010)? Boot_device_selection_on_STM32MP1_series

see also Boot_from_e-MMC

Regards.

 

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here
asadullah4571
Associate III
September 13, 2024

hi @PatrickF ,

Actually, my boot1 pin is connected to the ground, it is always present as 0 as like (stm32mp157f-dk2),
i am attaching the custom board of bootpin, connection

 

 

asadullah4571_0-1726224183515.png

 

PatrickF
Technical Moderator
September 13, 2024

Hi,

until you fix your PCB to have correct BOOT pins allowing to select the memory you implemented (there is no eMMC on STM32MP157x-DK board), you might have a solution using OTP3 primary_boot_source field to the value 3.

PatrickF_0-1726230148547.png

 

Regards,

In order to give better visibility on the answered topics, please click on 'Accept as Solution' on the reply which solved your issue or answered your question.NEW ! Sidekick STM32 AI agent, see here