Pin configuration on the new MBDT version (1.5.0)

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

Pin configuration on the new MBDT version (1.5.0)

Jump to solution
438 Views
Alfredo_Rubio
Contributor II

We are migrating our development to the new version MBDT for S32K3 family (1.5.0).

We need to configure some pins for different functions such as LCU output and found that the new version of the S32config tools (1.7) doesn’t works as the previous one.

We the that under the MCAL group a new PORT group has been created and the old SIUL2-PORT under DRIVERS has been removed. In the previous version whenever a new pin is added in the PIN VIEW. The PORT group configuration is not updated.

What is the right procedure to add or change a pin configuration in this new version.

Best regards.

0 Kudos
Reply
1 Solution
419 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Alfredo_Rubio ,

I highly recommend you check out the Release Notes of the latest release, version 1.5.0. I will summarize the new approach between Port and Pins:

The toolbox offers support for configuring the on-board pins using the Port component, from the Peripherals Tool, together with the Pins Tool. The two must be used together as required by the implementation of the RTD (Real-Time Drivers) package that MBDT integrates. The configuration of the pins must be made according to the following information:

For each functional group inside the Pins Tool, a Port container must be configured inside the Port component. Please see the screenshots below, the first one taken from the Pins Tool, and the second one from the Port component configuration inside the Peripherals Tool of a .mex file.

dragostoma_0-1722586205998.png

dragostoma_1-1722586227530.png

By inserting the PortPin Mscr inside the PortPin configuration, the settings inside the Port component for that particular pin will be automatically populated as configured inside the Pins Tool. The name of the Pins Tool functional group must respect the following convention: PortContainer Name + ‘_MBDT’, ‘MBDT’ representing the name of the Functional Group from the Peripherals Tool, where all the components of the project are configured.

Please check one of the default configurations provided inside the toolbox for an example on how Port and Pins must be configured.

Additionally, you can find information related to Pins and Port tab in S32 Configuration Tool at the following Community thread link.

 

Please let us know if you have other issues.

Best regards,

Dragos

View solution in original post

3 Replies
405 Views
Alfredo_Rubio
Contributor II

Thanks for the information.  Now we are able to configure the pins in the correct way

We have an additional problem that is that PWM periode is not updated. All PWM outputs are frozen to the default DT configured in the ConfigTool. 

We are unsing EMIOS0 channels 1 and 2.

Do you have any idea on this subject.

 

0 Kudos
Reply
391 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Alfredo_Rubio ,

I am glad that you managed to correctly configure the Port and Pins flow. 

Now related to the problem with the PWM period, in the toolbox there is a model that addresses the modification of both the Duty Cycle and the Period: s32k344_pwm_independent_ebt.

The model has 2 PWM channels with a variable Duty Cycle and Period:

dragostoma_3-1722599609844.png

The results will look like this:

dragostoma_4-1722599640630.png

 

But when you change the Period of the PwmChannel_0 to 4000, as in the following picture:

dragostoma_5-1722599675691.png

The results will look like this:

dragostoma_1-1722599462033.png

 

By changing the value of the period in the second case, the signal parameters change can be observed. Following the example of this model, you can change the period of the signals configured in your application.

I recommend you to try this approach of using the period change of a PWM signal. Let us know if there are any problems.

 

Hope this helps,

Dragos

0 Kudos
Reply
420 Views
dragostoma
NXP Employee
NXP Employee

Hi, @Alfredo_Rubio ,

I highly recommend you check out the Release Notes of the latest release, version 1.5.0. I will summarize the new approach between Port and Pins:

The toolbox offers support for configuring the on-board pins using the Port component, from the Peripherals Tool, together with the Pins Tool. The two must be used together as required by the implementation of the RTD (Real-Time Drivers) package that MBDT integrates. The configuration of the pins must be made according to the following information:

For each functional group inside the Pins Tool, a Port container must be configured inside the Port component. Please see the screenshots below, the first one taken from the Pins Tool, and the second one from the Port component configuration inside the Peripherals Tool of a .mex file.

dragostoma_0-1722586205998.png

dragostoma_1-1722586227530.png

By inserting the PortPin Mscr inside the PortPin configuration, the settings inside the Port component for that particular pin will be automatically populated as configured inside the Pins Tool. The name of the Pins Tool functional group must respect the following convention: PortContainer Name + ‘_MBDT’, ‘MBDT’ representing the name of the Functional Group from the Peripherals Tool, where all the components of the project are configured.

Please check one of the default configurations provided inside the toolbox for an example on how Port and Pins must be configured.

Additionally, you can find information related to Pins and Port tab in S32 Configuration Tool at the following Community thread link.

 

Please let us know if you have other issues.

Best regards,

Dragos