
 I copied the new nrfx library version 3.11.0, and nrf_modem from May 23, 2025.

 --------------------------------------------------------------
In nrfx_ipc.c, I made the following modification:

void nrfx_ipc_irq_handler(void)
{
    // Get the information about events that fire this interrupt
    uint32_t events_map = nrf_ipc_int_pending_get(NRF_IPC);
    // Clear these events
    uint32_t bitmask = events_map;

    while (bitmask)
    {
        // uint8_t event_idx = (uint8_t)NRF_CTZ(bitmask);      // Error! Expected expression
        uint8_t event_idx = (uint8_t)__builtin_ctz(bitmask);   // Culi, Works fine with this
        bitmask &= ~(1UL << event_idx);
        nrf_ipc_event_clear(NRF_IPC, nrf_ipc_receive_event_get(event_idx));
        if (m_cb.handler)
        {
            m_cb.handler(event_idx, m_cb.p_context);
        }
    }
}

In debugging, I had to print the macro definition at the point where it's used.
------------------------------------------------------------------------------------------------

Maybe including only nrfx.h would resolve all dependencies.

Create a new project that includes all SEGGER debug files from the latest version.