Kernel halt after reset

Hi,

I am porting a SDK 2.6.0 project to SDK 2.9.0. It gets built without errors but when I try to run it after flashing I get the following.

[00:00:01.250,885] <err> spinel_ipc_backend: IPC endpoint bind timed out
ASSERTION FAIL @ WEST_TOPDIR/zephyr/drivers/ieee802154/ieee802154_nrf5.c:1228
        802.15.4 serialization error: -6
[00:00:01.250,976] <err> os: r0/a1:  0x00000004  r1/a2:  0x000004cc  r2/a3:  0x00000002
[00:00:01.250,976] <err> os: r3/a4:  0x00000004 r12/ip:  0x0000734c r14/lr:  0x00018c21
[00:00:01.251,007] <err> os:  xpsr:  0x09100000
[00:00:01.251,007] <err> os: s[ 0]:  0xffffffff  s[ 1]:  0x0005380b  s[ 2]:  0x00000000  s[ 3]:  0x00000000
[00:00:01.251,037] <err> os: s[ 4]:  0x00079e68  s[ 5]:  0x2001a0e4  s[ 6]:  0x00000000  s[ 7]:  0x00051f49
[00:00:01.251,037] <err> os: s[ 8]:  0x2000422c  s[ 9]:  0x00052475  s[10]:  0x00000000  s[11]:  0x2001a0e4
[00:00:01.251,068] <err> os: s[12]:  0xffffffff  s[13]:  0x00018c17  s[14]:  0x00079e68  s[15]:  0xfffffffa
[00:00:01.251,098] <err> os: fpscr:  0x00000001
[00:00:01.251,098] <err> os: Faulting instruction address (r15/pc): 0x00052460
[00:00:01.251,129] <err> os: >>> ZEPHYR FATAL ERROR 4: Kernel panic on CPU 0
[00:00:01.251,159] <err> os: Current thread: 0x20004800 (main)
[00:00:02.751,617] <err> os: Halting system
[00:00:01.250,732] <err> spinel_ipc_backend: IPC endpoint bind timed out

I am not sure where to start as this seems Thread related. 

Please help.

Thanks,

kaushalya

  • First thing I request from developers debugging this kind of faults is to enable these in your prj.conf

    CONFIG_NO_OPTIMIZATIONS=y
    CONFIG_RESET_ON_FATAL_ERROR=n
    CONFIG_THREAD_MONITOR=y
    CONFIG_THREAD_STACK_INFO=y
    CONFIG_THREAD_NAME=y
    
    CONFIG_MAIN_STACK_SIZE=4096
    CONFIG_SYSTEM_WORKQUEUE_STACK_SIZE=4096

    I can see that the current context is main thread so Increase the main and system workqueue size to bigger than what you already have and pristine build and run again, if you see the same issue, then we see this differently than just a stack overflow.

Related