I am following this example https://github.com/crfosse/ncs_projects/tree/main/peripheral_zephyr , both secure and non secure and I am not being able of making the non secure version work with the nrf5340, ncs version 2.8.0.
The error that appears is:
[00:00:00.380,798] <err> os: ***** BUS FAULT *****
[00:00:00.380,798] <err> os: Precise data bus error
[00:00:00.380,798] <err> os: BFAR Address: 0x0
[00:00:00.380,828] <err> os: r0/a1: 0x00012e34 r1/a2: 0x00000000 r2/a3: 0x0001455d
[00:00:00.380,828] <err> os: r3/a4: 0x0000000c r12/ip: 0x00000000 r14/lr: 0x00012217
[00:00:00.380,859] <err> os: xpsr: 0x81000000
[00:00:00.380,859] <err> os: Faulting instruction address (r15/pc): 0x0000c7be
[00:00:00.380,889] <err> os: >>> ZEPHYR FATAL ERROR 25: Unknown error on CPU 0
[00:00:00.380,920] <err> os: Current thread: 0x20008738 (unknown)
[00:00:00.442,382] <err> os: Halting system
The secure version is working correctly.