s32k312 tempsense

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

s32k312 tempsense

1,555 Views
brian1212
Contributor II

Hi

I'm trying to use Temperature sensor of S32K312 MCU

However, the temperature sensor register value is not displayed as T32.

brian1212_0-1715594749153.png

And, If trying to write Tempsense Register ETS_EN(0x4037C000), Os fault occur.

How can i get to Tempsense Register??

Tags (1)
0 Kudos
Reply
4 Replies

1,532 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Can you help us share which RTD/IDE version are you using?

Are you using any NXP examples? Or is this a custom application?

Please, let us know.

0 Kudos
Reply

1,522 Views
brian1212
Contributor II

I'm using Mcal_NXP_S32K3xx-3.0.0_P01_HF01_Aut03 and GreenHills, Autosar Platform.

I'm trying to use it in an application, not example. 

If call the mcal function 'Adc_TempSenseSetPowerMode(ADC_NORMAL_MODE); to enable the temperatrue sensor, Os fault occur, writing TempSense register Address.

brian1212_0-1715642239100.png

 

 

 

 

 

 
0 Kudos
Reply

1,515 Views
Daniel-Aguirre
NXP TechSupport
NXP TechSupport

Hi,

Thanks for your feedback. Can you help us verify if using RTD v3.0.0 P07 provides a different outcome? We understand that there P07 is the more stable version on regards of RTD v3.0.0.

As for the function, have you followed the specified under the ADC UM?

DanielAguirre_0-1715694929458.png

To confirm that the prerequisites are fulfilled.

Also, on regards of other Autosar configuration platforms (which we assume GreenHills is), we do not have the required tools to provide the support. For that, we can recommend contacting the respective GreenHills support team. Can you help us confirm if S32DS provides the same outcome?

Please, let us know.

0 Kudos
Reply

1,491 Views
brian1212
Contributor II

Hi

I 've resoleved this problem setting PRTN1_COFB2_CLKEN[REQ95] to Turn ON.

brian1212_0-1715836376828.png

 

brian1212_1-1715836398274.png

 

Thank you for your advice, I will Try to calculate Temperature.