Hey folks, I've tried bunch of things but can't make TWIM work properly on nrf54l15-DK outside of that pair of pins.
Basically the issue is that it only works correctly if I use P1.4 and P1.5. If I change 4 to 11 - no luck. If I change 5 to 7 or 10, same. As soon as I change it back everything works perfectly.
Here is the overlay
&i2c20 {
compatible = "nordic,nrf-twim";
status = "okay";
pinctrl-0 = <&i2c20_default>;
// pinctrl-1 = <&i2c20_sleep>;
pinctrl-names = "default";
clock-frequency = <I2C_BITRATE_STANDARD>;
pcf8574: pcf857x@20 {
compatible = "nxp,pcf857x";
status = "okay";
reg = <0x20>;
gpio-controller;
#gpio-cells = <2>;
ngpios = <8>;
};
};
.....
i2c20_default: i2c20_default {
group1 {
psels = <NRF_PSEL(TWIM_SCL, 1, 11)>,
<NRF_PSEL(TWIM_SDA, 1, 5)>;
};
};
....In conf file I do have
and that's it. Do I need to do some NRF specific flags for TWIM to work on other pins? I did hear there could be some issues with them.
Maybe pull ups enabled only on certain pins by default or DK v0.9.3 is wired in some weird way?
Any hints will be appreciated!