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 ?
It does not seem like this is supported through the Zephyr API, but you can use the NRFX API: https://github.com/nrfconnect/sdk-hal_nordic/blob/v1.5.1/nrfx/drivers/include/nrfx_temp.h.
I created a temperature sample using this API, check it out here: https://github.com/simon-iversen/sdk-nrf/tree/temperature/samples/peripheral/temperature
Best regards,
Simon
It does not seem like this is supported through the Zephyr API, but you can use the NRFX API: https://github.com/nrfconnect/sdk-hal_nordic/blob/v1.5.1/nrfx/drivers/include/nrfx_temp.h.
I created a temperature sample using this API, check it out here: https://github.com/simon-iversen/sdk-nrf/tree/temperature/samples/peripheral/temperature
Best regards,
Simon