API库函数文件(Flash2803X_API_LIBRARY_H)没有读取Flash函数。
那怎么读取呢?
#if FLASH_F2803x
#define Flash_Erase(a,b) Flash2803x_Erase(a,b)
#define Flash_Program(a,b,c,d) Flash2803x_Program(a,b,c,d)
#define Flash_Verify(a,b,c,d) Flash2803x_Verify(a,b,c,d)
#define Flash_ToggleTest(a,b) Flash2803x_ToggleTest(a,b)
#define Flash_DepRecover() Flash2803x_DepRecover()
#define Flash_APIVersionHex() Flash2803x_APIVersionHex()
#define Flash_APIVersion() Flash2803x_APIVersion()
#endif
extern Uint16 Flash_Erase(Uint16 SectorMask, FLASH_ST *FEraseStat);
extern Uint16 Flash_Program(Uint16 *FlashAddr, Uint16 *BufAddr, Uint32 Length, FLASH_ST *FProgStatus);
extern Uint16 Flash_Verify(Uint16 *StartAddr, Uint16 *BufAddr, Uint32 Length, FLASH_ST *FVerifyStat);
extern void Flash_ToggleTest(volatile Uint32 *ToggleReg, Uint32 Mask);
extern Uint16 Flash_DepRecover();
extern float32 Flash_APIVersion();
extern Uint16 Flash_APIVersionHex();
这么多函数就是没有读取Flash的函数
Shine:
C2000系列片上带flash的,请到C2000论坛提问。
C2000™ 32位实时 MCU