Hi,
I am using nrf52832 with icm20948 (I2C) on custom board and I am using icm20948 for angle measurement. For custom application I added some features i.e, before reading the door angle I need to write some global data into nrf internal flash and then I am setting flag to start angle measurement. First time when I load the code no issue everything seems to be fine, but after power cycle I need follow the same procedure i.e, before reading the door angle I need to write some global data into nrf internal flash and then setting flag to start angle measurement but at this time when I open the door, angle measurement is wrong. Also I have tested without writing global data into flash at that time its working fine, I have tested for more than 10 power cycle every time its working fine.
But after writing data into flash, once when power cycle is asserted door angle is not proper. Please let me know where i am missing. Let me know if any information is required from my end.
Thanks