|
DMCP interface 03.17_023
|
System flash read/write functions. More...
Functions | |
| void | sys_flashing_init () |
| Enable flashing. | |
| void | sys_flashing_finish () |
| Disable flashing. | |
| int | sys_flash_erase_block (void *start_addr, uint32_t size) |
| Flash block erase. | |
| int | sys_flash_write_block (void *dst_addr, uint8_t *src_buf, uint32_t size) |
| Write data to flash. | |
System flash read/write functions.
Be aware that:
| int sys_flash_erase_block | ( | void * | start_addr, |
| uint32_t | size ) |
Flash block erase.
Expects address and size aligned with flash block size
| start_addr | Starting address |
| size | Size in bytes to erase |
| int sys_flash_write_block | ( | void * | dst_addr, |
| uint8_t * | src_buf, | ||
| uint32_t | size ) |
Write data to flash.
Expects destination address and size are multiples of 8
| dst_addr | Destination address |
| src_buf | Source buffer |
| size | Size in bytes |