Get CPU temperature with nRF5340

Hi,

The CPU temperature module is located in the network CPU in the case of nRF5340. I have read this thread : Zephyr API to read the nRF5340 die temperature - Nordic Q&A - Nordic DevZone - Nordic DevZone (nordicsemi.com)

If I understood well, it gives the examples to flash in the app cpu and the net cpu. But in my case, the net cpu is flashed along with my app cpu, because the program of the net cpu is made from the main code I provide (hence the merged_domains.hex file right?). 

Now if I use the code of the app core to ask the cpu net, it doesn't work, so it seems the app code is tied to the net code provided in the samples. But if I use the net code, and flash the net core with it, it will override the previous code right? 

Is there a way to retreive die temperature from the application only with the nRF5340? 

Related