Skip to main content
Associate III
April 22, 2024
Question

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

  • April 22, 2024
  • 2 replies
  • 2550 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

PatrickF
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.

 

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.NEW ! Sidekick STM32 AI agent, see here
Associate III
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

PatrickF
Technical Moderator
May 7, 2024

Hi @ravichandra_t 

please try with latest Cubeprogrammer (v2.16.0)

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.NEW ! Sidekick STM32 AI agent, see here
Associate III
May 13, 2024

Hi @PatrickF,

No Luck with CubeProgrammer v2.16.0 as well

Regards,