Hello everyone,
I am using Tresos 24.0.1 and S32K14X_MCAL_4.3_RTM_P1_HF2_1.0.1 for MCAL configurations
Hello @shudhamatinarha
I would like to answer your question:
- In the Port autosar specification have mentioned that the Multiplicity of PortConfigSet is one, so user cannot add one more PortConfigSet.
- Anyway, user can use PostbuildVariants and create multiple variants. Please follow these steps below(these step is for ADC, but user can do the same with PORT) to have it.
By referring to multiple variants, I mean a project can generate code with different variants, configured in EcuC. Here is the steps in GUI:
1. In Sidebar tab, choose Edit Selectable PostbuildVariants
2. Add a new PredefinedVariant
3. In Variant Criterion, add criterion and value representation
4. Close the Edit Selectable PostbuildVariants. In Ecuc, enable the EcucPostBuildVariant, then choose the reference variant selected
5. In Adc -> AdcHwUnit, add a new HwUnit, then edit the Variant condition in Adc Hardware Unit
6. For each variant, choose the corresponding Value:
7. After that, for each variant, different Adc Hardware Unit value can be chosen.
Code generated are different between each files:
Best regards,
Hung.
Thank you hungnguyenphi.