Flash memory operations.
Go to the source code of this file.
Functions | |
bool | Flash_ErasePage (uint32_t address) |
Erase a page of flash memory and block until the operation is complete. More... | |
bool | Flash_WriteWord (uint32_t address, uint32_t data) |
Write a word (32-bits) to flash memory and block until the operation is complete. More... | |
uint32_t | Flash_ReadWord (uint32_t address) |
Read a word (32-bits) from flash memory. More... | |
bool Flash_ErasePage | ( | uint32_t | address | ) |
Erase a page of flash memory and block until the operation is complete.
address | The virtual address of the page to erase. |
The address must be aligned correctly. On the pic32 5xx/6xx/7xx platform, the address must be aligned to a 4k address.
uint32_t Flash_ReadWord | ( | uint32_t | address | ) |
Read a word (32-bits) from flash memory.
address | The virtual address to read from, must be 4-byte aligned. |
bool Flash_WriteWord | ( | uint32_t | address, |
uint32_t | data | ||
) |
Write a word (32-bits) to flash memory and block until the operation is complete.
address | The virtual address to write to, must be 4-byte aligned. |
data | The value to write. |
This page that this word belongs to must have been erased before this function is called.