I'm using the latest SDK (1.5.0) on a Windows 10 platform.
I want to add I2C support to the BLE sample program peripheral_uart.
I fumbled my way through https://devzone.nordicsemi.com/nordic/nrf-connect-sdk-guides/b/peripherals/posts/adding-a-peripheral-to-an-ncs-zephyr-project and have done what I think is correct.
I added the following lines to prj.overlay.
&i2c1 {
compatible = ""nordic,nrf-twi"";
/* Cannot be used together with spi1. */
status = ""okay"";
sda-pin = <19>;
scl-pin = <20>;
};
I looked in the Current Kconfig documentation (https://developer.nordicsemi.com/nRF_Connect_SDK/doc/latest/kconfig/index-nrf.html) and ended up adding
config I2C_1_NRF_TWI
bool
default n
select NRFX_TWI1
depends on I2C_NRFX && I2C
help
Enable nRF TWI Master without EasyDMA on port 1.
to Kconfig.
When I clean build the solution I get six warnings on the following line
Building ‘app/libapp.a’ from solution ‘build’ in configuration ‘Common’
I've attached the Kconfig, overlay and configuration files