S32K Autosar MCAL - Issue with MCU setting

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

S32K Autosar MCAL - Issue with MCU setting

Jump to solution
1,239 Views
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 Kudos
1 Solution
1,206 Views
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

View solution in original post

0 Kudos
2 Replies
1,207 Views
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 Kudos
1,180 Views
cbhavi
Contributor III
Thank you, cuongnguyenphu.
 
 This workaround helped.
0 Kudos