cancel
Showing results for 
Search instead for 
Did you mean: 

eMMC flashing with GPT partition table

Flyback
Associate II

Hi ST Community,

I am trying to flash a eMMC with STM32CubeProgrammer, in a STM32MP157F custom board. I am using a GPT partition file and a img.

I can see the system is creating partitions and flashing, but the structure is wrong for eMMC, so it does not boot-up. Sometimes, trying different structures, I get an error "wrong memory layout" in the console when I am trying to flash.

The tsv file I am using at the moment is:

Flyback_0-1698484449426.png

And the gpt table is as follows:

Flyback_1-1698484522541.png

I believe the solution is in the right configuration of the table, can somebody detail on how to do it?

Thanks.

1 ACCEPTED SOLUTION

Accepted Solutions
Erwan SZYMANSKI
ST Employee

Hello @Flyback,
Did you manage to catch your issue ?
I advice you to take a look at this article that explain the different flashlayout depending on the boot memory used : https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout

Kind regards,
Erwan.

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

2 REPLIES 2
Erwan SZYMANSKI
ST Employee

Hello @Flyback,
Did you manage to catch your issue ?
I advice you to take a look at this article that explain the different flashlayout depending on the boot memory used : https://wiki.st.com/stm32mpu/wiki/STM32CubeProgrammer_flashlayout

Kind regards,
Erwan.

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 @Erwan SZYMANSKI 

Thanks for your suggestion, solution was actually there. I took out the first 2 partitions out of the GPT and program them individually in the CubeProgrammer (partitions 4 and 5). Thank you!