Can somebody clarify with this issue regarding port error.
how can i restore it to defaults
Solved! Go to Solution.
Hi, @paul_ephraim_13,
The PortPin Id tab represents the ID of the port pin, as the name suggests, and can be seen more easily as the index of all the pins in the Port tab. The error you encounter is due to the fact that the mentioned Id is greater than the total number of pins. For example, if we have configured 2 PortContainers and each of them has 5 PortPins, then the PortPin Ids will be from 1 to 10. If you try to set PortPin Id 11 to one of the pins, then the error will show as in the image presented by you, because the number of pins is 10.
In your case, I think that you most likely deleted one of the pins and the order of the IDs was altered. Make sure that the PortPin Id is not greater than the total number of pins and the error will disappear.
Another recommendation would be not to modify the mex file that contains the default configuration, i.e. S32K312-Q172.mex, as I can see in your screenshot, but it is recommended to modify the mex file of the model you are trying to configure. When you open a model set on S32 Configuration Tools, or create a new one, the mex file with the default configuration from the devices folder is copied next to this model. After this copying, you can change the mex file next to the model by clicking on the Configure button from any block in the MBDT library, and you can make configuration changes without changing the default mex file. Thus, if you want to return to the default settings, by deleting the mex file next to the model and reopening it, the default mex file will be copied again next to the model.
Hope this clears up your problem.
Best regards,
Dragos
So sir within the range of port pin ids can we assign the portpin_id numbers randomly ?
Hi, @paul_ephraim_13,
The PortPin Id tab represents the ID of the port pin, as the name suggests, and can be seen more easily as the index of all the pins in the Port tab. The error you encounter is due to the fact that the mentioned Id is greater than the total number of pins. For example, if we have configured 2 PortContainers and each of them has 5 PortPins, then the PortPin Ids will be from 1 to 10. If you try to set PortPin Id 11 to one of the pins, then the error will show as in the image presented by you, because the number of pins is 10.
In your case, I think that you most likely deleted one of the pins and the order of the IDs was altered. Make sure that the PortPin Id is not greater than the total number of pins and the error will disappear.
Another recommendation would be not to modify the mex file that contains the default configuration, i.e. S32K312-Q172.mex, as I can see in your screenshot, but it is recommended to modify the mex file of the model you are trying to configure. When you open a model set on S32 Configuration Tools, or create a new one, the mex file with the default configuration from the devices folder is copied next to this model. After this copying, you can change the mex file next to the model by clicking on the Configure button from any block in the MBDT library, and you can make configuration changes without changing the default mex file. Thus, if you want to return to the default settings, by deleting the mex file next to the model and reopening it, the default mex file will be copied again next to the model.
Hope this clears up your problem.
Best regards,
Dragos