FEE: can't write data to the same block continuous

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

FEE: can't write data to the same block continuous

579 次查看
zp001
Contributor III

Hello NXP team,

I am trying write some value to the D-flash via FEE.

I found that if I wrote the different data into the same fee block continuously, and unsueccessful to read them, It's always 0.

here is my example project.

Thanks

标记 (1)
0 项奖励
回复
1 回复

545 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi @zp001 ,

As per prototype of Std_ReturnType Fee_Write(uint16 BlockNumber, const uint8 *DataBufferPtr), the buffer data needs to be constant. So please add "const" keyword before data buffer in the definition:
const uint8 DataBlock0[4] = {0x00,0x01,0x02,0x03};
const uint8 DataBlock1[4] = {0xaa,0xbb,0xcc,0xdd};

0 项奖励
回复