cancel
Showing results for 
Search instead for 
Did you mean: 

EMMC boot in place of SD card in STM32mp135

stack_shailesh
Associate III

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!!!

1 ACCEPTED SOLUTION

Accepted Solutions
PatrickF
ST Employee

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.

View solution in original post

4 REPLIES 4
PatrickF
ST Employee

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.

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?

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.

My doubt is that how can I generate it(from link you provided) or simply editing .tsv files according to my HW and SW will be enough?

I think you are saying we can edit .tsv file according to our offset and interface then we can load our images?