This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

NRF_ADC->EVENTS_END failed again

There was a thread about this issue:

devzone.nordicsemi.com/.../

I am having the same problem again. I am using S110, RTOS, do 10 conversions on the same channel every 1 second.

This is my code:

nrf_adc_input_select(NRF_ADC_CONFIG_INPUT_6);

osDelay(1);

NRF_ADC->EVENTS_END = 0;
nrf_adc_start();

while (!NRF_ADC->EVENTS_END) {
}
NRF_ADC->EVENTS_END = 0;
nrf_adc_conversion_event_clean();
val = nrf_adc_result_get();
nrf_adc_stop();	

But it just randomly stuck at NRF_ADC->EVENTS_END while loop.

Related