cancel
Showing results for 
Search instead for 
Did you mean: 

Fatal Bug: STM32CubeProgrammer 2.4.0 CLI, Upload size is bigger than flash memory size

eGDY2CVw4jwV
Associate II

Hi,

when I'm trying to read the content of the internal flash memory via internal UART DFU bootloader STM32CubeProgrammer 2.4.0 CLI reports the following fatal error: 

> .\bin\STM32_Programmer_CLI.exe -c port=COM3 br=57600 P=EVEN db=8 sb=1 -u 0x8000000 0x400 test.hex
 
      -------------------------------------------------------------------
                       STM32CubeProgrammer v2.4.0                  
      -------------------------------------------------------------------
 
Serial Port COM3 is successfully opened.
Port configuration: parity = even, baudrate = 57600, data-bit = 8,
                     stop-bit = 1.0, flow-control = off
Activating device: OK
Chip ID: 0x410 
BootLoader protocol version: 2.2
Device name : STM32F101/F102/F103 Medium-density
Flash size  : 128 KBytes (default)
Device type : MCU
Device CPU  : Cortex-M3
 
 
UPLOADING ...
  File          : test.hex
  Size          : 1024 Bytes
  Address:      : 0x8000000
Read progress:
Error: Upload size is bigger than flash memory size.

This happens for all sizes, except 0 Bytes.

Using the STM32CubeProgrammer GUI works as expected.

I tried with a STM32F103C8T6 and a STM32F407VGT.

My system: 

  • Windows 10 1903 x64
  • STM32CubeProgrammer 2.4.0 CLI

Best regards!

5 REPLIES 5

Hello @eGDY2CVw4jwV​ 

Thanks for the feedback,

The reported problem will be reviewed by our STM32CubeProgrammer team, we will come back to you if there is any update.

Regards,

Nesrine

eGDY2CVw4jwV
Associate II

Hi @Nesrine.JLASSI​ ,

thank's for your reply.

If you need further information from our side don't hasitate to contact us.

Best regards

SBros.1
Associate II

Same problem with STM32L010R8 (and v2.4.0)

Hi @SBros.1​ 

Please try with the last STM32CubeProgrammer version 2.5.0, then tell me if it solve the issue or not.

Best regards,

Nesrine

SBros.1
Associate II

Hi Nesrine

Thank you for your reply! With the new version 2.5.0 is does work.

(e.g. STM32_Programmer_CLI.exe -c port=COM5 -r 0x8000000 4096 read.hex)

:grinning_face:

Kind regards,

Steven