NRF54L15 ADC sampling gets stuck inside adc_read

Hi Dev,

Development platform: NRF54L15 + NCS 3.2.3

We are facing an issue with ADC sampling. The code occasionally gets stuck/hangs inside the adc_read function. This issue does not occur every time — it happens sporadically after long-term operation or under certain unknown conditions.

I have already narrowed down the issue and confirmed that the hang occurs inside adc_read.

Here is the code snippet:

c
int adc_single_channel_poll(uint8_t chan)
{
    if (chan >= ADC_CH_COUNT) return -EINVAL;

    int16_t             local_sample = 0;
    struct adc_sequence seq          = {
                 .channels    = BIT(channel_cfgs[chan].channel_id),
                 .buffer      = &local_sample,
                 .buffer_size = sizeof(local_sample),
                 .resolution  = 12,
    };

    int err = adc_read(adc_dev, &seq);

    if (likely(err == 0))
    {
        adc_raw[chan] = (local_sample < 0) ? 0 : local_sample;
    }

    return err;
}

The execution gets stuck at adc_read() and never returns.

Could you please help clarify:

  1. Is this a driver-layer bug in the ADC driver provided with NCS 3.2.3?

  2. Or could it be a hardware issue with the NRF54L15 device itself?

  3. Are there any known issues or errata related to ADC on NRF54L15 that could cause occasional hangs in adc_read?

Any suggestions on how to further debug or work around this issue would be greatly appreciated.

Thanks,
Chen

  • Hi,

    I couldn't find anything about this internally...

    Can you please send me the most barebone NCS application where the bug happens ?

    Usually I would try to make that app myself, but due to the summer Holiday period, we are running low on engineer. So I don't really have a lot of time to spare making that application. It would be great if I can use this time to debug the issue directly. Sorry for the inconvinence...

    I have to confirm the issue on a DK before reporting it internally.

    Best regards,

    Simon

  • Hi   and  ,

    Following up on my case about the nRF54L15 SAADC hang inside adc_read().

    Has the root cause been identified yet? Has it been fixed in a newer NCS/SDK release? If yes, which version contains the fix? If not, is there an internal ticket or known-issue entry I can track, and what is the expected timeline?

    I'd appreciate a direct answer on the root cause and fix status so I can plan accordingly.

    Thanks,
    Chen

  • Hi Chen,

    Sorry, I lost track of this ticket during the summer holidays rush.

    Nothing has been done yet. I asked AI to make me a test application, and I'm currently running tests to reproduce the issue and test a fix AI suggested. Each test need to run for quite long periods so it will take some time before I'll get back to you. But you can be reassured that we are working on it now.

    I'll get back to you to share my findings before the end of the week.

    Best regards,

    Simon

  • Hi Chen,

    Sorry, I was busier than expected, so I wasn't able to make a lot of progress.

    I tried to do some testing, but I haven't been able to reproduce the issue reliably yet.

    I'm still working on it.

    Best regards,

    Simon

Related