我想将一个数组写入str710内部Flash的B1F0扇区,结果老是出错,不知道哪里有问题?请各位高手帮我看看哪里有问题,一下是写Flash函数:
Write_Flash(buff,0x400C0000,10,FLASH_B1F0);
void Write_Flash(u32 *buff,u32 Addr,u16 Length,u32 Sector) { u32 Adders; Addres=(u32)((u32 *)buff); FLASH_SectorErase(Sector);
intFLASH_BlockWrite(Addres,Addr,Length); } |