我写入8个数据后,再读出来,发现读出来的数据存在错误。
程序:
void Internal_FLASH_read(uint32 addr, uint8* buff, uint8 len)
{
memcpy(buff, addr, len);
}
write_buff[16]={0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35,0x35};
uint8 read_buff[16]={0};
Internal_FLASH_read(0xF0200000,read_buff, 8);
结果:
1、没有写入时读出的结果:
2、写入后读出的结果: