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 Children
  • Hi,

    That is an interesting obeservation, and it could be related, as this will affect the schedulign in the SoftDevice (reserving more time for each connection event). Could you also try to incrase the PPM configuration for the LF clock to (say) NRF_CLOCK_LF_ACCURACY_250_PPM and see if that also gives an imrovement (both alone and combined with longer event length)?

    Edit: While I do not understand the root cause, another potential workaround is to increase NRF_SDH_BLE_GAP_DATA_LENGTH in sdk_config.h to add more margin that way.

  • Hi,

    Could you also try to incrase the PPM configuration for the LF clock to (say) NRF_CLOCK_LF_ACCURACY_250_PPM

    Sure, I’ll run the test with the LF clock accuracy set to NRF_CLOCK_LF_ACCURACY_250_PPM  and let you know the results.

    Regarding the NRF_SDH_BLE_GAP_DATA_LENGTH, we’ve already configured it to the maximum value, which is 251.

  • Hi,

    I tested the following configurations:

    • Only increased the LF clock PPM (lower accuracy): The issue reoccurred after 6 days.

    • Increased both the PPM and the event length: The issue reoccurred after 10 days.

    • Increased only the event length (logging disabled): The system has been running for 18 days without any reset.

    Could this issue be occurring only when RTT logging is enabled?

  • Hello,

    Einar is out of office.

    Shreya J B said:
    Could this issue be occurring only when RTT logging is enabled?

    I am not sure. Do you see it if you disable logging? 

    Were you able to reproduce this issue on a DK? This way, it would be easier for our SoftDevice team to debug the issue. 

    Best regards,

    Edvin

  • Hi,

    Thanks for the response,

    I am not sure. Do you see it if you disable logging? 

    When logging was disabled, the issue did not occur for 25 days. So, I suspect that the issue might be related to logging. However, I'm not sure whether this assumption is correct.

    Were you able to reproduce this issue on a DK?

    We haven't tried reproducing the issue on a DK, as our custom board has some sensors integrated. The issue occurs randomly during communication with these sensors.

Related