Skip to main content
ADESC.2
Associate
January 3, 2022
Solved

CubeProgrammer v2.9.0 and CubeIde 1.8 do not recognize STM32L4R9ZIT 2Mbytes flash size

  • January 3, 2022
  • 3 replies
  • 1433 views

Hello,

I made a little test project with more than 1Mbytes flash size.

No error on compile time, but faild to debug and flash programming with STM32CubeProgramming tool.

Binary file size is : 1.6MB

CubeProgramming Tool : file size is bigger than the flash memory size

CubeIde 1.8 :

STMicroelectronics ST-LINK GDB server. Version 6.0.0

Copyright (c) 2021, STMicroelectronics. All rights reserved.

Starting server with the following options:

    Persistent Mode      : Disabled

    Logging Level       : 1

    Listen Port Number     : 61234

    Status Refresh Delay    : 15s

    Verbose Mode        : Disabled

    SWD Debug         : Enabled

    InitWhile         : Enabled

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

Debugger connected

Waiting for debugger connection...

   -------------------------------------------------------------------

            STM32CubeProgrammer v2.9.0-RC01          

   -------------------------------------------------------------------

ST-LINK SN : 001B001D3156501920323443

ST-LINK FW : V3J9M3B5S1

Board    : STLINK-V3SET

Voltage   : 3,30V

SWD freq  : 24000 KHz

Connect mode: Under Reset

Reset mode : Hardware reset

Device ID  : 0x470

Revision ID : Rev W

Device name : STM32L4Rxxx/STM32L4Sxxx

Flash size : 2 MBytes

Device type : MCU

Device CPU : Cortex-M4

BL Version : --

Debug in Low Power mode enabled

Memory Programming ...

Opening and parsing file: ST-LINK_GDB_server_L9dfP9.srec

 File     : ST-LINK_GDB_server_L9dfP9.srec

 Size     : 1 MBytes

 Address    : 0x08000000 

Erasing memory corresponding to segment 0:

Erasing internal memory sectors [0 255]

Download in Progress:

File download complete

Time elapsed during download operation: 00:00:16.739

Verifying ...

Download verified successfully 

Successfully programmed but stops on HardFault_Handler

With my real project, download is not sucessfully done with error :

Error: failed to download Segment[0]

Error: failed to download the File

Regards

This topic has been closed for replies.
Best answer by ADESC.2

Problem solved with ide v1.9 and CubeProgrammer v2.10.0

Thank's

3 replies

TDK
Super User
January 3, 2022

There seem to be a number of people having issues with v1.8. Try downgrading if you can.

"If you feel a post has answered your question, please click ""Accept as Solution""."
ADESC.2
ADESC.2Author
Associate
January 3, 2022

Yes, thank you, I keep working with version 1.7. No other choice

ADESC.2
ADESC.2AuthorBest answer
Associate
March 16, 2022

Problem solved with ide v1.9 and CubeProgrammer v2.10.0

Thank's