@Defragster:
I'm not sure what the "reserved" Bit24 does exactly, but it helps (and seems to work now):
Note, Bit 24 must be set before write(?) - found it by try and error. Tested without battery - power dwn and reset only.
I've fixed a little issue in the library (SNVS reset not needed), please download again. It's needed here.
One should measure/verify the power consumption on power off - with bit 24 set and without.
Could that it enables ways more..?
I'm not sure what the "reserved" Bit24 does exactly, but it helps (and seems to work now):
Code:
void setup() {
Serial.println(IMXRT_SNVS.offset100, HEX);
Serial.println(IMXRT_SNVS.offset104, HEX);
SNVS_LPCR |= (1<<24); //Enable NVRAM(?!) - undocumented
IMXRT_SNVS.offset100 = 0xbeef;
IMXRT_SNVS.offset104 = 0x1234;
Serial.println(IMXRT_SNVS.offset100, HEX);
Serial.println(IMXRT_SNVS.offset104, HEX);
...
reset or power down
I've fixed a little issue in the library (SNVS reset not needed), please download again. It's needed here.
One should measure/verify the power consumption on power off - with bit 24 set and without.
Could that it enables ways more..?
Last edited: