tfm_ns_fault_handler_callback is called when booting

Hi,

I have a problem where tfm_ns_fault_handler_callback is called when booting the system.

This results in arm_fault and k_sys_fatal_error_handler is called. The reason is 41.

I have upgraded to SDK v2.6.1

Custom board based on nrf9160-SIP

The project is based on a azure iot hub example.

This is the error log:

Fullscreen
1
2
3
4
5
6
7
8
9
10
[00:00:00.422,271] <ESC>·[1;31m<err> os: ***** SECURE FAULT *****<ESC>·[0m<CR><LF>
[00:00:00.422,302] <ESC>·[1;31m<err> os: Address: 0x22<ESC>·[0m<CR><LF>
[00:00:00.422,302] <ESC>·[1;31m<err> os: Attribution unit violation<ESC>·[0m<CR><LF>
[00:00:00.422,332] <ESC>·[1;31m<err> os: r0/a1: 0x00000000 r1/a2: 0x00000005 r2/a3: 0x0006620c<ESC>·[0m<CR><LF>
[00:00:00.422,332] <ESC>·[1;31m<err> os: r3/a4: 0x2001d599 r12/ip: 0x200103f2 r14/lr: 0x00055723<ESC>·[0m<CR><LF>
[00:00:00.422,363] <ESC>·[1;31m<err> os: xpsr: 0x61000000<ESC>·[0m<CR><LF>
[00:00:00.422,363] <ESC>·[1;31m<err> os: Faulting instruction address (r15/pc): 0x00056080<ESC>·[0m<CR><LF>
[00:00:00.422,393] <ESC>·[1;31m<err> os: >>> ZEPHYR FATAL ERROR 41: Unknown error on CPU 0<ESC>·[0m<CR><LF>
[00:00:00.422,424] <ESC>·[1;31m<err> os: Current thread: 0x200104a0 (unknown)<ESC>·[0m<CR><LF>
[00:00:01.177,398] <ESC>·[1;31m<err> fatal_error: Resetting system<ESC>·[0m<CR>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX


Please feel free to contact me, if more information is needed.

BR Replay