I2C not working with ns target

Using nrf5340dk, SDK v1.9.0

Want to add external RTC via I2C to wake mcu up via alarm, Facing Issue with I2C init.

I have gone through the suggested sdk fundamental course for I2C and using provided example only, I2c  works with cpuapp but not with cpuapp_ns, Please help to resolve.

some time doesnt get build and some time gives below error.

[00:00:00.449,310] <27>[1;31m<err> os: ***** BUS FAULT *****<27>[0m<\r><\n>
[00:00:00.449,340] <27>[1;31m<err> os:   Precise data bus error<27>[0m<\r><\n>
[00:00:00.449,340] <27>[1;31m<err> os:   BFAR Address: 0x0<27>[0m<\r><\n>
[00:00:00.449,340] <27>[1;31m<err> os: r0/a1:  0x000121cc  r1/a2:  0x000121d4  r2/a3:  0x01980000<27>[0m<\r><\n>
[00:00:00.449,371] <27>[1;31m<err> os: r3/a4:  0x40009000 r12/ip:  0x00000000 r14/lr:  0x0000d515<27>[0m<\r><\n>
[00:00:00.449,371] <27>[1;31m<err> os:  xpsr:  0x01000200<27>[0m<\r><\n>
[00:00:00.449,371] <27>[1;31m<err> os: Faulting instruction address (r15/pc): 0x0000d4a6<27>[0m<\r><\n>
[00:00:00.449,401] <27>[1;31m<err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0<27>[0m<\r><\n>
[00:00:00.449,432] <27>[1;31m<err> os: Current thread: 0x20008748 (unknown)<27>[0m<\r><\n>
[00:00:00.510,986] <27>[1;31m<err> os: Halting system<27>[0m<\r><\n>

Related