To support S32k148EVB on S32K14X_MCAL4_2_RTM_1_0_0

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

To support S32k148EVB on S32K14X_MCAL4_2_RTM_1_0_0

1,560 Views
english0815
Contributor I

As we known, the software package S32K14X_MCAL4_2_RTM_1_0_0 is built to support S32K144 EVB by default.

How can I modify it to support S32K148EVB ?

Thanks.

0 Kudos
Reply
7 Replies

1,430 Views
cuongnguyenphu
NXP Employee
NXP Employee

Hi @english0815 ,
I checked again and this project config for MCU module is wrong.
Then I create a new project with tested MCU module for you.
You can refer my MCU config or follow User manual which is attached in doc folder of MCU module in installation package to config as you own

0 Kudos
Reply

722 Views
bahar
Contributor I

Hello, firstly thank you this, sample_app_mcal_148. 

Actually, I'm still a newbie at Autosar. So i want to compile this project on the Tresos IDE and test on the S32K148 board. How exactly should I proceed once I download the sample? Because when i directly import the project to Tresos, i couldn't load MCAL modules.

Best regards.

0 Kudos
Reply

1,525 Views
cuongnguyenphu
NXP Employee
NXP Employee

Hi @english0815 ,
You can use my attached project to work with S32k148EVB.
If you want to modify it from S32K144 EVB, you can change ResourceSubderivative in EBTresos to S32K148 in Resource module.

cuongnguyenphu_0-1646223042278.png


Then modify other modules that you need in EBT (ADC, FEE, PWM...).
Finally, use linker file that I attached in my project:
toolchains\autosar_flash.gld, toolchains\autosar_flash.icf, autosar_flash.ld (This is linker files for S32K148 target)

0 Kudos
Reply

1,103 Views
AbhishekK
Contributor II
Hello #cuongnguyenphu
Can you Please share me the sample Application for s32k144 Evb (S32K14X_MCAL4_2_RTM_1_0_0) .
I have gone through NXP website .I am unable to find the above Package.
0 Kudos
Reply

1,093 Views
mikedoidge
NXP Employee
NXP Employee

Hello @namnguyenviet, can you confirm if this example project is part of the RTD for S32K1xx? If not, do you know where to locate it?

Thanks

Mike

0 Kudos
Reply

1,085 Views
namnguyenviet
NXP Employee
NXP Employee

Hi @mikedoidge 

The S32K14X_MCAL4_2_RTM_1_0_0 is the legacy MCAL rather than the RTD, which supports AUTOSAR 4.4 and above. The example is included in the package. Since it's an older version (the latest one is S32K14X_MCAL4_2_RTM_1_0_4), customer needs to create a ticket in support.nxp.com in order to grant the access to it.

Best Regards,

Nam

0 Kudos
Reply

1,469 Views
english0815
Contributor I

Hi @cuongnguyenphu ,

I integrate your sample_app_mcal_148 with MCAL driver (S32K14X_MCAL4_2_RTM_1_0_0) and then build it on NXP S32 DS. 

There are something wrong on system clock generator module (SCG).

I tried to debug it and found out that it fall into PLL status loop check like below.

=============================================================

Mcu_Init(&McuModuleConfiguration);

Mcu_InitClock(McuClockSettingConfig_0);

while ( MCU_PLL_LOCKED != Mcu_GetPllStatus() )
{
/* wait until all enabled PLLs are locked */
}

=============================================================

Does the clock setting of s32k144 is the same to s32k148?

Thanks for any suggestion.

0 Kudos
Reply