Skip to main content
DmtryVovk
Associate II
November 20, 2016
Question

Flash page size at runtime

  • November 20, 2016
  • 3 replies
  • 986 views
Posted on November 20, 2016 at 14:56

Hello , everybody have an idea how to calculate flash sector size during execution on any stm32 device?

#page-size
    This topic has been closed for replies.

    3 replies

    Tesla DeLorean
    Guru
    November 20, 2016
    Posted on November 20, 2016 at 15:22

    You could start by looking at DEVID and the Flash size encoded in the loader.

    Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
    DmtryVovk
    DmtryVovkAuthor
    Associate II
    November 20, 2016
    Posted on November 20, 2016 at 15:30

    Hello,Clive, 

    Yes, i thought about it, but found no suitable algorithm =(

    Tesla DeLorean
    Guru
    November 20, 2016
    Posted on November 20, 2016 at 16:15

    Sometimes in this line of work you have to code your own.

    The old Flash Loader Demonstrator had some tabular descriptions of parts and flash geometry. The DfuSe ROM code also provides a table, as I recall.

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