Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs
This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

How to use nrfx_temp driver?

How do you use the nrfx_temp driver in a project?  I'm on SDK 17.0.2, segger, and an NRF52840-DK board.  I see the old HAL temp sensor is deprecated and it seems to always return zero.

I tried adding C:\work\nRF Projects\nRF5_SDK_Current\modules\nrfx\drivers\src\nrfx_temp.c to my project but it's contents are turned off with an #ifdef.  Various forum posts say don't use it ... but the old HAL version is marked deprecated and, as I said, always seems to return zero.

Related