S32DS function group

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

S32DS function group

269件の閲覧回数
PINKMAN
Contributor III

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.

 

0 件の賞賛
返信
1 返信

245件の閲覧回数
VaneB
NXP TechSupport
NXP TechSupport

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.

VaneB_0-1750356329799.png

VaneB_0-1750356681492.png

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.

VaneB_2-1750356388267.png

VaneB_5-1750356538112.png

VaneB_4-1750356516280.png

 

BR, VaneB

0 件の賞賛
返信