Reset due to error in src\ll_adv.c, line 974. Reason?

Hi!

I've been struggling with a bug on a nrf51822 product I'm working on. It features some I2C devices, a screen and a couple of sensors.
The mcu gets a watchdog reset due to "src/ll_adv.c" on line 974 with error code 0 according to my app_error_handler().
I can't seem to figure out what might be causing the issue or how to solve it. 

From my testing the error doesn't happen immediately, it can take anywhere from a minute to a couple of hours to occur. (Most common is ~15-30min)

I found this post from 8 years ago where there was a bug with the SDK and older HW versions. I tried setting 

sd_power_mode_set(NRF_POWER_MODE_CONSTLAT);
but it did not solve the issue. 

Setup:

  • OS: WSL Ubuntu 20.04 LTS
  • Soft device: SD110 V8.0
  • SDK: nRF5 V10.0
  • Chip: nRF51822 QFACA1

Where could I start digging to find the cause of the problem? What causes ll_adv.c to trigger the watchdog?

Best Regards

Isak

  • Hi Isak, 

    The error at line 974 is about an invalid state when receiving a packet when advertising. The device was not in receiving state. I don't know what would cause the issue but it might be related to timing. The assertion will cause WDT to trigger. 

    Could you let me know if you could see the same issue when testing with our example in the SDK ? 
    Do you do anything special in your application ? any flash activity ? I assume the device crashed when it's simply advertising ? 

  • Hi Hung!

    Thanks for the input on when the error occurs. I've tried removing a lot of product specific code (everything except radio usage) but the error still occurs. I am starting to think the problem might be hardware related. 
    I'll be running some tests over the weekend to see if it's hardware related. 

    With flash activity you mean writing to the internal nRF51822 flash during runtime?
    The crash happens randomly when using the radio (not BLE). 

  • Hi Isak, 

    Could you let me know if you do anything extra on the radio from normal BLE activity ? 

    Do you do any timeslot activity ? 

    If you test with our example in the SDK do you see the same problem ? 

    Isak A said:
    With flash activity you mean writing to the internal nRF51822 flash during runtime?

    Correct.

Related