The use of NRF_RADIO->EVENTS_RSSIEND in esb

I use nrf5340 to build esb project, I use the following code to scan rssi of different channels, but I read the value of NRF_RADIO->EVENTS_RSSIEND is 127, I hope you can tell me where the problem is, thank you.

       uint8_t temp_chn = 0;
        while(1)
        {
            temp_chn++;
            esb_stop_rx();
            esb_set_rf_channel(temp_chn % 80);
            esb_start_rx();
            while(!NRF_RADIO->EVENTS_RXREADY);
            NRF_RADIO->TASKS_RSSISTART = 1;
            while(!NRF_RADIO->EVENTS_RSSIEND)
            {
                printk("wait rssi end\r\n");
            };
            
            printk("ch %d %d\r\n", NRF_RADIO->FREQUENCY, NRF_RADIO->RSSISAMPLE);
            NRF_RADIO->EVENTS_RSSIEND = 0;

            k_sleep(K_MSEC(100));
        }

Related