Can I get the temperature of the nrf5340 SOC via sd_temp_get just like nrf52 ?
Can I get the temperature of the nrf5340 SOC via sd_temp_get just like nrf52 ?
Hi, I have taken over this case while Simon is on leave. Sorry for the long delay.
The '0' you read could perhaps be because the measurement is not yet ready. Have you tried using nrfx_temp_result_get()? Or have you tried nrfx_temp_measure() in blocking mode?
Simon said:You can also use the function mpsl_temperature_get()
Have you tried this suggestion? From the documentation: "This function will block until the temperature measurement is done."
Please also feel free to share your code. We could try to reproduce this behavior.
Hi, I have taken over this case while Simon is on leave. Sorry for the long delay.
The '0' you read could perhaps be because the measurement is not yet ready. Have you tried using nrfx_temp_result_get()? Or have you tried nrfx_temp_measure() in blocking mode?
Simon said:You can also use the function mpsl_temperature_get()
Have you tried this suggestion? From the documentation: "This function will block until the temperature measurement is done."
Please also feel free to share your code. We could try to reproduce this behavior.