-
Notifications
You must be signed in to change notification settings - Fork 3k
Incorrect page size returned from Flash IAP #8466
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
Comments
@LaurentLouf
and your STM32 target allows to write the flash down to 4 bytes at a time (you cannot write 1, 2 or 3 bytes only, it has to be be at least 4 bytes), which corresponds to the definition of the page size in mbed. |
@LaurentLouf
You'll need to use an address because all the sectors may not have the same size. |
@LMESTM Well thanks for the quick reply ! I thought about that shortly after posting the question and I have to agree that the terminology is a bit confusing. Thanks for the information about the different sector sizes, I'll have to check that carefully. |
Description
A minimal code to reproduce the issue would be :
This issue being that I've got the following response on my target :
So the flash start and size are coherent with my target, but the page size isn't at all. According to the doc of Flash IAP (https://os.mbed.com/docs/v5.8/mbed-os-api-doxy/classmbed_1_1_flash_i_a_p.html), the value returned is expressed in byte and I highly doubt that I have page sizes of 4 bytes (should be 2kbytes if I recall correctly). I've had to adapt a few files to support my target, but it's been a while and I don't have any problems with the changes made, so I assume that they are mostly correct. So could it be an error with the API of Flash IAP ?
Issue request type
The text was updated successfully, but these errors were encountered: