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.
Untitled.png
- 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
hungnguyenphi_0-1601368762817.jpeg
2. Add a new PredefinedVariant
hungnguyenphi_1-1601368762902.jpeg
3. In Variant Criterion, add criterion and value representation
hungnguyenphi_2-1601368762983.jpeg
4. Close the Edit Selectable PostbuildVariants. In Ecuc, enable the EcucPostBuildVariant, then choose the reference variant selected
hungnguyenphi_3-1601368763037.png
5. In Adc -> AdcHwUnit, add a new HwUnit, then edit the Variant condition in Adc Hardware Unit
hungnguyenphi_4-1601368763188.jpeg
6. For each variant, choose the corresponding Value:
hungnguyenphi_5-1601368763221.png
7. After that, for each variant, different Adc Hardware Unit value can be chosen.
hungnguyenphi_6-1601368763296.jpeg
hungnguyenphi_7-1601368763366.jpeg
Code generated are different between each files:
hungnguyenphi_8-1601368763573.jpeg
Best regards,
Hung.