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.

CC2530写flash数据不对

我先擦除一页page123,然后使用HalUARTWrite(F600,data,4);函数写入11223344四个字节,然后使用HalFlashRead(123,0, Data, 16);函数读取出来的不是11223344FFFFFFFFFFFFFFFFFFFFFFFF,而是112233443F51058092A70385160E3F 是怎么回事啊?我写入的只是第0个地址的4个字节,为什么后面的3个地址的数据都变了呢?

  • Page123是被用成NV功能,你是在使用协议栈,还是自己的程序??另外Flash的写的函数的长是按照 cnt - Number of 4-byte blocks to write.

    参数4相当都4*4=16字节