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

nrfx_saadc_irq_handler not getting triggered

Hi ,

I am using saadc to measure battery voltage i m using the sample example given as reference ble_app_proximity/

I am doing adc_configuration in one file and triggering nrf_drv_saadc_sample() from different file in this case alone  nrfx_saadc_irq_handler is not getting triggered

if i call the nrf_drv_saadc_sample() from same file everything is working fine.

Could you help me identify why this is happening?

SDK version  15.2

nRF52840

Parents Reply Children
  • Hello John,

    john.ashok said:

    Actually I an trying to call adc_configure in bas notification enable event if i do that it doesn't return any error but i didn't get 

    nrfx_saadc_irq_handler.

    So is it wrong to call adc_configure inside ble event?

    I am not sure I understand what you mean here, are you trying to put the SAADC configuration and init function into the bas_init function?
    If not, which function are you inputting the SAADC config and init calls into?

    Could you possible share the snippet of code in which you are doing this?
    If you could also confirm that you are passing the returned error codes from the SAADC functions to an APP_ERROR_CHECK that would be very helpful. Please also make sure that you have defined DEBUG in your preprocessor defines.

    There should not be any issue calling the SAADC functions as part of the bas_init function.

    Looking forward to resolving this issue together!

    Best regards,
    Karl

Related