AUTOSAR MCAL Configuration

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

AUTOSAR MCAL Configuration

3,283 Views
ShuxinHuang
Contributor I

Hi! I am using EB tresos to configure MCAL for MPC5744P. Now the requirement is to use the same version of MCAL configuration for two projects. Both projects use MPC5744P as the main control chip, most of functions are identical in the projects, only some functions are different, and these functions have conflicts on the corresponding pins. So the question is how to cut different functions of the same pin through one version of settings in EB tresos, or is it possible to switch some setting files through system constants in EB tresos?

0 Kudos
Reply
5 Replies

3,268 Views
cuongnguyenphu
NXP Employee
NXP Employee

Hi @ShuxinHuang ,
If my understanding is correct, you're requesting using multi variant config in EB Tresos.
Please refer this thread to setup variants for Port module in your config: 
Solved: MCAL Variant Handling in EB Tresos - NXP Community

After configured, you will see on the top of each module, the variant parameter can be selectable:cuongnguyenphu_1-1662522194603.png

Untitled.png


Select each variant and config Port module as per variant.
Then after generated, you will get different config set generated in separate file:

cuongnguyenphu_2-1662522437888.png

 

cuongnguyenphu_3-1662522469732.png


Using these config corresponding with for projects

 

cuongnguyenphu_0-1662522171512.png

 

0 Kudos
Reply

3,259 Views
ShuxinHuang
Contributor I

Thank you for your reply@cuongnguyenphu,I refer this thread to setup variants for Port module in my config: Solved: MCAL Variant Handling in EB Tresos - NXP Community

but I found there is no EcuC module in the MCAL pulgins installation path of MPC5744P, so the pulgins file of EB tresos installation path also have no EcuC module. And finally, I can't using multi variant config in EB Tresos.

pulgins截图.jpg

0 Kudos
Reply

3,255 Views
cuongnguyenphu
NXP Employee
NXP Employee

Which version MCAL for MPC5744 that you're using ?

0 Kudos
Reply

3,250 Views
ShuxinHuang
Contributor I

This Version

Version.jpg

0 Kudos
Reply

3,239 Views
cuongnguyenphu
NXP Employee
NXP Employee

This package for MPC57xP series didn't support for multi variant.
In this case I think you should do it manually:
1. Generate 1 config set of Port module, then change all the file name (e.g add postfix to them)
2. Config another config set for Port module, in this case you must change name of all parameter (e.g PortConfigSet, PortContainer, PortPin.. differently with previous config in step 1). Then generate this config set.
3. Add output files from these 2 step into your project makefile. Then you can use the config sets whenever you need.

0 Kudos
Reply