cancel
Showing results for 
Search instead for 
Did you mean: 

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

ravichandra_t
Associate III

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.




6 REPLIES 6
PatrickF
ST Employee

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.

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

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.

Hi @PatrickF 

Same with CubeProgrammer(v2.16.0) also, it is detecting as 1.67GB

ravichandra_t_0-1715140542525.png

ravichandra_t_1-1715140571109.png

ravichandra_t_0-1715141415510.png

 

 

 

Hi @ravichandra_t 

does CubeProgrammer v2.16.0 flash correctly ?
I think the file size issue is only a display issue.

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.
ravichandra_t
Associate III

Hi @PatrickF,

No Luck with CubeProgrammer v2.16.0 as well

Regards,