I2C Pin Configuration issue with ncs and zephyr

Hello support team,
i have an issue regarding the i2c configuration on an nrf52832. 

The Setup is:

  • EvalBoard nrf52dk_52832
  • BME280 Sensor attached via I2C
  • NCS 2.6.1
  • Using a modified i2c devicetree
    • changed pinctrl of i2c0 node
  • For the Test we used the Zephyr's I2C and Sensor Shell to query the bme280

The Problem is:

  • P0.4/P0.5 as SCL/SDA does not work, wheras P0.27/P0.28 does work

With P0.26/P0.27

i2c scan i2c@40003000

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:             -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- 76 --                        

1 devices found on i2c@40003000

With P0.4 and P0.5

i2c scan i2c@40003000

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f

00:             -- -- -- -- -- -- -- -- -- -- -- --

10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --

70: -- -- -- -- -- -- -- --                        

0 devices found on i2c@40003000

Here are the corresponding registers:

 .

I ensured that the wiring is not the problem through interchanging of the scl/sda lines
Perhaps there is a restriction on these pins.

I attached the devicetree we used for this test.
Let me know if you need more information.

Best regards,
Roman

6708.zephyr.dts

Related