S32K Autosar MCAL - Issue with MCU setting

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

S32K Autosar MCAL - Issue with MCU setting

跳至解决方案
5,800 次查看
cbhavi
Contributor III

Hello,

I am generating and building a custom S32K project with Autosar MCAL by generating config in EB-Tresos. The frequency of the crystal connected to the XTAL pins is 16MHz. However, when i change the value of SOSC Frequency in EB-Tresos to this value, there is an error that comes up with regard to HSRUN Clock Frequency. However this feature is not available in the S32K118.

If I ignore the issue and use the generated config, the code doesnt run as expected. Unwanted interrupts and runaway code.

Attached are the screenshots indicating the issue.

Request you support to solve this issue.

0 项奖励
回复
1 解答
5,767 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi @cbhavi ,
Could you try this way:
Open Resource module and change ResourceSubderivative to another derivative (e.g s32k142): 

cuongnguyenphu_0-1651803422118.png

Then go back to Mcu module configure to change the error value by press on the button calculate HSRUN value:

cuongnguyenphu_1-1651803653924.png

After that, you change ResourceSubderivative back to S32K118

在原帖中查看解决方案

0 项奖励
回复
2 回复数
5,768 次查看
cuongnguyenphu
NXP Employee
NXP Employee

Hi @cbhavi ,
Could you try this way:
Open Resource module and change ResourceSubderivative to another derivative (e.g s32k142): 

cuongnguyenphu_0-1651803422118.png

Then go back to Mcu module configure to change the error value by press on the button calculate HSRUN value:

cuongnguyenphu_1-1651803653924.png

After that, you change ResourceSubderivative back to S32K118

0 项奖励
回复
5,741 次查看
cbhavi
Contributor III
Thank you, cuongnguyenphu.
 
 This workaround helped.
0 项奖励
回复