S32K3 How to change RTD autosar version from 1.0.0 to 2.0.0

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

S32K3 How to change RTD autosar version from 1.0.0 to 2.0.0

1,290 Views
HardyUp
Contributor I

Hi,

Ideveloped a project based on RTD Autosar version 1.0.0.(A adc driver module is included.)

Now I  upgrade the RTD Autosar version to 2.0.0 and open original project then generate code.

In Folder generate/include:

Adc_Sar_Ip_BOARD_InitPeripherals_PBcfg.h  change to Adc_Sar_Ip_PBcfg.h

Adc_Sar_Ip_Cfg.h/Adc_Sar_Ip_CfgDefines.h  are also modified(It's normal).

In Folder generate/src

Adc_Sar_Ip_BOARD_InitPeripherals_PBcfg.c change to Adc_Sar_Ip_PBcfg.c

 

The problem is in Adc_Sar_Ip_PBcfg.c, it still include the original header file:Adc_Sar_Ip_BOARD_InitPeripherals_PBcfg.h,please let me know how to resolve it.

 

PS: A lots of other modules files are modified, how can we make a little modification after upgrading RTD version.

0 Kudos
6 Replies

1,243 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

I couldn't understand Chinese. What is the indicated error?

0 Kudos

1,241 Views
HardyUp
Contributor I

Hello,

The errors translate to English as below:

Level:Error

Resource:Sources

Issue: Genrate code failed

Origin:Peripherals

Type: Tool Problems

 

 

0 Kudos

1,228 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

You can try to increase the code generation timeout, by going to e.g. C:\NXP\S32DS.3.4\eclipse\s32ds.ini”:

Then modify the timeout value

-Dcom.nxp.swtools.codegenscript.timeout=60000

Best Regards,

Nam

0 Kudos

1,211 Views
HardyUp
Contributor I

Hello,

After adding this code to script, the error has disappeared.

Thanks a lot!

0 Kudos

1,281 Views
namnguyenviet
NXP Employee
NXP Employee

Hello,

You can create a new project, which uses RTD 2.0.0, then import the .mex file from your old project. We are working on finding a more convenience way.

Best Regards,

Nam

0 Kudos

1,256 Views
HardyUp
Contributor I

Hi Namnguyenviet,

    Thanks for your reply. Now I create a new project based on example project.

When I config MCAL, sometimes it can generate code. After I switching the main window to the C/C++ window and switch back to Peripherals Config Window again, It shows "Tool Problem" error cause can not generate code.

Can you explain why? The error shows in attached picture.

HardyUp_0-1651805781767.png

 

0 Kudos