fpoussin / QStlink2

Cross-platform STLink v2 GUI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MCU Info::Ram size: wrong

elemhsb opened this issue · comments

Hi, the displaying of the MCU Info -> RAM size for several STM32F4 µC like 405VG is wrong.
I changes the sram_size in devices.xml, but the flashing will fail (hang on 12%) after this.

Hey,
Actually the ram size is the ram quantity used by the loader's buffer, it just needs to be smaller than the physical ram size minus the loader size (2KB)
I don't think there is a way to get the real ram size from the registers, and I don't want to create a device for each ram size.
The fact that it crashed makes sense since you are trying to use all the ram + the loader size, it will overflow.

I need to rename ram size to buffer size.

I renamed the sram size to buffer size in 1.2.0.