Hello,
I'm trying to modify Operation Config A value in order to perform an EOS operation.
I successfully access the DataFlash in Unsealed and then FullAccess mode, reading in Control Status the value 0x2080. After that I successfully read the current value of Operation Config A register at 0x41b1 (default 0x80).
Now, I want to change it into 0x82 acting as follow:
- write(0x3e,0xb10x41)
- wait 1 second
- write(0x40,0x0082)
- wait 1 second
- write(0x60,0x008b)
- wait 1 second
- write(0x61,0x005)
At this point I have in return the following data:
My checksum and length are calculated as shown below:
uint8_t calChecksum(dfAddress address,rxBuffer dataIn,uint8_t length){ uint8_t hNibble, lNibble; uint8_t checksum; hNibble = HI_NIBBLE(address); lNibble = LO_NIBBLE(address); checksum = hNibble + lNibble; checksum += dataIn[0]; checksum += dataIn[1]; return ~checksum; }
dataLength = 4 + length;
Are checksum and length rigth? Can anyone explain why I get these value back? I suspect a timing issue but I'm not sure.