-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong flash size reported for various chips #1199
Comments
@10110111 Can you post output of |
The register read returns 1024. The output is below.
|
@10110111 Have you edited the configuration files? |
No, I don't even know where they are :) . I just did |
I don't know where they too... Apparently someone broke they :( |
I guess it's |
It turns out that they need to be recreated and updated in the source code. stlink/src/stlink-lib/chipid.c Line 1105 in e97f438
|
The |
As mentioned in a previous comment |
Hi, I've tried to generate the files as per @Ant-ON instructions, but it seems it doesn't solve the issue while waiting for the rework. The file
Which is pretty similar to what is in After running
As a workaround, I have removed all the chip files in |
Seems to work OK now. I get 0x40000 as the flash size of an STM32F401VCT6U from |
@antoinefaure The files should not be generated automatically for any longer. I have disabled this approach recently and manually revised all new chip files one by one to hold the correct information. Afterwards the old device database from |
I'm debugging firmware on STM32H725VGT that has some code above 0x8020000. When I try to access this memory e.g. via
disas
command in GDB, I get "Cannot access memory at address 0x802xxxx". I've tracked it down toinfo mem
reporting flash region from 0x08000000 to 0x08011c00. The 0x11c00 size is also what I get fromst-info --flash
. This size is wrong: the chip has 1MiB of flash.I've also tried this on another chip, the one on STM32F407G-DISC1, and
st-info --flash
reports flash size of 0x3fffc00, which would be almost 64MiB! The actual size is still 1MiB.I'm running stlink from
develop
branch, at e97f438. OS is Ubuntu 20.04 (Linux 5.4.0-65-generic).The text was updated successfully, but these errors were encountered: