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

SAADC missing event

Hello.

I have a issue about missing NRF_DRV_SAADC_EVT_DONE event in saadc  handler.

setup is 52832, SDK 15.3.0, S332. enable ANT, BLE

for battery, sensor, I use 2 adc channel.

buffer size is 2.

like ' adc_buffer[2][ADC_BUFFER_SIZE] '.

adc interval is 10ms, adc sampling through ppi

app timer start rtc timer for intrrupt ppi , app timer interval is 9ms, rtc interval is 1ms.

routine is below.

app timer handler -> adc & ppi init -> rtc timer start -> timer rasie interrupt to ppi -> sampling ->  saadc handler -> Done event -> get adc value -> do something -> ppi uninit -> adc uninit

most case, it work very well.

however, sometimes it stop and issue error code 8 : already initalize saadc.

so I checked the cause, when the issue happened, Done event is not raise. it was missed. so it didn't process uninit.

for reducing power consumption, try init & uninit repeatly.

I also tried 'uninit' move to main loop. not callback.

even though, it still issue intermittently.

Could you give me advices?

Thank you in advance.

Parents Reply Children
No Data
Related