Yes, you got the idea.
Well, you can just read the content back so if the verify failed, it was because it really failed.
I think it goes wrong with the buffer writing, the part that you commented out. I think it's easier to write the whole buffer at once into that sector so that also the inverted part of the options are set.
Do you have a small test project for me? I will try to make it working for you.
Well, you can just read the content back so if the verify failed, it was because it really failed.
I think it goes wrong with the buffer writing, the part that you commented out. I think it's easier to write the whole buffer at once into that sector so that also the inverted part of the options are set.
Do you have a small test project for me? I will try to make it working for you.