torntrousers wrote:If you read the SDK Guide about the RTC read/write functions it mentions being 4 byte blocks -
"Note: RTC memory is 4 bytes aligned for read and write operations. Parameter src_addr means block number(4 bytes per block)."
I don't completely understand the implications of that, but if you change yourCode: Select allvariable definition in your sketch to bebyte r[1];
Code: Select allit seems to fix it.byte r[1] __attribute__((aligned(4)));
Wow, thank you very much, that did indeed solve the problem. I don't understand i did not have problem with the other variable. Also i have not seen this attribute before in any examples. Did not know it existed.