Erase Function
函数原型 (Defined in Flash280x_API_Library.h)
Description: The Erase function will erase the specified flash
sectors. The remaining sectors will not be changed.
extern Uint16 Flash2806_Erase(
Uint16 SectorMask, // Sector mask
FLASH_ST *FEraseStat // Pointer to the status structure
};
Program Function
函数原型(Defined in Flash280x_API_Library.h)
extern Uint16 Flash2806_Program(
Uint16 *FlashAddr, // 指向写入的flash或otp地址
Uint16 *BufAddr, // 指向写入内容地址
Uint32 Length, // 写入长度()
FLASH_ST *FProgStatus // 指针表明写入状态
);
Verify Function
函数原型(Defined in Flash280x_API_Library.h)
比较RAM和FLASH或OTP中是否完全相同
TMS320F2806:
extern Uint16 Flash2806_Verify(
Uint16 *FlashAddr, // Pointer to the first flash/OTP loc
Uint16 *BufAddr, // Pointer to the buffer
Uint32 Length, // Number of 16-bit values to verify
FLASH_ST *FVerifyStat // Pointers to the status structure
);