Crash issue on sdk v2.9.0

SOC: nrf52840

SDK: v2.9.0

Device is a central, it connected to 16 peripherals, these peripherals will power on 90 seconds and then power off 10 seconds(one cycle).

After ten days of operation, there will be a crash.

Has anyone run into this problem? How do you solve it? Thank you!

Crash 1, reason is K_ERR_KERNEL_OOPS=3.

Crash 2, reason is K_ERR_ARM_BUS_IMPRECISE_DATA_BUS=26.

CONFIG_LOG_PROCESS_THREAD_STACK_SIZE=768

logging thread max stack usage: 744 B(97%)

 

Parents
  • Hi Leo,

    Since you started monitoring stack size in the second attempt, I take it you have suspected stack overflow.

    That would be my guess too. I am not sure if the stack monitoring can monitor up to the crash. What I mean is: If the stack overflow and crash, then can the monitor catch that, or is the event lost?

    Generally, I think if a max usage goes over 90%, then it is a good idea to budget more.

    Could you please give the log thread more stack? Please also check other threads to see if any is having similar issues.

    Another thing to watch out for is to see if the stack use increases over time, which would indicate a memory leak somewhere.

    Hieu

Reply
  • Hi Leo,

    Since you started monitoring stack size in the second attempt, I take it you have suspected stack overflow.

    That would be my guess too. I am not sure if the stack monitoring can monitor up to the crash. What I mean is: If the stack overflow and crash, then can the monitor catch that, or is the event lost?

    Generally, I think if a max usage goes over 90%, then it is a good idea to budget more.

    Could you please give the log thread more stack? Please also check other threads to see if any is having similar issues.

    Another thing to watch out for is to see if the stack use increases over time, which would indicate a memory leak somewhere.

    Hieu

Children
No Data
Related