SENT Protocol Support in S32K3 MBDT

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

SENT Protocol Support in S32K3 MBDT

Jump to solution
508 Views
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 Kudos
Reply
1 Solution
438 Views
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

View solution in original post

0 Kudos
Reply
1 Reply
439 Views
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 Kudos
Reply