The driver takes care of all sequencing necessary to perform writes across pages and the application need not take care of the programming intricacies.
Features Supported
- APIs to read and write to a flash offset
- Provides API to return flash attributes like block size, page size etc
- API for block erases
SysConfig Features
- Note
- It is strongly recommend to use SysConfig where it is available instead of using direct SW API calls. This will help simplify the SW application and also catch common mistakes early in the development cycle.
- Option to select flash type based on board
- Supported flash devices
Features NOT Supported
NA
Important Usage Guidelines
- Typically before writing to an offset, erase the block which corresponds to the offset
- Flash writes can only be done to a page size aligned offset, otherwise the write API returns an error
Example Usage
Include the below file to access the APIs
Flash Read API
uint32_t offset;
offset = 0;
Flash Write API
uint32_t offset;
offset = 0;
Flash Erase API
uint32_t offset, blk, page;
offset = 0;
API
APIs for FLASH