This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Issue while reading data from ICM20948 after power cycle.

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

Parents
  • Hi again

    Thank you for the update. Can you try commenting out just the flash write function (sd_flash_write or whatever you're using) in your application (just the single line calling the flash write), and see if you can still see these continuous readings. Our guess is that there is something before or after the flash write has occurred that causes the flag to be set to a wrong value, triggering these readings.

    Best regards,

    Simon

Reply
  • Hi again

    Thank you for the update. Can you try commenting out just the flash write function (sd_flash_write or whatever you're using) in your application (just the single line calling the flash write), and see if you can still see these continuous readings. Our guess is that there is something before or after the flash write has occurred that causes the flag to be set to a wrong value, triggering these readings.

    Best regards,

    Simon

Children
No Data
Related