#include <nitro/card.h>
SDK_INLINE BOOL CARD_EraseFlashSector(u32 dst, u32 len);
dst | The flash memory address to erase. This must be an integer multiple of the value obtained by the CARD_GetBackupSectorSize function.For more about the sector size for each device, see Overview. |
len | Number of bytes to erase. This must be an integer multiple of the value obtained by the CARD_GetBackupSectorSize function.For more about the sector size for each device, see Overview. |
TRUE if the process succeeds. FALSE otherwise.
Deletes data on a FLASH device in sector units and initializes all data in the sector with 0xFF. The function does not return control until it has finished processing. It returns TRUE if the process was successful or FALSE if it failed. To get the detailed result value when processing fails, call the CARD_GetResultCode
function.
You must use this function in advance to erase the contents of the region specified as the destination for writing with the CARD_ProgramFlashAsync
function. We cannot guarantee integrity of the data written to a region that has not been erased.For certain kinds of flash devices you can use the CARD_WriteFlash
function, which has fewer restrictions than these functions.
To use this function, you must first lock the access bus with the CARD_LockBackup
function.
This function communicates with the ARM7 processor internally via PXI.
The process will not end if PXI interrupts are not enabled.
CARD_WaitBackupAsync, CARD_GetResultCode, CARD_IsBackupFlash, CARD_ProgramFlash, CARD_ProgramFlashAsync, CARD_ProgramAndVerifyFlash, CARD_ProgramAndVerifyFlashAsync, CARD_EraseFlashSector, CARD_EraseFlashSectorAsync, CARD_WriteFlashSector, CARD_WriteFlashSectorAsync, CARD_WriteAndVerifyFlashSector, CARD_WriteAndVerifyFlashSectorAsync, CARD_ReadFlash, CARD_WriteFlash, CARD_WriteAndVerifyFlash, CARD_VerifyFlash, CARD_GetThreadPriority
2007/08/22 Initial version.
CONFIDENTIAL