Hello,
nRF5340DK, NCS1.9.99, VSCode, nrf5340dk_nrf5340_cpuapp
v1.9.99\zephyr\tests\drivers\i2c\i2c_api
add file app.overlay
/{
aliases {
i2c-0 = &i2c0;
i2c-1 = &i2c1;
};
};
&i2c0 {
compatible = "nordic,nrf-twim";
status = "okay";
label = "I2C_0";
clock-frequency = <I2C_BITRATE_STANDARD>;
sda-pin = < 0x0e >;
scl-pin = < 0x0f >;
};
&spi3 {
compatible = "nordic,nrf-spim";
label = "SPI_3";
status = "okay";
sck-pin = < 0x1f >;
miso-pin = < 0x20 >;
mosi-pin = < 0x2d >;
};
&uart0{
status = "okay";
label = "UART_0";
current-speed = < 0x1c200 >;
tx-pin = < 0x14 >;
rx-pin = < 0x16 >;
rx-pull-up;
rts-pin = < 0xFFFFFFFF >;
cts-pin = < 0xFFFFFFFF >;
cts-pull-up;
};
build error:
error: static assertion failed: "Only one of the following peripherals can be enabled: SPI0, SPIM0, SPIS0, TWI0, TWIM0, TWIS0, UARTE0.
i want to change to use I2C1, i konw chage overlay file,
how to set config in prj.conf?
Best regards