Skip to main content
Visitor II
October 28, 2023
Solved

eMMC flashing with GPT partition table

  • October 28, 2023
  • 1 reply
  • 4465 views

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.

    This topic has been closed for replies.
    Best answer by Erwan SZYMANSKI

    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.

    1 reply

    Technical Moderator
    November 9, 2023

    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.

    FlybackAuthor
    Visitor II
    November 12, 2023

    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!