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

nrf52840 temperature sensor

Hi, 

I just want to make sure about this post

https://devzone.nordicsemi.com/f/nordic-q-a/42170/is-temp-anomaly-31-applicable-to-nrf52832-qfaa-0b

static __INLINE void nrf_temp_init(void)
{
    /**@note Workaround for PAN_028 rev2.0A anomaly 31 - TEMP: Temperature offset value has to be manually loaded to the TEMP module */
    *(uint32_t *) 0x4000C504 = 0;
}

It seems like that workaround was for a kind of a old chipset so I don't need to call nrf_temp_init() and just read through sd_temp_get() if I use nrf52840.

Also, it is not available to call this since it is accessing directly to the register with softdevice enabled.

Is that right?

Thanks!

Related