Skip to main content
Explorer
April 22, 2024
Question

Unable to Flash eMMC with image size more than ~4GB

  • April 22, 2024
  • 2 replies
  • 2549 views

I am reaching out regarding an issue we've encountered while attempting to flash our Buildroot image using the STM32CubeProgrammer in DFU mode.

Despite successfully building the image with Buildroot, we are encountering difficulties when attempting to flash it. Specifically, the STM32CubeProgrammer fails to recognize the image properly, displaying incorrect file size information, and subsequently failing after some time.

We have thoroughly reviewed our build process and ensured that the image generated by Buildroot is valid. However, the problem persists when attempting to flash it via the STM32CubeProgrammer.

we would greatly appreciate any insights or suggestions you might have to help us resolve this issue.




    This topic has been closed for replies.

    2 replies

    Technical Moderator
    May 3, 2024

    HI @ravichandra_t 

    could you please precise more your environment :

    • PC Linux or Windows ? OS version ?
    • could you share your TSV file ?
    • any message on the console ?
    • CubeProgrammer version ?
    • OpenSTLinux ecosystem version ?

     

    Regards.

     

    Explorer
    May 7, 2024

    Hi @PatrickF 

    We are using Linux (Ubuntu 20.04.6 LTS) and Buildroot as our Build environment

    CubeProgrammer - STM32CubeProgrammer v2.14.0
    OpenSTLinux ecosystem - STM32MPU-ecosystem-v5.0.0(v6.1-stm32mp-r1)


    We are not seeing any errors in console, but the CubeProgrammer is not detecting the file size properly, the actual image size is around ~6GB but it will be listed as 1.67 GB. After programming if we are trying to boot the device we will end up with kernel panic.


    emmc.png

     invalid.png

    Please find the attached TSV file

    Technical Moderator
    May 7, 2024

    Hi @ravichandra_t 

    please try with latest Cubeprogrammer (v2.16.0)

    Regards.

    Explorer
    May 13, 2024

    Hi @PatrickF,

    No Luck with CubeProgrammer v2.16.0 as well

    Regards,