mirror of https://github.com/ARMmbed/mbed-os.git
Previously, we always set the work buffer to 64 bytes, without checking it was no less the actual program size. But we can't simply switch to use the program size for the work buffer, because if it's too small (e.g. 1 byte in some cases), we will not be able to read the status header (24 bytes), and small buffers means more underlying write operations and lower efficiency. This PR changes the work buffer size to be the program size, or 64 bytes as an absolute minimum like before. |
||
---|---|---|
.. | ||
blockdevice | ||
docs | ||
filesystem | ||
kvstore | ||
platform | ||
CMakeLists.txt |