Flash#
Interface to internal flash.
Used for writing application images to the main flash.
Functions#
Erase a flash page.
Write buffer to internal flash.
Write buffer to internal flash.
Macros#
DMA Channel for MSC write.
Function Documentation#
flash_erasePage#
bool flash_erasePage (uint32_t address)
Erase a flash page.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | [in] | address | Start address of the flash page to erase. |
Returns
True if operation was successful
flash_writeBuffer_dma#
bool flash_writeBuffer_dma (uint32_t address, void * data, size_t length, int ch)
Write buffer to internal flash.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | address | Starting address to write data to. Must be half-word aligned. |
void * | N/A | data | Data buffer to write to internal flash |
size_t | N/A | length | Amount of bytes in the data buffer to write |
int | N/A | ch | DMA channel to use |
Returns
True if operation was successful
flash_writeBuffer#
bool flash_writeBuffer (uint32_t address, void * data, size_t length)
Write buffer to internal flash.
Type | Direction | Argument Name | Description |
---|---|---|---|
uint32_t | N/A | address | Starting address to write data to. Must be half-word aligned. |
void * | N/A | data | Data buffer to write to internal flash |
size_t | N/A | length | Amount of bytes in the data buffer to write |
Returns
True if operation was successful