hello ,expert:
there a question about function group.
in pins perspective,i could create a new function group,and then will generate a different cfg in the generate file.which means that siul2_Port_cfg.h would have two Siul2_Port_Ip_PinSettingsConfig, i could use it according my requirement.
but in peripheral perspective,when i creat or remove a component in a function group,and component in another function group will be creat or remove,
I want to know if my method is correct and whether I can do it this way.
Hi @PINKMAN
As you mentioned, the "Functional Groups" feature in the S32 Configuration Tools allows the tool to generate configurations for all defined functional groups simultaneously and consolidate them into a single output file. For example, arrays of pin configuration structures are generated in Siul2_Port_Ip_Cfg.c. In your application code, you are responsible for selecting the appropriate structure and passing it to the initialization function based on the active functional group.
Please refer to the images below, which show a sample code snippet demonstrating how the structure names change depending on the selected functional group and how to use them accordingly.
Regarding Functional Groups in the Peripherals perspective, they are not isolated in the same way as in the Pins perspective. When you add or remove a component (e.g., LPUART, SPI) in one functional group, it may also affect other groups. However, it is possible to move a driver configuration from one functional group to another, which can help prevent the driver from being removed across all groups.
Please note that I have not personally tested this implementation, so I recommend verifying it in your setup.
BR, VaneB