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.
已解决! 转到解答。
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"
2. Click to Add icon to create a new Post Build Variant. For your demand, at least 2 Post Build Variant should be created.
Choose Variant Criterions tab. Add a criterion, then add new criterion textual representation in the right
Back to Predefined Variants tab. Choose corresponding variant criterion for each Post Build variant point.
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)
4. In EcucPostbuildVariantRef tab, add your recent created Post Build Variants.
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.
After that, you can choose different value for that node in each variant.
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?.
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"
2. Click to Add icon to create a new Post Build Variant. For your demand, at least 2 Post Build Variant should be created.
Choose Variant Criterions tab. Add a criterion, then add new criterion textual representation in the right
Back to Predefined Variants tab. Choose corresponding variant criterion for each Post Build variant point.
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)
4. In EcucPostbuildVariantRef tab, add your recent created Post Build Variants.
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.
After that, you can choose different value for that node in each variant.
Hi, namnguyenviet
I followed this guide but failed.
MCU: S32G399
EB tresos Studio 29.0.0
Does EB need license to support S32G399 multi variants configuration?
Hello,
I have the variants added, and I am planning to remove them.
When I try to do so by deleting the post build selectable variants I get around a 100 errors, quoting that there is no post build variant selection. How do I resolve this?
Thank you,
Aditya
Hi, @aditya_barve ,
Please can you share screenshots and log or the error and provide more information related to it to understand the issue.
Thank you. Best regards.
-Mehul Patel
Hello:
I created a project by EB with variant "X03_A2" and then I config another variant named "X04_B3" follow the step as above , but after that there are many error that weren't there before as shown in the figure, so I have two questions:
1.when I add new variant ,why the configuration doesn't synchronize
2. Is there some way to synchronize configuration by default
Looking forward your reply.Thanks!