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

Unable to interface CCS881 with nrf board : error : Failed to get device binding

Hello,

I am trying to run the CCS881 sensor sample in my nrf9160 board. I have made changes to my project config file and main.c file as mentioned in 

https://devzone.nordicsemi.com/f/nordic-q-a/59834/nrf9160-with-ccs811-and-missing-log-in-lte-link-monitor, I am getting an error that my board failed to get the device binding.

I am using nRF Connect v3.4.1, Programmer v3.4.1 and LTE Link Monitor v3.4.1

My source code is from CCS811 example which I copied from  ncs\zephyr\samples\sensor\ccs811 to ncs\nrf\samples\nrf9160\ccs811. What could have caused this error and how can I rectify it?

Parents
  • Hello Simon,

    The NCS tag is v1.2.0

    Thank you for your response. My connections are as follows:

    Vin     : 5v
    GND,WAKE : Ground
    SDA   : P0.11

    SCL   : P0.12

    This is how my overlay file looks like. Are connections okay?

    &i2c2 {
    status = "ok";
    sda-pin = < 12 >;
    scl-pin = < 11 >;
    clock-frequency = <I2C_BITRATE_STANDARD>;

    /* The I2C address could be one of two, here 0x5A is assumed */
    ccs811@5A {
    compatible = "ams,ccs811";
    reg = <0x5A>;
    label = "CCS811";
    };
    };

Reply
  • Hello Simon,

    The NCS tag is v1.2.0

    Thank you for your response. My connections are as follows:

    Vin     : 5v
    GND,WAKE : Ground
    SDA   : P0.11

    SCL   : P0.12

    This is how my overlay file looks like. Are connections okay?

    &i2c2 {
    status = "ok";
    sda-pin = < 12 >;
    scl-pin = < 11 >;
    clock-frequency = <I2C_BITRATE_STANDARD>;

    /* The I2C address could be one of two, here 0x5A is assumed */
    ccs811@5A {
    compatible = "ams,ccs811";
    reg = <0x5A>;
    label = "CCS811";
    };
    };

Children
Related