Sam Shi / Mbed 2 deprecated unytefont

Dependencies:   Adafruit_GFX_customizedfont BLE_API USBDevice mbed

Fork of mbed-os-example-mbed5-blinky by mbed-os-examples

Embed: (wiki syntax)

« Back to documentation index

Flash Controller

Flash Controller

This is the high level API for the internal flash controller module of the MAX32600 family of ARM Cortex based embedded microcontrollers. More...

Functions

int32_t FLC_Erase (uint32_t address, uint8_t erase_code, uint8_t unlock_key)
 This function will erase a single page of flash, 1 page is 2K bytes.
int32_t FLC_WriteBlock (uint32_t address, const void *data, uint32_t length, uint8_t unlock_key)
 This function writes data to the flash device through flash controller.

Detailed Description

This is the high level API for the internal flash controller module of the MAX32600 family of ARM Cortex based embedded microcontrollers.


Function Documentation

int32_t FLC_Erase ( uint32_t  address,
uint8_t  erase_code,
uint8_t  unlock_key 
)

This function will erase a single page of flash, 1 page is 2K bytes.

Keys needed for flash are in the hardware specific register file "flc_regs.h"

Parameters:
addressStart address that needs to be erased, must be aligned with 0x800
erase_codeFlash erase code; defined as 'MXC_V_FLC_ERASE_CODE_PAGE_ERASE' for page erase
unlock_keyKey necessary for accessing flash; defined as 'MXC_V_FLC_FLSH_UNLOCK_KEY'
Returns:
0 => Success. Non zero => error condition.

Definition at line 45 of file flc.c.

int32_t FLC_WriteBlock ( uint32_t  address,
const void *  data,
uint32_t  length,
uint8_t  unlock_key 
)

This function writes data to the flash device through flash controller.

Parameters:
addressStart address that needs to be written, must be aligned with 4 bytes
dataPointer to the buffer containing data to write
lengthSize of the data to write in bytes, must be multiple of 4 bytes
unlock_keyKey necessary for accessing flash; defined as 'MXC_V_FLC_FLSH_UNLOCK_KEY'
Returns:
0 => Success. Non zero => error condition.

Definition at line 78 of file flc.c.