2024-01-03 03:02 AM - last edited on 2024-01-03 03:52 AM by Peter BENSCH
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!!!
Solved! Go to Solution.
2024-01-03 05:05 AM
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.
2024-01-03 05:05 AM
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.
2024-01-04 04:35 AM
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?
2024-01-04 05:22 AM
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.
2024-01-04 05:32 AM - edited 2024-01-04 05:37 AM
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?