MCAL Variant Handling in EB Tresos

cancel
Showing results for 
Search instead for 
Did you mean: 

MCAL Variant Handling in EB Tresos

Jump to solution
2,740 Views
rijil_kp
Contributor III

Is there any way to handle different Hardware variant in NXP MCAL layer?. Basically I want to keep MCAL config(ADC,POrt,DIO ect modules) set 1 for Hardware 1 and MCAL config(ADC,POrt,DIO ect modules) set 2 for Hardware 2.

I am using S32K148 controller and its MCAL package. The Tool is EB Tresos.

My requirement is to have Two different MCAL config sets for different Hardware. During run time I should be able to load or initialize one of this configuration based on Hardware detection.

1 Solution
2,424 Views
namnguyenviet
NXP Employee
NXP Employee

Hi,

In order to create HW variant, you can follow these steps:

1. On the right panel of EB display, choose Sidebar tab, then double click to "Edit Selectable PostbuildVariants"

step 1.JPG

2. Click to Add icon to create a new Post Build Variant. For your demand, at least 2 Post Build Variant should be created.

step 2.JPG

Choose Variant Criterions tab. Add a criterion, then add new criterion textual representation in the right

step 2_1.JPG

Back to Predefined Variants tab. Choose corresponding variant criterion for each Post Build variant point.

step 2_2.JPG

3. Close Edit Selectable PostBuildVariants tab, and save your settings. Open EcuC module. Enable the EcuCPostBuildVariant, then choose selected Post Build Variant Ref (default variant)

step 3.JPG

4. In EcucPostbuildVariantRef tab, add your recent created Post Build Variants.

step 4.JPG

5. You will see variant option available in your top of EB display. Choose each variant to configure. Each node marked with "V" letter can be configured as variant option. Right click to the node, then choose "Edit Variant condition". Add corresponding criterion. You only need to add criterion one time, the other criterion for other variant of this node will be filled automatically.

step 5.JPG

After that, you can choose different value for that node in each variant.

View solution in original post

5 Replies
2,425 Views
rijil_kp
Contributor III

Thank you very much for a very detailed explanation,

One problem with my project is that I configure only Port,AdC,Dio with EB tresos. EcuM,EcuC,etc I configure with Davinci configurator. I usually use import the I/O configuration from EB tresos to Davinci.

So How can I get the this variant configuration in Davinci also?.

0 Kudos
2,425 Views
namnguyenviet
NXP Employee
NXP Employee

Unfortunately, we don't have DaVinci Configurator for AUTOSAR integration. It will be better to directly ask DaVinci about this case.

0 Kudos
2,425 Views
rijil_kp
Contributor III

I am using S32K148 controller and its MCAL package. The Tool is EB Tresos.

0 Kudos
2,425 Views
namnguyenviet
NXP Employee
NXP Employee

Hi,

In order to create HW variant, you can follow these steps:

1. On the right panel of EB display, choose Sidebar tab, then double click to "Edit Selectable PostbuildVariants"

step 1.JPG

2. Click to Add icon to create a new Post Build Variant. For your demand, at least 2 Post Build Variant should be created.

step 2.JPG

Choose Variant Criterions tab. Add a criterion, then add new criterion textual representation in the right

step 2_1.JPG

Back to Predefined Variants tab. Choose corresponding variant criterion for each Post Build variant point.

step 2_2.JPG

3. Close Edit Selectable PostBuildVariants tab, and save your settings. Open EcuC module. Enable the EcuCPostBuildVariant, then choose selected Post Build Variant Ref (default variant)

step 3.JPG

4. In EcucPostbuildVariantRef tab, add your recent created Post Build Variants.

step 4.JPG

5. You will see variant option available in your top of EB display. Choose each variant to configure. Each node marked with "V" letter can be configured as variant option. Right click to the node, then choose "Edit Variant condition". Add corresponding criterion. You only need to add criterion one time, the other criterion for other variant of this node will be filled automatically.

step 5.JPG

After that, you can choose different value for that node in each variant.

2,426 Views
namnguyenviet
NXP Employee
NXP Employee

Hi,

As far as I might known, S32DS is unable to handle different HW variant in MCAL layer. Is that EB tresos or other configuration tool that you're mentioning about?