Zephyr mesh shell crashes during provisioning

I added a mesh shell module to my firmware running on nRF52480 .

Opened the mesh shell

uart:~$ mesh init
Mesh shell initialized

mesh provision 0 0x100 0

Crash (see below)

proj.conf configured as follows

CONFIG_BT_MESH_SHELL=y
CONFIG_BT_MESH_CFG_CLI=y
CONFIG_BT_MESH_HEALTH_CLI=y
CONFIG_INIT_STACKS=y
CONFIG_THREAD_STACK_INFO=y
CONFIG_HEAP_MEM_POOL_SIZE=8192
CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=8192
CONFIG_BT_RX_STACK_SIZE=4096
CONFIG_BT_MESH=y
CONFIG_BT_MESH_RELAY=y
CONFIG_BT_MESH_FRIEND=y
CONFIG_BT_MESH_ADV_BUF_COUNT=13
CONFIG_BT_MESH_TX_SEG_MAX=10
CONFIG_BT_MESH_PB_GATT=y
CONFIG_BT_MESH_PB_ADV=y
CONFIG_BT_MESH_GATT_PROXY=y
CONFIG_BT_MESH_PROXY_USE_DEVICE_NAME=y
CONFIG_BT_MESH_ADV_STACK_SIZE=2048
Any ideas?
It would be really helpful if there was a guide with memory requirements for various buffers used by the mesh stack
Thanks
--------------------------------------
Crash log

00> [00:04:20.952,880] <inf> bt_mesh_main: Primary Element: 0x007b
00> [00:04:20.952,911] <dbg> bt_mesh_main: bt_mesh_provision: net_idx 0x0000 flags 0x00 iv_index 0x0000
00> [00:04:20.952,911] <dbg> bt_mesh_net: bt_mesh_net_create: idx 0 flags 0x00 iv_index 0
00> [00:04:20.952,972] <dbg> bt_mesh_net: bt_mesh_net_create: NetKey 0123456789abcdef0123456789abcdef
00> [00:04:20.955,902] <dbg> bt_mesh_net_keys: net_keys_create: NID 0x37 EncKey ceac76a8c2b228a93eecc8d307386364
00> [00:04:20.955,932] <dbg> bt_mesh_net_keys: net_keys_create: PrivacyKey 22bbd0b215bc5c7f0e6ff56d0088b93d
00> [00:04:20.957,427] <dbg> bt_mesh_net_keys: net_keys_create: NetID c7005d732329eadf
00> [00:04:20.958,923] <dbg> bt_mesh_net_keys: net_keys_create: IdentityKey 11440f40335b189f6fd27ef230eb3dcd
00> [00:04:20.960,449] <dbg> bt_mesh_net_keys: net_keys_create: BeaconKey f2059fe0a06e8ffa0a97bf5070ee6ac1
00> [00:04:20.960,937] <dbg> bt_mesh_net: bt_mesh_net_create: Storing network information persistently
00> [00:04:20.960,968] <dbg> bt_mesh_net_keys: update_subnet_settings: NetKeyIndex 0x000
00> [00:04:20.982,147] <err> os: ***** USAGE FAULT *****
00> [00:04:20.982,147] <err> os: Illegal use of the EPSR
00> [00:04:20.982,147] <err> os: r0/a1: 0x20002a00 r1/a2: 0xe000ed00 r2/a3: 0x20002a00
00> [00:04:20.982,177] <err> os: r3/a4: 0x00000000 r12/ip: 0xaaaaaaaa r14/lr: 0x0004547b
00> [00:04:20.982,177] <err> os: xpsr: 0x20000000
00> [00:04:20.982,177] <err> os: Faulting instruction address (r15/pc): 0x00000000
00> [00:04:20.982,208] <err> os: >>> ZEPHYR FATAL ERROR 0: CPU exception on CPU 0
00> [00:04:20.982,269] <err> os: Current thread: 0x20002f10 (sysworkq)
00> [00:04:21.584,075] <err> fatal_error: Resetting system

Related