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

After configured internal low frequency clock source,advertising stop but saadc still working

The program flow of the slave is to sample the analog signal source through the saadc and then send it to the host through the nus.
When debugging on nrf52dk, configure the chip to xtal mode and the program can run smoothly. But when the chip is configured as a 32.768k internal low-frequency clock source RC, after each reset, the broadcast signal appears for a while and disappears, but the saadc sampling continues to run. Why?
The strange thing is that the first run after programming the program is normal.

  • Hello again, 

    Thank you for your patience with this - sorry for not getting back to you last week; there was two public holidays here in Norway since then.

    zaki_fighting said:
    I have solved the problem by resetting the sampling buffer after calibration in the saadc_calibrate function instead of saadc_callback function. I think the reason may be that the sampling buffer time is set too late in the calibration callback function.

    Thank you for the update on this, and for detailing what you had to do to fix the issue - I am glad to hear that you were able to resolve your issue, and that it is now working as intended! Great work!

    zaki_fighting said:
    Thanks for helping me solve the problem.
    zaki_fighting said:
    Thank you again for spending so much time on my question.

    It is not problem at all, I am happy to help! :)

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

    Good luck with your development!

    Best regards,
    Karl

Related