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.
Hello,
I couldn't understand Chinese. What is the indicated error?
Hello,
The errors translate to English as below:
Level:Error
Resource:Sources
Issue: Genrate code failed
Origin:Peripherals
Type: Tool Problems
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
Hello,
After adding this code to script, the error has disappeared.
Thanks a lot!
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
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.