I am facing an issue with port configurations. I have grouped my signals using the pin tool, and the names for the pin tools should be in the format (PortContainer + pin functional group). The issue is that (VS_0) has only one pin, while (VS_1) has two pins. When I add the second pin to (VS_1), a pin is also added to (VS_0). It seems like they must have the same number of pins. How can I fix this?
2: I can only select one group to be called by default, and it is routed to global settings. Can you explain what effect this has?
I have attached my project for you to review.
S32K344
RTD 4.0
已解决! 转到解答。
Hi @Ayaz,
1. For pin configuration, you can simply create various functional groups from the Pins tab, and the configuration will be generated:
I believe you cannot have more than one PortContainerSet, since it is Port AUTOSAR specification, please refer to this community post: PORT configuration in MCAL - NXP Community.
I've attached a project where the three different RGB pins were configured in different groups, and blink depending on the configured group by calling Siul2_Port_Ip_Init() with the respective structure.
2. This limitation is by design. Only one functional group can contain the default initialization code, the others are intended as alternatives or to be called additionally later.
For example also in the clocks tool, you need to have one default init configuration and the others are alternatives.
If you'd like to have the initialization split in multiple functions or controlled by some login in your code, you can omit calling default initialization completely and just call the functions that you need in your application module directly.
Wth this approach, you might also want to un-set the [B] icon (boot init) checking in the Problems view:
If the [B] icon is unset, the cross-dependencies from other tools will be checked to be fulfilled by any functional groups, not just by "default init" one.
Best regards,
Julián
Hi @Ayaz,
1. For pin configuration, you can simply create various functional groups from the Pins tab, and the configuration will be generated:
I believe you cannot have more than one PortContainerSet, since it is Port AUTOSAR specification, please refer to this community post: PORT configuration in MCAL - NXP Community.
I've attached a project where the three different RGB pins were configured in different groups, and blink depending on the configured group by calling Siul2_Port_Ip_Init() with the respective structure.
2. This limitation is by design. Only one functional group can contain the default initialization code, the others are intended as alternatives or to be called additionally later.
For example also in the clocks tool, you need to have one default init configuration and the others are alternatives.
If you'd like to have the initialization split in multiple functions or controlled by some login in your code, you can omit calling default initialization completely and just call the functions that you need in your application module directly.
Wth this approach, you might also want to un-set the [B] icon (boot init) checking in the Problems view:
If the [B] icon is unset, the cross-dependencies from other tools will be checked to be fulfilled by any functional groups, not just by "default init" one.
Best regards,
Julián