Peripherals configuration

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

Peripherals configuration

跳至解决方案
1,223 次查看
pagdav
Contributor III

Dear all,

is it possible to create two different configurations for the same peripheral in order to change the configuration in real time?

Thank you for your support.

标记 (1)
0 项奖励
回复
1 解答
1,052 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pagdav 

Thank you for sharing your .mex file. Now I understand better the context of your error. 

When you create a new functional group in the peripherals tool, in your case "BOARD_InitPeripherals_2", it is also necessary to create a new functional in the pins tool, which has to be named PortContainerName_PeripheralFunctionalGroupName. If you do not change the Port Container name (PortContainer_0) in the new Functional group, then the new functional group created in the pins tool has to be named "PortContainer_0_BOARD_InitPeripherals_2".

在原帖中查看解决方案

0 项奖励
回复
7 回复数
1,212 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pagdav 

The S32 Configuration Tools in S32 Design Studio contains a feature called 'Functional groups'. With this, you can configure several options for functions and code generation. Each setting applies to the selected function. You can specify the generated function name, select the core (for multicore processors only)that is affecting the generated source code, or write a function description (this description is generated in the C file). You can also add, copy, and remove functional groups as needed.

Check the following post. It has information related to the topic that might be useful. 

S32DS parallel Peripheral configuration in one project

 

B.R.

VaneB

0 项奖励
回复
1,197 次查看
pagdav
Contributor III

Hi @VaneB,

thanks for your support.

I've created a new Functional Group with a different configuration, as described in your reply. In the new Functional Group I get the following issue on Siul2_Port driver because the name of Pins Functional Group is not equal to the sum of Siul2_Port configuration name and Peripheral Functional Group name:

Issue: Naming of the Functional Group in the Pins Tool should be: PortContainerName_PeripheralFunctionalGroupName.

Do you have an example project?

Best Regards,

pagdav

0 项奖励
回复
1,193 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pagdav 

You can find more details about this feature in the S32DS Help -> Help Contents area

Unfortunately, we do not have any examples available where functional groups were used. 

0 项奖励
回复
1,167 次查看
pagdav
Contributor III

Hi @VaneB,

in the S32DS Help there aren't enough details to solve my problem.

Best regards,

@pagdav

1,130 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pagdav 

Could you share all the configurations made? So I can test this from my side.

0 项奖励
回复
1,093 次查看
pagdav
Contributor III

Hi @VaneB,

in attachment you can find the configuration file (TestFunctionalGroups.mex).

Toolchain used:

  • IDE: S32 Design Studio for S32 Platform Version 3.5 Build ID 231219 (Update 9)
  • Real-Time Drivers: S32K3XX Real-Time Drivers AUTOSAR R21-11 Version 4.0.0 P01
  • FS26 device Real-Time Drivers: S32K3XX FS26 AUTOSAR R21-11 Version 3.0.0

Best regards,

@pagdav

0 项奖励
回复
1,053 次查看
VaneB
NXP TechSupport
NXP TechSupport

Hi @pagdav 

Thank you for sharing your .mex file. Now I understand better the context of your error. 

When you create a new functional group in the peripherals tool, in your case "BOARD_InitPeripherals_2", it is also necessary to create a new functional in the pins tool, which has to be named PortContainerName_PeripheralFunctionalGroupName. If you do not change the Port Container name (PortContainer_0) in the new Functional group, then the new functional group created in the pins tool has to be named "PortContainer_0_BOARD_InitPeripherals_2".

0 项奖励
回复