cancel
Showing results for 
Search instead for 
Did you mean: 

STM32CubeProgrammer v2.8.0 detects the wrong flash size for the STM32L152VDT6X causing the programming to fail

AMT
Associate

The STM32L152VT6X has 384KBytes of flash memory, but the STM32CubeProgrammer detects the flash size as being 128KB. When I try to flash an image of ~170KB it fails with the error "Operation exceeds memory limits". When I flash the same image with the STLINK Utility it flashes successfully.

The first image is from the stlink utility and the second is from STM32CubeProgrammer

0693W00000DnnbRQAR.png0693W00000DnnbGQAR.png

14 REPLIES 14
Houda GHABRI
ST Employee

Hi @senge​ ,

Ok I will check and come back with updates soon.

Houda

EOng.2
Associate

Can I have the file and method to increase the flash memory for STM32L031K6 using the STM32cubeprogrammer.

Seems like the same issue exists for STM32F7508-DK, Is it fixed across the board for all devices or shall I need to have a file added to the DB?

Apt to be device unique. It is suppose to read the "FLASH SIZE" memory location in the OTP/SYSTEM area which burns in the size of flash tested. The die likely has the full complement, just untested, but probably fine.

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..

What's the issue with the STM32L031K6?

The die only has 32KB of FLASH, as I recall

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..