ADC implementation inside TF-M

Hi, is there any reference to implement ADC sampling inside TF-M?

I see all the reference there are for implementing ADC in non-secure application. Please point to any documentation or sample application that runs ADC in TF-M instead of non-secure application.

Parents Reply
  • Hi Dejans,

    Thank you for the response.

    The problem might be that you try to integrate Zephyr sample with TF-M. TF-M is not Zephyr application and Zephyr API cannot be used inside TF-M (including secure service where you would use saadc). Instead, you would need to use nrfx driver directly. You can find examples in modules/hal/nordic/nrfx/samples/src/nrfx_saadc or online at nrfx_saadc.

    --> Got it, this confirm I cannot use zephyr APIs inside the TF-M.

    Thank you for referring to the NRFX lib, will test it and let you know.

Children
Related