Hi,

I just got my hand on the feather board v1. I was able to build and flash codes. The BME280 code flashes but doesn’t work. The code works on nrf9160 dk. I enabled CONFIG_BOOTLOADER_MCUBOOT=y and added the location to cmake and updated the overlay file

/ {
	aliases {
		bootloader-led0 = &blue_led;
    };
};

&i2c2 {
    compatible = "nordic,nrf-twim";
    status = "okay";
    sda-pin = <0>;
    scl-pin = <1>;
    clock-frequency = <I2C_BITRATE_FAST>;
    bme280@76 {
        compatible = "bosch,bme280";
        reg = <0x76>;
        label = "BME280";
    };
};



&gpio0 {
status = "ok";	

};

I am using pin 0 and 1 for SDA and clk

Also I couldn’t find the pin layout for the feather board v1 only found for v2. Can the analog (A) pins be used as digital ?

    AMG I am using pin 0 and 1 for SDA and clk

    The pins in the .overlay refer to the processor pin designations. I believe I already assigned them in the default board definition. You can search for circuitdojo_feather_nrf9160_common.dts and that should have everything. (Look specifically at I2C1)

    The I2C pins (D0 and D1) should be defined as:

    	sda-pin = <26>;
    	scl-pin = <27>;

    If you use other pins on the board, you’ll need to remove/disable I2C1. You’ll also need external pull-ups.

    AMG Also I couldn’t find the pin layout for the feather board v1 only found for v2. Can the analog (A) pins be used as digital ?

    Pin layout is the same. Yes, analog pins can be used as digital. Not all digital pins are analog though. 😉

    Terms and Conditions | Privacy Policy