Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: Adafruit_GFX_customizedfont BLE_API USBDevice mbed
Fork of mbed-os-example-mbed5-blinky by
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:
-
address Start address that needs to be erased, must be aligned with 0x800 erase_code Flash erase code; defined as 'MXC_V_FLC_ERASE_CODE_PAGE_ERASE' for page erase unlock_key Key necessary for accessing flash; defined as 'MXC_V_FLC_FLSH_UNLOCK_KEY'
- Returns:
- 0 => Success. Non zero => error condition.
| 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:
-
address Start address that needs to be written, must be aligned with 4 bytes data Pointer to the buffer containing data to write length Size of the data to write in bytes, must be multiple of 4 bytes unlock_key Key necessary for accessing flash; defined as 'MXC_V_FLC_FLSH_UNLOCK_KEY'
- Returns:
- 0 => Success. Non zero => error condition.
Generated on Wed Jul 13 2022 02:36:20 by
1.7.2
