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
  • Thanks Karl for supporting me

    My issue got resolved as you mentioned

    I recommend that you do not make these kinds of while waiting loops within event handlers, it is not an advisable practice.

    I removed the waiting loops in my application and it works as expected now.....Slight smile

  • john.ashok said:

    Thanks Karl for supporting me

    My issue got resolved as you mentioned

    No problem at all, I am happy to help and glad to hear that your issue has been resolved! :) 

    john.ashok said:
    I removed the waiting loops in my application and it works as expected now....

    That is great! The waiting time can be used in either a low-power SYSTEM ON state, or doing something else, so this is good to hear!
    You could also as mentioned have the sampling trigger by linking their TASKS to an appropriate event through PPI - this is highly advisable.

    Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Reply
  • john.ashok said:

    Thanks Karl for supporting me

    My issue got resolved as you mentioned

    No problem at all, I am happy to help and glad to hear that your issue has been resolved! :) 

    john.ashok said:
    I removed the waiting loops in my application and it works as expected now....

    That is great! The waiting time can be used in either a low-power SYSTEM ON state, or doing something else, so this is good to hear!
    You could also as mentioned have the sampling trigger by linking their TASKS to an appropriate event through PPI - this is highly advisable.

    Please do not hesitate to open a new ticket if you should encounter any issues or questions in the future.

    Good luck with your development!

    Best regards,
    Karl

Children
No Data
Related