s32k312 tempsense

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

s32k312 tempsense

3,124 次查看
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.pngbrian1212_0-1715594749153.png

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

How can i get to Tempsense Register??

标记 (1)
0 项奖励
回复
4 回复数

3,101 次查看
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 项奖励
回复

3,091 次查看
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.pngbrian1212_0-1715642239100.png

 

 

 

 

 

 
0 项奖励
回复

3,084 次查看
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.pngDanielAguirre_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 项奖励
回复

3,060 次查看
brian1212
Contributor II

Hi

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

brian1212_0-1715836376828.pngbrian1212_0-1715836376828.png

 

brian1212_1-1715836398274.pngbrian1212_1-1715836398274.png

 

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