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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

579 Views
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

Tags (1)
0 Kudos
Reply
1 Reply

545 Views
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 Kudos
Reply