ERROR 1813 [Unknown error code] at KGJ`hóˆ@h:536871936 PC at: 0x0001505C

Hi,

I am using the nRF52840 with nRF-SDK version 16.0.

At random intervals, I encounter the following error:

"[00:02:51.009,460] <error> app: ERROR 1813 [Unknown error code] at KGJ`hh:536871936 PC at: 0x0001505C".

This issue appears to be the same as one previously reported-here, but that ticket did not provide any helpful details.

Could you please explain under what conditions this error occurs? It would help me narrow down the source of the problem in my code.

Thank you,
Shreya

Parents Reply
  • Hi,

    You're right — the log we're seeing is different because we're using a custom app_fault_handler, which overrides the default SoftDevice fault message. Otherwise, it would have shown SOFTDEVICE: ASSERTION FAILED.

    So far, I haven’t observed any extensive processing in our interrupt handlers. All application interrupts are set to priority 6, except for the watchdog IRQ, which is configured at priority 3. We’ve ensured that no critical sections or blocking code exist within ISRs that could interfere with SoftDevice timing.

    The device enters a hang state after the SoftDevice assert and only recovers via watchdog reset.

    Please let me know if there are any other areas we should specifically check.

Children
  • Hi,

    Tthe assert itself does not tell us anything about what caused it, other than that somehow the SoftDevice was not able to process an interrupt/event hon time. But it should be something that runs on a higher priority or that interrupts are disabaled (via critical sections). Can you double check that you don't have any other interrupts with higher priority (lower number) than 4?

Related