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

Is there any example on interfacing nrf52840 with icm 20601 using spim?

Hi guys, I just want to know if there's a way for the above and how if yes.

Parents
  • Hi, 

    Recently I tried to read some data from icm20602 sensor by spi. But I had some trouble, it seemed that code can't read the right data from the sensor, such as sensor's default device ID(0x12). I'm confused about it. If you have some suggentions? Or do you have any examples?

    Thanks a lot

    Jerry

  • Hello Jerry,

    Jerryxu said:
    I had some trouble, it seemed that code can't read the right data from the sensor, such as sensor's default device ID(0x12). I'm confused about it. If you have some suggentions? Or do you have any examples?

    What do you mean that it cant read the right data? Are you able to read anything at all from the sensor, or do you mean that whatever you are able to read is not as expected?
    Do you notice any other unexpected behavior when you attempt this; does the device suddenly reset, or stop advertising, for example?

    Could you also describe how you have connected the sensor to your device, and do you have access to a logical analyzer so we could take a closer look at exactly what is happening on the lines?

    Best regards,
    Karl

Reply
  • Hello Jerry,

    Jerryxu said:
    I had some trouble, it seemed that code can't read the right data from the sensor, such as sensor's default device ID(0x12). I'm confused about it. If you have some suggentions? Or do you have any examples?

    What do you mean that it cant read the right data? Are you able to read anything at all from the sensor, or do you mean that whatever you are able to read is not as expected?
    Do you notice any other unexpected behavior when you attempt this; does the device suddenly reset, or stop advertising, for example?

    Could you also describe how you have connected the sensor to your device, and do you have access to a logical analyzer so we could take a closer look at exactly what is happening on the lines?

    Best regards,
    Karl

Children
No Data
Related