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