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

ADC conflict with softedevice

Hi,

I’m trying to use the SAADC on nrf52832. I’m not using softdevice (I’m not doing BLE code) but it’s present on the chip (to use it for DFU).
When I program the chip without softdevice my code run well & SAADC return good values. But when softdevice is present (FLASH starts at 0x26000) the code run well until I call: nrf_drv_saadc_sample(). After that, instead of entering saadc_callback function… I’ve got nothing! No error messages, no break, no restarts and I can’t do anything. So my problem is that I can not identify the problem with debugger, breakpoints or LOG_DEBUG.

I checked  the ble_app_proximity example, which is using SAADC with softedevice, but initialization, use of nrf_drv_saadc_sample() and callback function are the same as in saadc example.
Anybody knows if softdevice can create conflicts with the adc? Id there any solution?
I’m not using PPI (like the code given in this topic).

 

Best regards

Related