Problem about AUTOSAR MPC5746R MCAL4.0

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

Problem about AUTOSAR MPC5746R MCAL4.0

1,346 Views
qiaodeng
Contributor II

Hi,

     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,

Qiao

Labels (1)
Tags (2)
0 Kudos
Reply
3 Replies

1,011 Views
petervlna
NXP TechSupport
NXP TechSupport

Hi,

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.

Peter

0 Kudos
Reply

1,011 Views
qiaodeng
Contributor II

Hi Peter,

   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.

Qiao

0 Kudos
Reply

1,011 Views
petervlna
NXP TechSupport
NXP TechSupport

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.

0 Kudos
Reply