ADXL362 with nrf52840

Hello there. I am using ADXL362 with nrf52480. Provided below is the DTS file of my project.

&spi1 {
    status = "okay";
    sck-pin = <13>;
    mosi-pin = <17>;
    miso-pin = <14>;
    cs-gpios = <&gpio0 31 GPIO_ACTIVE_LOW>;
   
    adxl362@0 {
        compatible = "adi,adxl362";
        label = "ADXL362";
        spi-max-frequency = <1000000>;
        reg = <0>;
        int1-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
    };
};
when I built the project, sometimes ADXL362 gives response. and sometimes it just returns 0
what could be the possible issue.
Note: the read/write commands execute successfully every time..
Parents
  • Hi,

     

    Given that you are defining without pinctrl, I assume you're using NCS v1.9.x or older? Please share which ncs version you're using.

    Could you share your compiled build/zephyr/zephyr.dts file?

    int1-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;

    P0.08 is connected to the UART0 RXD pin on the nrf52840dk_nrf52840 board, so this needs to be changed to avoid pin conflict.

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Given that you are defining without pinctrl, I assume you're using NCS v1.9.x or older? Please share which ncs version you're using.

    Could you share your compiled build/zephyr/zephyr.dts file?

    int1-gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;

    P0.08 is connected to the UART0 RXD pin on the nrf52840dk_nrf52840 board, so this needs to be changed to avoid pin conflict.

     

    Kind regards,

    Håkon

Children
Related