Driverlib FLASHCTL API
Module: Driverlib (AM13E232X) APIs
Types
Name |
|
|---|---|
enum |
DL_FLASHCTL_COMMAND_SIZE { DL_FLASHCTL_COMMAND_SIZE_ONE_WORD = NVMNW_CMDTYPE_SIZE_ONEWORD, DL_FLASHCTL_COMMAND_SIZE_TWO_WORDS = NVMNW_CMDTYPE_SIZE_TWOWORD, DL_FLASHCTL_COMMAND_SIZE_FOUR_WORDS = NVMNW_CMDTYPE_SIZE_FOURWORD, DL_FLASHCTL_COMMAND_SIZE_EIGHT_WORDS = NVMNW_CMDTYPE_SIZE_EIGHTWORD, DL_FLASHCTL_COMMAND_SIZE_SECTOR = NVMNW_CMDTYPE_SIZE_SECTOR, DL_FLASHCTL_COMMAND_SIZE_BANK = NVMNW_CMDTYPE_SIZE_BANK} |
enum |
DL_FLASHCTL_REGION_SELECT { DL_FLASHCTL_REGION_SELECT_MAIN = NVMNW_CMDCTL_REGIONSEL_MAIN, DL_FLASHCTL_REGION_SELECT_NONMAIN = NVMNW_CMDCTL_REGIONSEL_NONMAIN} |
enum |
DL_FLASHCTL_BANK_SELECT { DL_FLASHCTL_BANK_SELECT_0 = NVMNW_CMDCTL_BANKSEL_BANK0, DL_FLASHCTL_BANK_SELECT_1 = NVMNW_CMDCTL_BANKSEL_BANK1} |
enum |
DL_FLASHCTL_FAIL_TYPE { DL_FLASHCTL_FAIL_TYPE_NO_FAILURE = 0x0, DL_FLASHCTL_FAIL_TYPE_WRITE_ERASE_PROTECT = (NVMNW_STATCMD_FAILWEPROT_STATFAIL), DL_FLASHCTL_FAIL_TYPE_VERIFY_ERROR = NVMNW_STATCMD_FAILVERIFY_STATFAIL, DL_FLASHCTL_FAIL_TYPE_ILLEGAL_ADDRESS = NVMNW_STATCMD_FAILILLADDR_STATFAIL, DL_FLASHCTL_FAIL_TYPE_WRONG_BANK_MODE = NVMNW_STATCMD_FAILMODE_STATFAIL, DL_FLASHCTL_FAIL_TYPE_MISCELLANEOUS = NVMNW_STATCMD_FAILMISC_STATFAIL} |
enum |
DL_FLASHCTL_COMMAND_STATUS { DL_FLASHCTL_COMMAND_STATUS_PASSED = (NVMNW_STATCMD_CMDDONE_STATDONE |
enum |
DL_FLASHCTL_IIDX { DL_FLASHCTL_IIDX_DONE = NVMNW_IIDX_STAT_DONE} |
Functions
Name |
|
|---|---|
__STATIC_INLINE void |
DL_FlashCTL_enableInterrupt(NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_disableInterrupt(NVMNW_Regs * flashctl) |
__STATIC_INLINE bool |
DL_FlashCTL_isInterruptEnabled(const NVMNW_Regs * flashctl) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getEnabledInterruptStatus(const NVMNW_Regs * flashctl) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getRawInterruptStatus(const NVMNW_Regs * flashctl) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getPendingInterrupt(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_clearInterruptStatus(NVMNW_Regs * flashctl) |
__STATIC_INLINE bool |
DL_FlashCTL_isCommandExecuted(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_setCommandExecute(NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_disbleStairStepErase(NVMNW_Regs * flashctl) |
__STATIC_INLINE bool |
DL_FlashCTL_isStairStepEraseDisabled(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_enableStairStepErase(NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_enableAddressOverrideMode(NVMNW_Regs * flashctl) |
__STATIC_INLINE bool |
DL_FlashCTL_isAddressOverrideModeEnabled(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_disableAddressOverrideMode(NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_enableOverrideHardwareGeneratedECC(NVMNW_Regs * flashctl) |
__STATIC_INLINE bool |
DL_FlashCTL_isOverrideHardwareGeneratedECCEnabled(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_disableOverrideHardwareGeneratedECC(NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_setRegionSelect(NVMNW_Regs * flashctl, DL_FLASHCTL_REGION_SELECT region) |
__STATIC_INLINE DL_FLASHCTL_REGION_SELECT |
DL_FlashCTL_getRegionSelect(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_setBankSelect(NVMNW_Regs * flashctl, DL_FLASHCTL_BANK_SELECT bank) |
__STATIC_INLINE DL_FLASHCTL_BANK_SELECT |
DL_FlashCTL_getBankSelect(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_setCommandByteEnable(NVMNW_Regs * flashctl, uint32_t byteMask) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getCommandByteEnable(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_setCommandData(NVMNW_Regs * flashctl, uint8_t index, const uint32_t * data) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getCommandData(NVMNW_Regs * flashctl, uint8_t index) |
__STATIC_INLINE void |
DL_FlashCTL_setCommandDataECC(NVMNW_Regs * flashctl, uint8_t index, const uint8_t * data) |
__STATIC_INLINE uint8_t |
DL_FlashCTL_getCommandDataECC(NVMNW_Regs * flashctl, uint8_t index) |
__STATIC_INLINE void |
DL_FlashCTL_setCommandAddress(NVMNW_Regs * flashctl, uint32_t address) |
__STATIC_INLINE DL_FLASHCTL_COMMAND_STATUS |
DL_FlashCTL_getCommandStatus(const NVMNW_Regs * flashctl) |
__STATIC_INLINE DL_FLASHCTL_FAIL_TYPE |
DL_FlashCTL_getFailureStatus(const NVMNW_Regs * flashctl) |
__STATIC_INLINE bool |
DL_FlashCTL_waitForCmdDone(const NVMNW_Regs * flashctl) |
__STATIC_INLINE void |
DL_FlashCTL_executeClearStatus(NVMNW_Regs * flashctl) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getFlashSectorNumber(NVMNW_Regs * flashctl, uint32_t addr) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_getFlashSectorNumberInBank(NVMNW_Regs * flashctl, uint32_t addr) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_acquireFlashSemaphore(void ) |
__STATIC_INLINE uint32_t |
DL_FlashCTL_releaseFlashSemaphore(void ) |
DL_FlashCTL_eraseMemory(NVMNW_Regs * flashctl, uint32_t address, DL_FLASHCTL_COMMAND_SIZE memorySize) |
|
DL_FlashCTL_massErase(NVMNW_Regs * flashctl) |
|
DL_FlashCTL_massEraseMultiBank(NVMNW_Regs * flashctl) |
|
DL_FlashCTL_factoryReset(NVMNW_Regs * flashctl) |
|
DL_FlashCTL_factoryResetMultiBank(NVMNW_Regs * flashctl) |
|
DL_FlashCTL_programMemory8(NVMNW_Regs * flashctl, uint32_t address, const uint8_t * data) |
|
DL_FlashCTL_programMemory16(NVMNW_Regs * flashctl, uint32_t address, const uint16_t * data) |
|
DL_FlashCTL_programMemory32(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory64(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory96(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory128(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory8WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint8_t * data) |
|
DL_FlashCTL_programMemory16WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint16_t * data) |
|
DL_FlashCTL_programMemory32WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory64WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory96WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory128WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_programMemory8WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint8_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_programMemory16WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint16_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_programMemory32WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_programMemory64WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_programMemory96WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_programMemory128WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_programMemoryBlocking64WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, uint32_t * data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect) |
|
DL_FlashCTL_programMemoryBlocking128WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, uint32_t * data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect) |
|
DL_FlashCTL_programMemoryBlocking64WithECCManual(NVMNW_Regs * flashctl, uint32_t address, uint32_t * data, uint8_t * eccCode, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect) |
|
DL_FlashCTL_programMemoryBlocking128WithECCManual(NVMNW_Regs * flashctl, uint32_t address, uint32_t * data, uint8_t * eccCode, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect) |
|
DL_FlashCTL_programMemoryBlocking(NVMNW_Regs * flashctl, uint32_t address, uint32_t * data, uint32_t dataSize, DL_FLASHCTL_REGION_SELECT regionSelect) |
|
void |
DL_FlashCTL_unprotectMainMemory(NVMNW_Regs * flashctl) |
void |
DL_FlashCTL_protectMainMemory(NVMNW_Regs * flashctl) |
void |
DL_FlashCTL_unprotectNonMainMemory(NVMNW_Regs * flashctl) |
void |
DL_FlashCTL_protectNonMainMemory(NVMNW_Regs * flashctl) |
void |
DL_FlashCTL_unprotectAllMemory(NVMNW_Regs * flashctl) |
void |
DL_FlashCTL_protectAllMemory(NVMNW_Regs * flashctl) |
void |
DL_FlashCTL_unprotectSector(NVMNW_Regs * flashctl, uint32_t addr, DL_FLASHCTL_REGION_SELECT regionSelect) |
void |
DL_FlashCTL_protectSector(NVMNW_Regs * flashctl, uint32_t addr, DL_FLASHCTL_REGION_SELECT regionSelect) |
DL_FlashCTL_readVerify8(NVMNW_Regs * flashctl, uint32_t address, const uint8_t * data) |
|
DL_FlashCTL_readVerify16(NVMNW_Regs * flashctl, uint32_t address, const uint16_t * data) |
|
DL_FlashCTL_readVerify32(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify64(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify96(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify128(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify8WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint8_t * data) |
|
DL_FlashCTL_readVerify16WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint16_t * data) |
|
DL_FlashCTL_readVerify32WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify64WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify96WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify128WithECCGenerated(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data) |
|
DL_FlashCTL_readVerify8WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint8_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_readVerify16WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint16_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_readVerify32WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_readVerify64WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_readVerify96WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_readVerify128WithECCManual(NVMNW_Regs * flashctl, uint32_t address, const uint32_t * data, const uint8_t * eccCode) |
|
DL_FlashCTL_blankVerify(NVMNW_Regs * flashctl, uint32_t address, DL_FLASHCTL_REGION_SELECT region) |
|
uint8_t |
DL_FlashCTL_calculateECC(uint32_t u32Address, uint64_t u64Data) |
Defines
Name |
|
|---|---|
DL_FLASHCTL_INTERRUPT_DONE |
|
DL_FLASHCTL_COMMAND_TYPE_NO_OPERATION |
|
DL_FLASHCTL_COMMAND_TYPE_PROGRAM |
|
DL_FLASHCTL_COMMAND_TYPE_ERASE |
|
DL_FLASHCTL_COMMAND_TYPE_READ_VERIFY |
|
DL_FLASHCTL_COMMAND_TYPE_BLANK_VERIFY |
|
DL_FLASHCTL_COMMAND_TYPE_MODE_CHANGE |
|
DL_FLASHCTL_COMMAND_TYPE_CLEAR_STATUS |
|
NVMNW_BANK0_MAIN_ADDRESS |
|
NVMNW_BANK1_MAIN_ADDRESS |
|
NVMNW_BANK0_NONMAIN_ADDRESS |
|
NVMNW_BANK1_NONMAIN_ADDRESS |
|
NVMNW_MAIN_ECC_ADDRESS |
|
NVMNW_NONMAIN_ECC_ADDRESS |
|
DL_FLASHCTL_PROGRAM_8_WITHOUT_ECC |
|
DL_FLASHCTL_PROGRAM_16_WITHOUT_ECC |
|
DL_FLASHCTL_PROGRAM_32_WITHOUT_ECC |
|
DL_FLASHCTL_PROGRAM_64_WITHOUT_ECC |
|
DL_FLASHCTL_PROGRAM_96_WITHOUT_ECC |
|
DL_FLASHCTL_PROGRAM_128_WITHOUT_ECC |
|
DL_FLASHCTL_PROGRAM_8_WITH_ECC |
|
DL_FLASHCTL_PROGRAM_16_WITH_ECC |
|
DL_FLASHCTL_PROGRAM_32_WITH_ECC |
|
DL_FLASHCTL_PROGRAM_64_WITH_ECC |
|
DL_FLASHCTL_PROGRAM_96_WITH_ECC |
|
DL_FLASHCTL_PROGRAM_128_WITH_ECC |
|
DL_FLASHCTL_READ_VERIFY_8_WITHOUT_ECC |
|
DL_FLASHCTL_READ_VERIFY_16_WITHOUT_ECC |
|
DL_FLASHCTL_READ_VERIFY_32_WITHOUT_ECC |
|
DL_FLASHCTL_READ_VERIFY_64_WITHOUT_ECC |
|
DL_FLASHCTL_READ_VERIFY_96_WITHOUT_ECC |
|
DL_FLASHCTL_READ_VERIFY_128_WITHOUT_ECC |
|
DL_FLASHCTL_READ_VERIFY_8_WITH_ECC |
|
DL_FLASHCTL_READ_VERIFY_16_WITH_ECC |
|
DL_FLASHCTL_READ_VERIFY_32_WITH_ECC |
|
DL_FLASHCTL_READ_VERIFY_64_WITH_ECC |
|
DL_FLASHCTL_READ_VERIFY_96_WITH_ECC |
|
DL_FLASHCTL_READ_VERIFY_128_WITH_ECC |
|
DL_FLASHCTL_SECTOR_SIZE |
Detailed Description
Note: Recommend users to use the FLASHAPI library instead of this API
The Flash Controller Driver Library allows full configuration of the AM13E232X Non-Volatile memory system. The non-volatile memory (NVM) system provides nonvolatile flash memory for storing executable code and data.
Types Documentation
enum DL_FLASHCTL_COMMAND_SIZE
Enumerator |
Value |
Description |
|---|---|---|
DL_FLASHCTL_COMMAND_SIZE_ONE_WORD |
NVMNW_CMDTYPE_SIZE_ONEWORD |
Flash Command size is one word |
DL_FLASHCTL_COMMAND_SIZE_TWO_WORDS |
NVMNW_CMDTYPE_SIZE_TWOWORD |
Flash Command size is two words |
DL_FLASHCTL_COMMAND_SIZE_FOUR_WORDS |
NVMNW_CMDTYPE_SIZE_FOURWORD |
Flash Command size is four words |
DL_FLASHCTL_COMMAND_SIZE_EIGHT_WORDS |
NVMNW_CMDTYPE_SIZE_EIGHTWORD |
Flash Command size is eight words |
DL_FLASHCTL_COMMAND_SIZE_SECTOR |
NVMNW_CMDTYPE_SIZE_SECTOR |
Flash Command size is a sector |
DL_FLASHCTL_COMMAND_SIZE_BANK |
NVMNW_CMDTYPE_SIZE_BANK |
Flash Command size is a bank |
Size of command in flash words.
enum DL_FLASHCTL_REGION_SELECT
Enumerator |
Value |
Description |
|---|---|---|
DL_FLASHCTL_REGION_SELECT_MAIN |
NVMNW_CMDCTL_REGIONSEL_MAIN |
Flash Region Select Main |
DL_FLASHCTL_REGION_SELECT_NONMAIN |
NVMNW_CMDCTL_REGIONSEL_NONMAIN |
Flash Region Select Non-Main |
Available flash regions for programming.
enum DL_FLASHCTL_BANK_SELECT
Enumerator |
Value |
Description |
|---|---|---|
DL_FLASHCTL_BANK_SELECT_0 |
NVMNW_CMDCTL_BANKSEL_BANK0 |
Bank 0 |
DL_FLASHCTL_BANK_SELECT_1 |
NVMNW_CMDCTL_BANKSEL_BANK1 |
Bank 1 |
Enumeration for flash bank selection.
enum DL_FLASHCTL_FAIL_TYPE
Enumerator |
Value |
Description |
|---|---|---|
DL_FLASHCTL_FAIL_TYPE_NO_FAILURE |
0x0 |
Flash Command did not fail during execution |
DL_FLASHCTL_FAIL_TYPE_WRITE_ERASE_PROTECT |
(NVMNW_STATCMD_FAILWEPROT_STATFAIL) |
Flash Command failed due to write/erase protect sector violation |
DL_FLASHCTL_FAIL_TYPE_VERIFY_ERROR |
NVMNW_STATCMD_FAILVERIFY_STATFAIL |
Flash Command failed due to verify error |
DL_FLASHCTL_FAIL_TYPE_ILLEGAL_ADDRESS |
NVMNW_STATCMD_FAILILLADDR_STATFAIL |
Flash Command failed due to the use of an illegal address |
DL_FLASHCTL_FAIL_TYPE_WRONG_BANK_MODE |
NVMNW_STATCMD_FAILMODE_STATFAIL |
Flash Command failed because a bank has been set to a mode other than READ |
DL_FLASHCTL_FAIL_TYPE_MISCELLANEOUS |
NVMNW_STATCMD_FAILMISC_STATFAIL |
Flash Command failed due to an undefined error |
Enumeration of flash failure operation types.
enum DL_FLASHCTL_COMMAND_STATUS
Enumerator |
Value |
Description |
|---|---|---|
DL_FLASHCTL_COMMAND_STATUS_PASSED |
(NVMNW_STATCMD_CMDDONE_STATDONE | NVMNW_STATCMD_CMDPASS_STATPASS) |
Flash Command passed |
DL_FLASHCTL_COMMAND_STATUS_FAILED |
(NVMNW_STATCMD_CMDDONE_STATDONE | NVMNW_STATCMD_CMDPASS_STATFAIL) |
Flash Command failed |
DL_FLASHCTL_COMMAND_STATUS_IN_PROGRESS |
(NVMNW_STATCMD_CMDINPROGRESS_STATINPROGRESS) |
Flash Command is still in progress |
Enumeration of flash command statuses.
enum DL_FLASHCTL_IIDX
Enumerator |
Value |
Description |
|---|---|---|
DL_FLASHCTL_IIDX_DONE |
NVMNW_IIDX_STAT_DONE |
DONE Interrupt Pending |
Enumeration of flash interrupt statuses.
Functions Documentation
function DL_FlashCTL_enableInterrupt
__STATIC_INLINE void DL_FlashCTL_enableInterrupt(
NVMNW_Regs * flashctl
)
Enable flash interrupt.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_disableInterrupt
__STATIC_INLINE void DL_FlashCTL_disableInterrupt(
NVMNW_Regs * flashctl
)
Disable flash interrupt.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_isInterruptEnabled
__STATIC_INLINE bool DL_FlashCTL_isInterruptEnabled(
const NVMNW_Regs * flashctl
)
Check if the flash interrupt is enabled.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
false if interrupt is disabled
true if interrupt is enabled
Return: If the flash interrupt is enabled
function DL_FlashCTL_getEnabledInterruptStatus
__STATIC_INLINE uint32_t DL_FlashCTL_getEnabledInterruptStatus(
const NVMNW_Regs * flashctl
)
Check interrupt flag of enabled flash interrupt.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
0 if no interrupt is enabled
The value of [DL_FLASHCTL_INTERRUPT]
Return: If the flash interrupt is pending
Checks if the flash interrupt that was previously enabled is pending.
function DL_FlashCTL_getRawInterruptStatus
__STATIC_INLINE uint32_t DL_FlashCTL_getRawInterruptStatus(
const NVMNW_Regs * flashctl
)
Check interrupt flag of the flash interrupt.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
0 if no interrupt is enabled
The value of [DL_FLASHCTL_INTERRUPT]
Return: If the flash interrupt is pending
Checks if the flash interrupt is pending. Interrupts do not have to be previously enabled.
function DL_FlashCTL_getPendingInterrupt
__STATIC_INLINE uint32_t DL_FlashCTL_getPendingInterrupt(
const NVMNW_Regs * flashctl
)
Get highest priority pending flash interrupt.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Return: The highest priority pending FLASH interrupt
Checks if the flash interrupt is pending. Interrupts do not have to be previously enabled.
function DL_FlashCTL_clearInterruptStatus
__STATIC_INLINE void DL_FlashCTL_clearInterruptStatus(
NVMNW_Regs * flashctl
)
Clear pending flash interrupt.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_isCommandExecuted
__STATIC_INLINE bool DL_FlashCTL_isCommandExecuted(
const NVMNW_Regs * flashctl
)
Checks if a command execution has been initiated.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Return: If a command has been set to execute
function DL_FlashCTL_setCommandExecute
__STATIC_INLINE void DL_FlashCTL_setCommandExecute(
NVMNW_Regs * flashctl
)
Initiates a command execution.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_disbleStairStepErase
__STATIC_INLINE void DL_FlashCTL_disbleStairStepErase(
NVMNW_Regs * flashctl
)
Disable Stair-Step Erase.
Parameters:
flashctl Pointer to the register overlay for the peripheral
The default VHV trim voltage setting will be used for all erase pulses.
function DL_FlashCTL_isStairStepEraseDisabled
__STATIC_INLINE bool DL_FlashCTL_isStairStepEraseDisabled(
const NVMNW_Regs * flashctl
)
Checks if stair-step erase is disabled.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Return: If stair-step erase is disabled
function DL_FlashCTL_enableStairStepErase
__STATIC_INLINE void DL_FlashCTL_enableStairStepErase(
NVMNW_Regs * flashctl
)
Enable Stair-Step Erase.
Parameters:
flashctl Pointer to the register overlay for the peripheral
The VHV voltage will be stepped during successive erase pulses. The step count, step voltage, begin and end voltages are all hard-wired. This is enabled by default.
function DL_FlashCTL_enableAddressOverrideMode
__STATIC_INLINE void DL_FlashCTL_enableAddressOverrideMode(
NVMNW_Regs * flashctl
)
Enable address override mode.
Parameters:
flashctl Pointer to the register overlay for the peripheral
See:
This overrides hardware address translation in CMDADDR from a system address to a bank address and bank ID. Use data written to CMDADDR directly as the bank address. Use the value written to CMDCTL.BANKSEL directly as the bank ID. Use the value written to CMDCTL.REGIONSEL directly as the region ID.
function DL_FlashCTL_isAddressOverrideModeEnabled
__STATIC_INLINE bool DL_FlashCTL_isAddressOverrideModeEnabled(
const NVMNW_Regs * flashctl
)
Checks if address override mode is enabled.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Return: If address override mode is enabled
function DL_FlashCTL_disableAddressOverrideMode
__STATIC_INLINE void DL_FlashCTL_disableAddressOverrideMode(
NVMNW_Regs * flashctl
)
Disable address override mode.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Disable address override mode and return to system addressed mode.
function DL_FlashCTL_enableOverrideHardwareGeneratedECC
__STATIC_INLINE void DL_FlashCTL_enableOverrideHardwareGeneratedECC(
NVMNW_Regs * flashctl
)
Enable overriding hardware generation of ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
See: DL_FlashCTL_setCommandDataECC
Override hardware ECC code generation by the flash controller. When enabled, the user can then manually set the ECC code to be programmed by calling DL_FlashCTL_setCommandDataECC.
function DL_FlashCTL_isOverrideHardwareGeneratedECCEnabled
__STATIC_INLINE bool DL_FlashCTL_isOverrideHardwareGeneratedECCEnabled(
const NVMNW_Regs * flashctl
)
Checks if overriding hardware generation of ECC code is enabled.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Return: If overriding hardware generation of ECC code is enabled
function DL_FlashCTL_disableOverrideHardwareGeneratedECC
__STATIC_INLINE void DL_FlashCTL_disableOverrideHardwareGeneratedECC(
NVMNW_Regs * flashctl
)
Disable overriding hardware generation of ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Disable overriding hardware generation of ECC code, so the flash controller will handle generating the needed ECC bits from the data
function DL_FlashCTL_setRegionSelect
__STATIC_INLINE void DL_FlashCTL_setRegionSelect(
NVMNW_Regs * flashctl,
DL_FLASHCTL_REGION_SELECT region
)
Set the region select.
Parameters:
flashctl Pointer to the register overlay for the peripheral
region Region to select. One of DL_FLASHCTL_REGION_SELECT
See: DL_FlashCTL_enableAddressOverrideMode
A specific region ID can be written to this field to indicate to which region an operation should be applied if CMDCTL.ADDRXLATEOVR is set.
function DL_FlashCTL_getRegionSelect
__STATIC_INLINE DL_FLASHCTL_REGION_SELECT DL_FlashCTL_getRegionSelect(
const NVMNW_Regs * flashctl
)
Get the region select.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
One of DL_FLASHCTL_REGION_SELECT
Return: The region selected
function DL_FlashCTL_setBankSelect
__STATIC_INLINE void DL_FlashCTL_setBankSelect(
NVMNW_Regs * flashctl,
DL_FLASHCTL_BANK_SELECT bank
)
Set the bank select.
Parameters:
flashctl Pointer to the register overlay for the peripheral
bank Bank to select. One of DL_FLASHCTL_BANK_SELECT
See: DL_FlashCTL_enableAddressOverrideMode
Note: Refer to the device datasheet for the number of banks that are available on your device.
A specific bank ID can be written to this field to indicate which bank an operation should be applied if CMDCTL.ADDRXLATEOVR is set.
function DL_FlashCTL_getBankSelect
__STATIC_INLINE DL_FLASHCTL_BANK_SELECT DL_FlashCTL_getBankSelect(
const NVMNW_Regs * flashctl
)
Get the bank select.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
One of DL_FLASHCTL_BANK_SELECT
Return: The bank selected
Note: Refer to the device datasheet for the number of banks that are available on your device.
function DL_FlashCTL_setCommandByteEnable
__STATIC_INLINE void DL_FlashCTL_setCommandByteEnable(
NVMNW_Regs * flashctl,
uint32_t byteMask
)
Set the bytes to enable for programming data.
Parameters:
flashctl Pointer to the register overlay for the peripheral
byteMask Mask of bytes to enable. Between [0,0x3FFFF]. For example:
byteMask = 0x0, Disable all bytes for programming
byteMask = 0x1, Enable 8-bit programming
byteMask = 0x3, Enable 16-bit programming
byteMask = 0xF, Enable 32-bit programming
byteMask = 0xFF, Enable 64-bit programming
byteMask = 0xFFFF, Enable 128-bit programming
byteMask = 0x3FFFF, Enable 128-bit programming with ECC enabled
This register forms a per-byte enable for programming data. Each bit in CMDBYTEN corresponds to a byte in the addressed flash word to be programmed, including the ECC byte. This allows sub-word programming (programming of less than the full 128 or 144 bit flash word) if desired.
ECC data bytes are protected by the MSB bits in this register, depending on the presence of ECC and the flash word data width. Note: Refer to the TRM on how to correctly handle ECC for sub-word programs. You cannot correctly program the ECC bits if the whole 128 bits of the data word is not programmed, so the ECC byte should not be enabled until all 128 bits of the flash word are programmed.
This register is written to all 0 after the completion of all FLASHCTL commands.
function DL_FlashCTL_getCommandByteEnable
__STATIC_INLINE uint32_t DL_FlashCTL_getCommandByteEnable(
const NVMNW_Regs * flashctl
)
Get the bytes that are enabled for programming data.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
Value between [0,0x3FFFF].
Return: The enabled bytes
This register forms a per-byte enable for programming data. Each bit in CMDBYTEN corresponds to a byte in the addressed flash word to be programmed, including the ECC byte. This allows sub-word programming (programming of less than the full 128 or 144 bit flash word) if desired.
function DL_FlashCTL_setCommandData
__STATIC_INLINE void DL_FlashCTL_setCommandData(
NVMNW_Regs * flashctl,
uint8_t index,
const uint32_t * data
)
Set the data for a command data register.
Parameters:
flashctl Pointer to the register overlay for the peripheral
index Select the command data register to write to. Please see the device TRM for the number of CMDDATA registers. For example:
index = 0, Select CMDDATA0
index = 1, Select CMDDATA1
index = 2, Select CMDDATA2
index = 3, Select CMDDATA3
data Data to write to the command data register. Value between [0,0xFFFFFFFF]
Note: Ensure that you have enabled the correct bytes for programming enabled with DL_FlashCTL_setCommandByteEnable.
The command data registers, CMDDATAx, are used to form the data for a command. For devices which only support single word programming, only the CMDDATA0 and CMDDATA1 registers are used to load data to be programmed to the flash memory. CMDDATA0 is always loaded with BIT31-BIT0 of the target data, CMDDATA1 is always loaded with BIT63-BIT32 of the target data, CMDDATA2 is always loaded with BIT95-BIT64 of the target data and CMDDATA3 is always loaded with BIT127-BIT96 of the target data. If fewer than 128 data bits are being programmed, see the special handling requirements section in the device TRM for programming less than one flash word.
function DL_FlashCTL_getCommandData
__STATIC_INLINE uint32_t DL_FlashCTL_getCommandData(
NVMNW_Regs * flashctl,
uint8_t index
)
Get the data from a command data register.
Parameters:
flashctl Pointer to the register overlay for the peripheral
index Select the command data register to write to. Please see the device TRM for the number of CMDDATA registers. For example:
index = 0, Select CMDDATA0
index = 1, Select CMDDATA1
index = 2, Select CMDDATA2
index = 3, Select CMDDATA3
Returns:
Value between [0,0xFFFFFFFF].
Return: The data in the command data register
For devices which only support single word programming, only the CMDDATA0, CMDDATA1, CMDDATA2 and CMDDATA3 registers are used to load data to be programmed to the flash memory. CMDDATA0 is always loaded with BIT31-BIT0 of the target data, CMDDATA1 is always loaded with BIT63-BIT32 of the target data, CMDDATA2 is always loaded with BIT95-BIT64 of the target data and CMDDATA3 is always loaded with BIT127-BIT96 of the target data.
function DL_FlashCTL_setCommandDataECC
__STATIC_INLINE void DL_FlashCTL_setCommandDataECC(
NVMNW_Regs * flashctl,
uint8_t index,
const uint8_t * data
)
Set the ECC code in the command data ECC register.
Parameters:
flashctl Pointer to the register overlay for the peripheral
index Select the command data ECC register to write to. Please see the device TRM for the number of CMDDATAECC registers. For example:
index = 0, Select CMDDATAECC0
index = 1, Select CMDDATAECC1
index = 2, Select CMDDATAECC2
index = 3, Select CMDDATAECC3
data Data to write to the command data ECC register. Value between [0, 0xFF]
Note:
The ECC data can be manually set only when hardware ECC code generation is disabled with DL_FlashCTL_enableOverrideHardwareGeneratedECC
Ensure that you have enabled the correct bytes for programming ECC enabled with DL_FlashCTL_setCommandByteEnable
This register forms the ECC portion of the data for a command.
function DL_FlashCTL_getCommandDataECC
__STATIC_INLINE uint8_t DL_FlashCTL_getCommandDataECC(
NVMNW_Regs * flashctl,
uint8_t index
)
Get the ECC code in the command data ECC register.
Parameters:
flashctl Pointer to the register overlay for the peripheral
index Select the command data register ECC to write to. Please see the device TRM for the number of CMDDATAECC registers. For example:
index = 0, Select CMDDATAECC0
index = 1, Select CMDDATAECC1
index = 2, Select CMDDATAECC2
index = 3, Select CMDDATAECC3
Returns:
Value between [0,0xFF].
Return: The data in the command data ECC register
This register forms the ECC portion of the data for a command.
function DL_FlashCTL_setCommandAddress
__STATIC_INLINE void DL_FlashCTL_setCommandAddress(
NVMNW_Regs * flashctl,
uint32_t address
)
Sets the target address for a command.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination address to program/erase/read
The target address for a command must be flash word (128-bit) aligned. This means that the target address must be aligned to a b0000 boundary (for example, the 4 LSBs in the address must be zero).
For single-word program, this address indicates the flash bank word to be programmed. 2) For multi-word program, this address indicates the first flash bank address for the program. The address will be incremented 3) For sector and bank erase, this address indicates the sector or bank to be erased. 4) For read verify, this address forms the start address for the verify operation.
function DL_FlashCTL_getCommandStatus
__STATIC_INLINE DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_getCommandStatus(
const NVMNW_Regs * flashctl
)
Returns the status of the current command.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
One of DL_FLASHCTL_COMMAND_STATUS values
Return: The status of the current command
Checks if the command is still in progress or finished and if it passed or failed
function DL_FlashCTL_getFailureStatus
__STATIC_INLINE DL_FLASHCTL_FAIL_TYPE DL_FlashCTL_getFailureStatus(
const NVMNW_Regs * flashctl
)
Returns the reason a command failed.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
One of DL_FLASHCTL_FAIL_TYPE values
Return: The type of command failure
function DL_FlashCTL_waitForCmdDone
__STATIC_INLINE bool DL_FlashCTL_waitForCmdDone(
const NVMNW_Regs * flashctl
)
Blocking function that waits for a command execution to finish.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
false if command didn’t succeed
true if command was successful
Return: Whether or not the command was successful
function DL_FlashCTL_executeClearStatus
__STATIC_INLINE void DL_FlashCTL_executeClearStatus(
NVMNW_Regs * flashctl
)
Sets clear status bit and executes command.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Precondition: This command should be called before DL_FlashCTL_unprotectSector to ensure that memory is not re-protected after unprotecting it.
This will clear the STATCMD register and re-apply max protection to the CMDWEPROTx registers
function DL_FlashCTL_getFlashSectorNumber
__STATIC_INLINE uint32_t DL_FlashCTL_getFlashSectorNumber(
NVMNW_Regs * flashctl,
uint32_t addr
)
Gets the sector number of the input address over the whole memory map.
Parameters:
flashctl Pointer to the register overlay for the peripheral
addr Memory address within the desired sector
Return: The sector number that contains the input address
If the device has two 512KB banks, and the input address is 0x00080000, then this API will return the sector number as 256. To get the sector number over the whole memory map of the device, refer to DL_FlashCTL_getFlashSectorNumberInBank.
function DL_FlashCTL_getFlashSectorNumberInBank
__STATIC_INLINE uint32_t DL_FlashCTL_getFlashSectorNumberInBank(
NVMNW_Regs * flashctl,
uint32_t addr
)
Gets the sector number of the input address relative to the bank of the address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
addr Memory address within the desired sector
Return: The sector number in the current bank that contains the address
If the device has two 512KB banks, and the input address is 0x00080000, then this API will return the sector number as 0. This is because 0x00080000 is in Sector 0 of Bank 1. To get the sector number over the whole memory map of the device, refer to DL_FlashCTL_getFlashSectorNumber.
function DL_FlashCTL_acquireFlashSemaphore
__STATIC_INLINE uint32_t DL_FlashCTL_acquireFlashSemaphore(
void
)
Acquire the flash semaphore.
Returns:
0x0U Semaphore acquired successfully (FLASHAPI_SUCCESS)
0xCU Semaphore acquisition failed (FLASHAPI_SEM_ACQ_FAIL)
Return: Status of the semaphore acquisition
Requests the flash semaphore to ensure exclusive access to flash operations. This function performs a single non-blocking attempt to acquire the semaphore.
function DL_FlashCTL_releaseFlashSemaphore
__STATIC_INLINE uint32_t DL_FlashCTL_releaseFlashSemaphore(
void
)
Release the flash semaphore.
Returns:
0x0U Semaphore released successfully (FLASHAPI_SUCCESS)
0xDU Semaphore release failed (FLASHAPI_SEM_REL_FAIL)
Return: Status of the semaphore release
Releases the flash semaphore after flash operations are complete and verifies that the semaphore was successfully released.
function DL_FlashCTL_eraseMemory
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_eraseMemory(
NVMNW_Regs * flashctl,
uint32_t address,
DL_FLASHCTL_COMMAND_SIZE memorySize
)
Performs an erase on unprotected memory.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address within desired sector or bank to erase
memorySize The size of the memory block to erase. One of:
DL_FLASHCTL_COMMAND_SIZE_BANK
DL_FLASHCTL_COMMAND_SIZE_SECTOR
Postcondition: This API just starts the erase process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Performs an erase on unprotected memory within a sector or bank of memory containing the input memory address.
NOTE: The user is responsible for unprotecting the regions of memory prior to calling this API. Memory will be automatically protected following the command execution.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state.
function DL_FlashCTL_massErase
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_massErase(
NVMNW_Regs * flashctl
)
Performs a mass erase on main memory on one bank.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
false if erase didn’t succeed
true if erase was successful
Return: Whether or not the erase succeeded
Performs a mass erase on main memory on Bank 0 only. This API should be used on single bank devices.
NOTE: This API sets all main memory to unprotected from erase/program
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state.
function DL_FlashCTL_massEraseMultiBank
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_massEraseMultiBank(
NVMNW_Regs * flashctl
)
Performs a mass erase on main memory, and erases all flash banks.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
false if erase didn’t succeed
true if erase was successful
Return: Whether or not the erase succeeded
Performs a mass erase on main memory within each flash bank.
NOTE: This API sets all main memory to unprotected from erase/program
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state.
function DL_FlashCTL_factoryReset
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_factoryReset(
NVMNW_Regs * flashctl
)
Performs a factory reset erase on main and non-main memory.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
false if erase didn’t succeed
true if erase was successful
Return: Whether or not the erase succeeded
Performs an erase on Bank 0 of main memory and non-main memory on the device. This API should be used on single bank devices.
NOTE: This API sets all main memory to protected from erase/program if successful. If unsuccessful, all memory will be unprotected
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state.
function DL_FlashCTL_factoryResetMultiBank
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_factoryResetMultiBank(
NVMNW_Regs * flashctl
)
Performs a factory reset erase on main and non-main memory.
Parameters:
flashctl Pointer to the register overlay for the peripheral
Returns:
false if erase didn’t succeed
true if erase was successful
Return: Whether or not the erase succeeded
Performs an erase on all flash banks of main memory and non-main memory on the device.
NOTE: This API sets all main memory to protected from erase/program if successful. If unsuccessful, all memory will be unprotected
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state.
function DL_FlashCTL_programMemory8
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory8(
NVMNW_Regs * flashctl,
uint32_t address,
const uint8_t * data
)
Programs 8 bit data to unprotected memory at the given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 8-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
The device datasheet specifies a maximum limit on program operations per word line before erasure of the sector containing the word line is required. Exceeding this maximum may result in data corruption within the word line. If 8-bit (byte) program operations are performed, or the same memory locations are programmed more than once, the max program limit per word line must be considered and not exceeded. Because of that, it is better to buffer data and use the DL_FlashCTL_programMemory16, DL_FlashCTL_programMemory32 or DL_FlashCTL_programMemory64 or DL_FlashCTL_programMemory96 or DL_FlashCTL_programMemory128 APIs to program memory to reduce in the number of program operations in a wordline.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_programMemory16
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory16(
NVMNW_Regs * flashctl,
uint32_t address,
const uint16_t * data
)
Programs 16 bit data to unprotected memory at the given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 16-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_programMemory32
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory32(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 32 bit data to unprotected memory at the given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_programMemory64
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory64(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 64 bit data to unprotected memory at the given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_programMemory96
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory96(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 96 bit data to unprotected memory at the given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_programMemory128
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory128(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 128 bit data to unprotected memory at the given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_programMemory8WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory8WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint8_t * data
)
Programs 8 bit data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 8-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 8 bit data, along with the 8 ECC bits which correspond to the 8-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory16WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory16WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint16_t * data
)
Programs 16 bit data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 16-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 16 bit data, along with the 8 ECC bits which correspond to the 16-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory32WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory32WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 32 bit data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 32 bit data, along with the 8 ECC bits which correspond to the 32-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory64WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory64WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 64 bit data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 64 bit data, along with the 8 ECC bits which correspond to the 64-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory96WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory96WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 96 bit data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 96 bit data, along with the 16 ECC bits which correspond to the 96-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory128WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory128WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Programs 128 bit data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 128 bit data, along with the 16 ECC bits which correspond to the 128-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory8WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory8WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint8_t * data,
const uint8_t * eccCode
)
Programs 8 bit data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 8-bit source data
eccCode Pointer to the ECC code to program
Precondition:
User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 8 bit data, along with the 8 ECC bits which correspond to the 8-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory16WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory16WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint16_t * data,
const uint8_t * eccCode
)
Programs 16 bit data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 16-bit source data
eccCode Pointer to the ECC code to program
Precondition:
User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 16 bit data, along with the 8 ECC bits which correspond to the 16-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory32WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory32WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Programs 32 bit data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
eccCode Pointer to the ECC code to program
Precondition:
User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 32 bit data, along with the 8 ECC bits which correspond to the 32-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory64WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory64WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Programs 64 bit data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
eccCode Pointer to the ECC code to program
Precondition:
User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 64 bit data, along with the 8 ECC bits which correspond to the 64-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory96WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory96WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Programs 96 bit data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
eccCode Pointer to the ECC code to program
Precondition:
User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 96 bit data, along with the 16 ECC bits which correspond to the 96-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemory128WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemory128WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Programs 128 bit data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
data Pointer to the 32-bit source data
eccCode Pointer to the ECC code to program
Precondition:
User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Programs 128 bit data, along with the 16 ECC bits which correspond to the 128-bit data word, to unprotected memory at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemoryBlocking64WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlocking64WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
uint32_t * data,
uint32_t dataSize,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Programs provided data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
dataSize The number of 32-bit words to program. Value should be an even number, to ensure data is programmed 64-bits at a time.
data Pointer to the data source to program into flash
regionSelect The region of memory to erase. One of DL_FLASHCTL_REGION_SELECT
Returns:
false Program didn’t succeed, or invalid dataSize
true Program was successful
Return: Whether or not the program succeeded
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Blocking function that programs a set of data, along with the 8 ECC bits which correspond to the data at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemoryBlocking128WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlocking128WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
uint32_t * data,
uint32_t dataSize,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Programs provided data with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
dataSize The number of 32-bit words to program. Value should be divisible by 4, to ensure data is programmed 128-bits at a time.
data Pointer to the data source to program into flash
regionSelect The region of memory to erase. One of DL_FLASHCTL_REGION_SELECT
Returns:
false Program didn’t succeed, or invalid dataSize
true Program was successful
Return: Whether or not the program succeeded
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Blocking function that programs a set of data, along with the 16 ECC bits which correspond to the data at the given address. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemoryBlocking64WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlocking64WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
uint32_t * data,
uint8_t * eccCode,
uint32_t dataSize,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Programs provided data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
dataSize The number of 32-bit words to program. Value should be an even number, to ensure data is programmed 128-bits at a time.
data Pointer to the data source to program into flash
eccCode Pointer to ECC code to program corresponding to data
regionSelect The region of memory to erase. One of DL_FLASHCTL_REGION_SELECT
Returns:
false Program didn’t succeed, or invalid dataSize
true Program was successful
Return: Whether or not the program succeeded
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Blocking function that programs a set of data, along with the 8 ECC bits which correspond to the data at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemoryBlocking128WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlocking128WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
uint32_t * data,
uint8_t * eccCode,
uint32_t dataSize,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Programs provided data with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
dataSize The number of 32-bit words to program. Value should be divisible by 4, to ensure data is programmed 128-bits at a time.
data Pointer to the data source to program into flash
eccCode Pointer to ECC code to program corresponding to data
regionSelect The region of memory to erase. One of DL_FLASHCTL_REGION_SELECT
Returns:
false Program didn’t succeed, or invalid dataSize
true Program was successful
Return: Whether or not the program succeeded
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Blocking function that programs a set of data, along with the 16 ECC bits which correspond to the data at the given address. This API assumes that hardware generation of the ECC code HAS been disabled, and so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_programMemoryBlocking
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_programMemoryBlocking(
NVMNW_Regs * flashctl,
uint32_t address,
uint32_t * data,
uint32_t dataSize,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Programs provided data to unprotected memory at a given address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Destination memory address to program data. The address must be flash word (128-bit) aligned i.e. aligned to a b0000 boundary.
dataSize The number of 32-bit words to program
data Pointer to the data source to program into flash
regionSelect The region of memory to erase. One of DL_FLASHCTL_REGION_SELECT
Returns:
false Program didn’t succeed
true Program was successful
Return: Whether or not the program succeeded
Precondition: Before programming memory, the user must unprotect the region of memory to program. Refer to DL_FlashCTL_unprotectSector
Postcondition: This API just starts the program process. Check the result of it using an interrupt or the DL_FlashCTL_waitForCmdDone API
Blocking function that programs a set of data. Data will be programmed as flash words (128-bits), 96-bits, 64-bits. If dataSize is an odd number, then the last word will be programmed as 32-bit data.
NOTE: After completion of a program operation, the flash controller will configure all memory to a protected state. NOTE: This API does not enable programming the ECC code.
function DL_FlashCTL_unprotectMainMemory
void DL_FlashCTL_unprotectMainMemory(
NVMNW_Regs * flashctl
)
Unprotects all main memory from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_protectMainMemory
void DL_FlashCTL_protectMainMemory(
NVMNW_Regs * flashctl
)
Protects all main memory from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_unprotectNonMainMemory
void DL_FlashCTL_unprotectNonMainMemory(
NVMNW_Regs * flashctl
)
Unprotects all non-main memory from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_protectNonMainMemory
void DL_FlashCTL_protectNonMainMemory(
NVMNW_Regs * flashctl
)
Protects all non-main memory from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_unprotectAllMemory
void DL_FlashCTL_unprotectAllMemory(
NVMNW_Regs * flashctl
)
Unprotects all user memory from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_protectAllMemory
void DL_FlashCTL_protectAllMemory(
NVMNW_Regs * flashctl
)
Protects all user memory from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
function DL_FlashCTL_unprotectSector
void DL_FlashCTL_unprotectSector(
NVMNW_Regs * flashctl,
uint32_t addr,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Sets a given sector to unprotected from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
addr Address of sector to unprotect
regionSelect The region of memory to unprotect. One of DL_FLASHCTL_REGION_SELECT
function DL_FlashCTL_protectSector
void DL_FlashCTL_protectSector(
NVMNW_Regs * flashctl,
uint32_t addr,
DL_FLASHCTL_REGION_SELECT regionSelect
)
Sets a given sector to protected from erase/program.
Parameters:
flashctl Pointer to the register overlay for the peripheral
addr Address of sector to protect
regionSelect The region of memory to protect. One of DL_FLASHCTL_REGION_SELECT
function DL_FlashCTL_readVerify8
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify8(
NVMNW_Regs * flashctl,
uint32_t address,
const uint8_t * data
)
Verifies 8-bit data in specified address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified.
function DL_FlashCTL_readVerify16
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify16(
NVMNW_Regs * flashctl,
uint32_t address,
const uint16_t * data
)
Verifies 16-bit data in specified address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified.
function DL_FlashCTL_readVerify32
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify32(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 32-bit data in specified address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified.
function DL_FlashCTL_readVerify64
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify64(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 64-bit data in specified address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify.
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified.
function DL_FlashCTL_readVerify96
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify96(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 96-bit data in specified address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify.
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified.
function DL_FlashCTL_readVerify128
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify128(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 128-bit data in specified address.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify.
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified.
function DL_FlashCTL_readVerify8WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify8WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint8_t * data
)
Verifies 8-bit data in specified address with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify16WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify16WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint16_t * data
)
Verifies 16-bit data in specified address with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify32WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify32WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 32-bit data in specified address with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify64WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify64WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 64-bit data in specified address with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify96WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify96WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 96-bit data in specified address with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 16 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify128WithECCGenerated
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify128WithECCGenerated(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data
)
Verifies 128-bit data in specified address with hardware generated ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 16 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code has NOT been disabled, and so the flash controller will generate the ECC bits.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify8WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify8WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint8_t * data,
const uint8_t * eccCode
)
Verifies 8-bit data in specified address with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
eccCode Pointer to ECC code to program corresponding to data
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code HAS been disabled, so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify16WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify16WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint16_t * data,
const uint8_t * eccCode
)
Verifies 16-bit data in specified address with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
eccCode Pointer to ECC code to program corresponding to data
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code HAS been disabled, so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify32WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify32WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Verifies 32-bit data in specified address with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
eccCode Pointer to ECC code to program corresponding to data
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code HAS been disabled, so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify64WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify64WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Verifies 64-bit data in specified address with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
eccCode Pointer to ECC code to program corresponding to data
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 8 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code HAS been disabled, so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify96WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify96WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Verifies 96-bit data in specified address with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
eccCode Pointer to ECC code to program corresponding to data
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 16 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code HAS been disabled, so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_readVerify128WithECCManual
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_readVerify128WithECCManual(
NVMNW_Regs * flashctl,
uint32_t address,
const uint32_t * data,
const uint8_t * eccCode
)
Verifies 128-bit data in specified address with user provided ECC code.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
data Pointer to the data source to verify
eccCode Pointer to ECC code to program corresponding to data
Precondition: User must call DL_FlashCTL_enableOverrideHardwareGeneratedECC to disable hardware generation of the ECC code, so the ECC code can be manually provided for programming. This override setting will persist through multiple programs, until DL_FlashCTL_disableOverrideHardwareGeneratedECC is called
The READVERIFY command may be used to read a flash location and compare it to data to be verified along with the 16 ECC bits which correspond to the data. This API assumes that hardware generation of the ECC code HAS been disabled, so the user must provide the ECC code to program.
NOTE: After completion of a program operation, the flash controller will disable programming of the ECC code (regardless of whether ECC code is hardware generated or manually provided).
function DL_FlashCTL_blankVerify
DL_FLASHCTL_COMMAND_STATUS DL_FlashCTL_blankVerify(
NVMNW_Regs * flashctl,
uint32_t address,
DL_FLASHCTL_REGION_SELECT region
)
Verifies that a flash word is blank.
Parameters:
flashctl Pointer to the register overlay for the peripheral
address Memory address of flash to verify
region Region of flash in which the address lies
Postcondition: This API performs a blank check through a CPU read and does not use the FSM.
A blank flash word is defined as a flash word which has been successfully erased with the ERASE command and not yet programmed away from that non-erased state with the PROGRAM command. The BLANKVERIFY command may be used to test if a flash word is in a blank state, indicating it has not yet been programmed away from an erased state. The BLANKVERIFY command may only be applied to a single flash word at a time.
NOTE: After this command is executed, the flash controller will configure all memory to a protected state.
function DL_FlashCTL_calculateECC
uint8_t DL_FlashCTL_calculateECC(
uint32_t u32Address,
uint64_t u64Data
)
Manually calculates the ECC value of given data at an address.
Parameters:
u32Address The address to be used in the ECC calculation
u64Data The data to be used in the ECC calculation
Return: The calculated ECC value
Calculates the ECC value for a 64-bit data and an address. Most useful when manually programming or verifying ECC values.
Macros Documentation
define DL_FLASHCTL_INTERRUPT_DONE
#define DL_FLASHCTL_INTERRUPT_DONE (NVMNW_MIS_DONE_SET)
Flash Command execution has completed.
define DL_FLASHCTL_COMMAND_TYPE_NO_OPERATION
#define DL_FLASHCTL_COMMAND_TYPE_NO_OPERATION (NVMNW_CMDTYPE_COMMAND_NOOP)
No Operation Flash Command.
define DL_FLASHCTL_COMMAND_TYPE_PROGRAM
#define DL_FLASHCTL_COMMAND_TYPE_PROGRAM (NVMNW_CMDTYPE_COMMAND_PROGRAM)
Program Command Type.
define DL_FLASHCTL_COMMAND_TYPE_ERASE
#define DL_FLASHCTL_COMMAND_TYPE_ERASE (NVMNW_CMDTYPE_COMMAND_ERASE)
Erase Command Type.
define DL_FLASHCTL_COMMAND_TYPE_READ_VERIFY
#define DL_FLASHCTL_COMMAND_TYPE_READ_VERIFY (NVMNW_CMDTYPE_COMMAND_READVERIFY__SECRET_ENUM)
Read-Verify Command Type.
define DL_FLASHCTL_COMMAND_TYPE_BLANK_VERIFY
#define DL_FLASHCTL_COMMAND_TYPE_BLANK_VERIFY (NVMNW_CMDTYPE_COMMAND_BLANKVERIFY)
Blank Verify Command Type.
define DL_FLASHCTL_COMMAND_TYPE_MODE_CHANGE
#define DL_FLASHCTL_COMMAND_TYPE_MODE_CHANGE (NVMNW_CMDTYPE_COMMAND_MODECHANGE)
Mode Change Command Type.
define DL_FLASHCTL_COMMAND_TYPE_CLEAR_STATUS
#define DL_FLASHCTL_COMMAND_TYPE_CLEAR_STATUS (NVMNW_CMDTYPE_COMMAND_CLEARSTATUS)
Clear Status Command Type.
define NVMNW_BANK0_MAIN_ADDRESS
#define NVMNW_BANK0_MAIN_ADDRESS (0x00000000U)
Address for Bank 0 Main.
define NVMNW_BANK1_MAIN_ADDRESS
#define NVMNW_BANK1_MAIN_ADDRESS (0x00040000U)
Address for Bank 1 Main.
define NVMNW_BANK0_NONMAIN_ADDRESS
#define NVMNW_BANK0_NONMAIN_ADDRESS (0x60100000U)
Address for Bank 0 Nonmain.
define NVMNW_BANK1_NONMAIN_ADDRESS
#define NVMNW_BANK1_NONMAIN_ADDRESS (0x60101000U)
Address for Bank 1 Nonmain.
define NVMNW_MAIN_ECC_ADDRESS
#define NVMNW_MAIN_ECC_ADDRESS (0x60200000U)
Address for ECC Main.
define NVMNW_NONMAIN_ECC_ADDRESS
#define NVMNW_NONMAIN_ECC_ADDRESS (0x60260000U)
Address for ECC Nonmain.
define DL_FLASHCTL_PROGRAM_8_WITHOUT_ECC
#define DL_FLASHCTL_PROGRAM_8_WITHOUT_ECC (0x00000001U)
Enable programming 8 bits without ECC enabled.
define DL_FLASHCTL_PROGRAM_16_WITHOUT_ECC
#define DL_FLASHCTL_PROGRAM_16_WITHOUT_ECC (0x00000003U)
Enable programming 16 bits without ECC enabled.
define DL_FLASHCTL_PROGRAM_32_WITHOUT_ECC
#define DL_FLASHCTL_PROGRAM_32_WITHOUT_ECC (0x0000000FU)
Enable programming 32 bits without ECC enabled.
define DL_FLASHCTL_PROGRAM_64_WITHOUT_ECC
#define DL_FLASHCTL_PROGRAM_64_WITHOUT_ECC (0x000000FFU)
Enable programming 64 bits without ECC enabled.
define DL_FLASHCTL_PROGRAM_96_WITHOUT_ECC
#define DL_FLASHCTL_PROGRAM_96_WITHOUT_ECC (0x00000FFFU)
Enable programming 96 bits without ECC enabled.
define DL_FLASHCTL_PROGRAM_128_WITHOUT_ECC
#define DL_FLASHCTL_PROGRAM_128_WITHOUT_ECC (0x0000FFFFU)
Enable programming 128 bits without ECC enabled.
define DL_FLASHCTL_PROGRAM_8_WITH_ECC
#define DL_FLASHCTL_PROGRAM_8_WITH_ECC (0x00010001U)
Enable programming 8 bits with ECC enabled.
define DL_FLASHCTL_PROGRAM_16_WITH_ECC
#define DL_FLASHCTL_PROGRAM_16_WITH_ECC (0x00010003U)
Enable programming 16 bits with ECC enabled.
define DL_FLASHCTL_PROGRAM_32_WITH_ECC
#define DL_FLASHCTL_PROGRAM_32_WITH_ECC (0x0001000FU)
Enable programming 32 bits with ECC enabled.
define DL_FLASHCTL_PROGRAM_64_WITH_ECC
#define DL_FLASHCTL_PROGRAM_64_WITH_ECC (0x000100FFU)
Enable programming 64 bits with ECC enabled.
define DL_FLASHCTL_PROGRAM_96_WITH_ECC
#define DL_FLASHCTL_PROGRAM_96_WITH_ECC (0x00030FFFU)
Enable programming 96 bits with ECC enabled.
define DL_FLASHCTL_PROGRAM_128_WITH_ECC
#define DL_FLASHCTL_PROGRAM_128_WITH_ECC (0x0003FFFFU)
Enable programming 128 bits with ECC enabled.
define DL_FLASHCTL_READ_VERIFY_8_WITHOUT_ECC
#define DL_FLASHCTL_READ_VERIFY_8_WITHOUT_ECC (0x00000001U)
Enable programming 8 bits without ECC enabled.
define DL_FLASHCTL_READ_VERIFY_16_WITHOUT_ECC
#define DL_FLASHCTL_READ_VERIFY_16_WITHOUT_ECC (0x00000003U)
Enable programming 16 bits without ECC enabled.
define DL_FLASHCTL_READ_VERIFY_32_WITHOUT_ECC
#define DL_FLASHCTL_READ_VERIFY_32_WITHOUT_ECC (0x0000000FU)
Enable programming 32 bits without ECC enabled.
define DL_FLASHCTL_READ_VERIFY_64_WITHOUT_ECC
#define DL_FLASHCTL_READ_VERIFY_64_WITHOUT_ECC (0x000000FFU)
Enable programming 64 bits without ECC enabled.
define DL_FLASHCTL_READ_VERIFY_96_WITHOUT_ECC
#define DL_FLASHCTL_READ_VERIFY_96_WITHOUT_ECC (0x00000FFFU)
Enable programming 96 bits without ECC enabled.
define DL_FLASHCTL_READ_VERIFY_128_WITHOUT_ECC
#define DL_FLASHCTL_READ_VERIFY_128_WITHOUT_ECC (0x0000FFFFU)
Enable programming 128 bits without ECC enabled.
define DL_FLASHCTL_READ_VERIFY_8_WITH_ECC
#define DL_FLASHCTL_READ_VERIFY_8_WITH_ECC (0x00010001U)
Enable programming 8 bits with ECC enabled.
define DL_FLASHCTL_READ_VERIFY_16_WITH_ECC
#define DL_FLASHCTL_READ_VERIFY_16_WITH_ECC (0x00010003U)
Enable programming 16 bits with ECC enabled.
define DL_FLASHCTL_READ_VERIFY_32_WITH_ECC
#define DL_FLASHCTL_READ_VERIFY_32_WITH_ECC (0x0001000FU)
Enable programming 32 bits with ECC enabled.
define DL_FLASHCTL_READ_VERIFY_64_WITH_ECC
#define DL_FLASHCTL_READ_VERIFY_64_WITH_ECC (0x000100FFU)
Enable programming 64 bits with ECC enabled.
define DL_FLASHCTL_READ_VERIFY_96_WITH_ECC
#define DL_FLASHCTL_READ_VERIFY_96_WITH_ECC (0x00030FFFU)
Enable programming 96 bits with ECC enabled.
define DL_FLASHCTL_READ_VERIFY_128_WITH_ECC
#define DL_FLASHCTL_READ_VERIFY_128_WITH_ECC (0x0003FFFFU)
Enable programming 128 bits with ECC enabled.
define DL_FLASHCTL_SECTOR_SIZE
#define DL_FLASHCTL_SECTOR_SIZE (2048U)
Size of one flash sector.