How does the Peripherals tool in S32CT works?

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

How does the Peripherals tool in S32CT works?

Jump to solution
336 Views
simon98
Contributor III

Hi, recently i worked on a project sample following this guide:

https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Interacting-with-Digital-Inputs-Outputs-on...

Using MBDT v1.5 and the S32K358EVB-Q289 i followed the guide step by step and in the end nothing worked because there aren't any step that explain if and how to configure the PortContainer and the PortPin in the Port configuration component of the Peripherals tool.

After a couple of try i ended up with a project that finally worked (is about a green blinking led and a blue led that turns on/off when i press the SW0).

I tried to play with the S32K config tool to get familiar with it and i discovered that in Peripherals tool, in PortContainer configuration, if a don't specify the PortPin of the button SW0 the application works as well: if i press the button the blue led lights up and so on… But, if i don't configure the green led's PortPin for example, it doesn't blink anymore…

So the question is: How does the Peripherls tool work? Why, in this case, for the button SW0 the PortPin configuration has no influence on the application while the led's one yes?

I attach the project zipped

Thanks

Simon

Tags (4)
0 Kudos
Reply
1 Solution
290 Views
dragostoma
NXP Employee
NXP Employee

Hi, @simon98,

I notice that you mentioned that you are using hardware board S32K358EVB-Q289. We offer support for the S32K358-Q172 version, as I see it is also set in the model you attached. Most likely there are differences between the 2 versions of the boards, which can cause the problem you encounter with the pins.

As a reference for the use of Port and Pins tabs, I leave attached some community threads that can help you clarify this information:

1. https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/189...

2. https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Pin-configuration-on-the-new-MBDT-versi...

 

Most likely there is a discrepancy between the configuration of the hardware board selected in the model (S32K358-Q172) and the hardware board you want to use (S32K358-Q289), more precisely the routing of the switches and LEDs pins.

I have validated your application on a configuration perhaps closer to the board you are using, namely S32K388-Q289, and your model works correctly: the GREEN LED always toggles and the BLUE LED toggles only when the SW0 switch is pressed. So you can take this configuration as a reference.

dragostoma_0-1726745493989.png

I recommend you to check the configuration of the pins in the schematic related to the board you are using because there are most likely discrepancies.

 

Let us know about your progress.

Best regards,

Dragos

View solution in original post

0 Kudos
Reply
1 Reply
291 Views
dragostoma
NXP Employee
NXP Employee

Hi, @simon98,

I notice that you mentioned that you are using hardware board S32K358EVB-Q289. We offer support for the S32K358-Q172 version, as I see it is also set in the model you attached. Most likely there are differences between the 2 versions of the boards, which can cause the problem you encounter with the pins.

As a reference for the use of Port and Pins tabs, I leave attached some community threads that can help you clarify this information:

1. https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT1-5-DIO-and-PWM-not-working/m-p/189...

2. https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Pin-configuration-on-the-new-MBDT-versi...

 

Most likely there is a discrepancy between the configuration of the hardware board selected in the model (S32K358-Q172) and the hardware board you want to use (S32K358-Q289), more precisely the routing of the switches and LEDs pins.

I have validated your application on a configuration perhaps closer to the board you are using, namely S32K388-Q289, and your model works correctly: the GREEN LED always toggles and the BLUE LED toggles only when the SW0 switch is pressed. So you can take this configuration as a reference.

dragostoma_0-1726745493989.png

I recommend you to check the configuration of the pins in the schematic related to the board you are using because there are most likely discrepancies.

 

Let us know about your progress.

Best regards,

Dragos

0 Kudos
Reply