SENT Protocol Support in S32K3 MBDT

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

SENT Protocol Support in S32K3 MBDT

ソリューションへジャンプ
807件の閲覧回数
Deskwork4130
Contributor I

Is there support for decoding SENT protocol within S32K3 MBDT via FlexIO? I know FlexIO on S32K3 supports this, but I didn't see anything in the MBDT library.

0 件の賞賛
返信
1 解決策
737件の閲覧回数
georgevictor
NXP Employee
NXP Employee

Hi, @Deskwork4130,

Currently, the Model-Based Design Toolbox (MBDT) for S32K3xx does not include support for the Sent  component but we will take it into consideration for our future planning, however, taking into consideration that we include the entire RTD drivers package, you can still use the component in our toolbox:

  • You first need to add and configure the Sent component in the external configuration tool.
  • Now that the configuration of the component is completed, call its API functions for implementing your application, you could start by using the Custom Code blocks provided by Simulink:

 

georgevictor_3-1704444767749.png

 

 

  • Please note that you will also need to include the header files for the component to be able to use specific functions, for this, use the Model Header block.
  • The System Outputs block is used to insert C code in a specific section or subsystem of the application. The System Initialize adds the code inside the Initialization section of the model step, as the blocks used inside the Initialization subsystem, which are executed only one at startup. 
  • Also, you will need to call the component initialization API. For this use our Board initialization feature:

 georgevictor_2-1704444651702.png

 

Moreover, you have a good example for your use in s32k3xx_isr_custom_code_ebt, where the ICU component is used with custom code.

You can also check the following topic How to use your own C code in our Toolbox (Battery Management System example). Here you will find an additional method of using custom code inside our toolbox.

 

Best regards,

Victor

元の投稿で解決策を見る

0 件の賞賛
返信
1 返信
738件の閲覧回数
georgevictor
NXP Employee
NXP Employee

Hi, @Deskwork4130,

Currently, the Model-Based Design Toolbox (MBDT) for S32K3xx does not include support for the Sent  component but we will take it into consideration for our future planning, however, taking into consideration that we include the entire RTD drivers package, you can still use the component in our toolbox:

  • You first need to add and configure the Sent component in the external configuration tool.
  • Now that the configuration of the component is completed, call its API functions for implementing your application, you could start by using the Custom Code blocks provided by Simulink:

 

georgevictor_3-1704444767749.png

 

 

  • Please note that you will also need to include the header files for the component to be able to use specific functions, for this, use the Model Header block.
  • The System Outputs block is used to insert C code in a specific section or subsystem of the application. The System Initialize adds the code inside the Initialization section of the model step, as the blocks used inside the Initialization subsystem, which are executed only one at startup. 
  • Also, you will need to call the component initialization API. For this use our Board initialization feature:

 georgevictor_2-1704444651702.png

 

Moreover, you have a good example for your use in s32k3xx_isr_custom_code_ebt, where the ICU component is used with custom code.

You can also check the following topic How to use your own C code in our Toolbox (Battery Management System example). Here you will find an additional method of using custom code inside our toolbox.

 

Best regards,

Victor

0 件の賞賛
返信