DMCP interface  03.15_020
System flash

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. More...
 
int sys_flash_write_block (void *dst_addr, uint8_t *src_buf, uint32_t size)
 Write data to flash. More...
 

Detailed Description

System flash read/write functions.

Be aware that:

Function Documentation

◆ sys_flash_erase_block()

int sys_flash_erase_block ( void *  start_addr,
uint32_t  size 
)

Flash block erase.

Expects address and size aligned with flash block size

Parameters
start_addrStarting address
sizeSize in bytes to erase
Returns
0 on success

◆ sys_flash_write_block()

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

Parameters
dst_addrDestination address
src_bufSource buffer
sizeSize in bytes
Returns
0 on success