Skip to main content
Associate III
January 3, 2024
Solved

EMMC boot in place of SD card in STM32mp135

  • January 3, 2024
  • 1 reply
  • 1995 views

I am using emmc in place of SD-card for custom hardware of STM32MP135FAE7. If FlashLayout_sdcard_stm32mp135f-dk-optee.tsv file will work using STM32cube programmer to upload all boot files??Whether all procedure will be same for boot sequence as we do for STM32mp135f-dk development kit, like switch positions etc.??

Please clear this doubt!!!

This topic has been closed for replies.
Best answer by PatrickF

HI @stack_shailesh 

eMMC boot and SD-Card boot are quite different, but overall concept is same.

By default, eMMC use different pins than SD-Card.

Please refer to https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_code_overview#Boot_from_e-E2-80-A2MMC-E2-84-A2

and flashlayout is slightly different, here is a typical example: https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout#e-E2-80-A2MMC

 

For HW concerns, see also AN5474 https://www.st.com/resource/en/application_note/DM00697274.pdf

Regards.

1 reply

PatrickF
PatrickFBest answer
Technical Moderator
January 3, 2024

HI @stack_shailesh 

eMMC boot and SD-Card boot are quite different, but overall concept is same.

By default, eMMC use different pins than SD-Card.

Please refer to https://wiki.st.com/stm32mpu/wiki/STM32_MPU_ROM_code_overview#Boot_from_e-E2-80-A2MMC-E2-84-A2

and flashlayout is slightly different, here is a typical example: https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout#e-E2-80-A2MMC

 

For HW concerns, see also AN5474 https://www.st.com/resource/en/application_note/DM00697274.pdf

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
Associate III
January 4, 2024

Hi Patrick,

Can I use FlashLayout_sdcard_stm32mp135f-dk-optee.tsv(which I used for sd-card) for flashing emmc of my custom board? or I have to generate another file for emmc ? If yes then how?

PatrickF
Technical Moderator
January 4, 2024

Hi @stack_shailesh 

no sdcard one will not work at all (different interface, different offsets), you should have a specific one for eMMC adapted to your HW and the SW you built for your target.

Look at wiki links I provided. It is fairly easy to understand the format and tailor it.

As example, you could also look to MP157F eMMC flashlayout file (e.g. FlashLayout_emmc_stm32mp157f-ev1-optee.tsv) provided in STM3MP1 Starter package. different processor, but same flashlayout mechanism.

File is a text file editable with any text editor (just take care to keep 'Tab' and Linux end of line as in examples).

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