This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TMS570LC4357: 对FLASH读写

我写入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、写入后读出的结果: