nrf5340 DK Assigning pins for I2C generates FATAL ERROR: BusFault

Hi,

I am trying to write a simple application that uses I2C on a nrf5340 DK, assigning SCL to P0.9 and SDA to P0.10, using the app core ns .
The application builds without issues and after being written to the board I get the following messages

Pins have been configured as secure.
GPIO port: 0x00000001
Pin: 0x00000000
Pin: 0x00000001
[Sec Thread] Secure image initializing!
Booting TF-M v2.0.0-ncs2
[DBG][Crypto] Initialising Mbed TLS 3.5.0 as PSA Crypto backend library... complete.
FATAL ERROR: BusFault

My nrf5340dk_nrf5340_cpuapp_ns.overlay file has the following content

&i2c1_default {
	group1 {
		psels = <NRF_PSEL(TWIM_SDA, 0, 10)>, <NRF_PSEL(TWIM_SCL, 0, 9)>;
	};
};

&i2c1_sleep {
	group1 {
		psels = <NRF_PSEL(TWIM_SDA, 0, 10)>, <NRF_PSEL(TWIM_SCL, 0, 9)>;
		low-power-enable;
	};
};

&i2c1 {
	compatible = "nordic,nrf-twim";
	status = "okay";
	pinctrl-0 = <&i2c1_default>;
	pinctrl-1 = <&i2c1_sleep>;
	pinctrl-names = "default", "sleep";
};

I assume it is a configuration issue rather than code, since my app doesn't get to start and do its thing.
What am I missing ?

Parents Reply Children
Related