I am using AUTOSAR MPC5746R MCAL4.0 swv: 1.0.1 RTM_HF5 to develop a project. Now I have configured the module like Adc, Dio using EB tresos, which has generated many configuration file. But I don't know how to compile these .c and .h files to generate the elf file and download it to my MCU. What kind of compiler should I use? I have installed S32 Design Studio and GreenHills. Is there any sample project for MCAL?
Thanks in advance,
I recommend you to use greenhills compiler.
AUTOSAR itself contain example projects.
You have to include your *c and *h files to you compiler and set all required precompile settings for compiler.
I didn't find any example project in the MPC5746R MCAL4.0 file, there are only plugins. And could you please describe the required precompile settings more specifically?
Really appreciate for your help.
The examples are part of MCAL package.
After compilation compiler will ask you to defines precompile symbols, etc...
It vary project from project, so there is no general recommendation. Just follow messages from compiler and configure it according to your needs.