Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Align MBRBlockDevice writes to underlying BlockDevice write size #8262
When writing MBR the write buffer was allocated such that it would not align with BlockDevice write size resulting in failure of the write operation.
It would happen here:
Now the buffer_size is calculated so that the writes will be properly aligned.
Tested with STM32L486 using internal flash as storage. Without fix it is not possible to initialise partition in the internal flash.
Pull request type
Build number : 3184
Build number : 2779