Assertion Failure in mpsl_init.c on nRF54L15 – MPSL ASSERT: 1, 1385

Description:

We are using nRF54L15 with NCS v3.0.0, and the following clock configuration:

CONFIG_CLOCK_CONTROL_NRF_K32SRC_XTAL=y
CONFIG_CLOCK_CONTROL_NRF_K32SRC_50PPM=y

Our application only enables Bluetooth and sends advertisement data.
This assertion failure does not occur on every power-on, but it happens frequently during startup.
We are encountering an assertion failure during initialization of the MPSL module using the nRF54L15. The error message is as follows:

ASSERTION FAIL [0] @ WEST_TOPDIR/extern/ncs/nrf/subsys/mpsl/init/mpsl_init.c:307 MPSL ASSERT: 1, 1385
After enabling the following configuration, the issue appears to be resolved:

CONFIG_MPSL_USE_EXTERNAL_CLOCK_CONTROL=y

Questions:

  1. What is the root cause of this assertion failure?

  2. Is CONFIG_MPSL_USE_EXTERNAL_CLOCK_CONTROL=y the correct and recommended solution for this issue on nRF54L15?

  3. Are there any side effects or considerations when using external clock control in this context?

We’d appreciate your support on this issue.

BR,

Angus

Parents
  • Hello Angus,

    With a nRF54L15 DK, the Kconfig you listed are enabled by default, and I cannot reproduce the problem.

    Could you please let me know whether this happened on a custom hardware, or on a nRF54L15 DK?

    If you are using a custom hardware, could you confirm that your 32kHz external crystal accuracy is actually 50ppm?

    Best regards,

    Hieu

  • Thank you for your response.

    Yes, this issue occurs on our custom hardware, not on the nRF54L15 DK.
    According to our hardware team, the 32.768 kHz crystal we’re using has a specified frequency accuracy of 20 ppm.
    However, we currently do not have actual measurement data from the board.

    Could you kindly help us clarify the following points, to better understand the root cause and proper handling?

    • Is the root cause of this assertion failure related to the accuracy setting?
      (Is it likely caused by an incorrect CONFIG_CLOCK_CONTROL_NRF_K32SRC_ACCURACY value, or could there be another reason?)

    • What is the functionality of CONFIG_MPSL_USE_EXTERNAL_CLOCK_CONTROL?
      What exactly changes when it's set to y compared to n?

  • Hi Hieu,

    Thank you very much! Based on your suggestion and the formula you provided, I reconfigured hfxo load-capacitance-femtofarad = <7000>.
    With this setting, along with a CONFIG_MPSL_HFCLK_LATENCY value of 1366, I performed 50 restarts and did not encounter the "MPSL ASSERT: 1, 1385" system crash issue.

    Next, once I complete the Sidewalk gateway setup, I will begin testing and get back to you to confirm whether there are any other transmission-related issues.


    BTW:
    I noticed that there are a bug fixe for (DRGN-25261) in your v3.1.0 release.
    Does this mean that if we upgrade to a newer SDK version later, we should revert CONFIG_MPSL_HFCLK_LATENCY back to its default value?

  • Hi Angus,

    AngusKu said:
    I noticed that there are a bug fixe for (DRGN-25261) in your v3.1.0 release.
    Does this mean that if we upgrade to a newer SDK version later, we should revert CONFIG_MPSL_HFCLK_LATENCY back to its default value?

    Yes, if you upgrade to v3.1.0 or later, you can use the default CONFIG_MPSL_HFCLK_LATENCY and disregard the DRGN-25261 workaround.

  • Hi Hieu, 

    Currently, I have made the modification according to your suggestion for our Hardware:
    load-capacitance-femtofarad = <7000>.

    Since I am using SDK version 3.0.0, I also adjusted the CONFIG_MPSL_HFCLK_LATENCY to 1366 (default value plus the DRGN-25261 workaround) to address the known issue in this version.

    After testing, the communication between Amazon Sidewalk and the Gateway works properly—I am able to send and receive messages successfully.

    In the future, when I upgrade the SDK version, I will follow your advice and revert CONFIG_MPSL_HFCLK_LATENCY back to its default value if needed.

    BR,
    Angus

  • Hi Angus,

    Sounds great. I will close this case then. Please feel free to reopen it as needed.

    BR,

    Hieu

  • Hai  

        This is only for nrf54l15 or nrf54l05 also?

Reply Children
Related