Hello, first, thanks for ask me.
My code, do following:
- Write a byte value (0xAA)
- Read position where value has been saved,
- Compare read value to verify it's correct
- Save 0xAA complement 1 (it is 0x55), so the value change from 0xAA to 0x55 and inverse again...
so value to store is always either 0xAA or 0x55
the code repeat agains forever...
But, in the flash component, there's an option called "Write Method" it's work as Destructive write method right now, so,
when i gonna to save value in to flash, the current sector is erased automatically, isn't?
Should i change this option so that make test flash correctly?
Thanks