Hello m.benderradji@outlook.fr,
Firstly, let's clarify some things. In this response you mentioned 3 different toolboxes. The one for Kinetis, MPC574xP and MBDT for S32K MCU 2018.R1. The slsfnagctlr.p fix it is only applicable to the Kinetis and MPC574xP toolboxes which were not tested on the 2017b Matlab's version because were released before 2017 and the Matlab' API has changed.
Please excuse me but probably I din't provided the right fix link for Kinetis. Please follow the next thread HotFix: MBD Toolbox for Kinetis.
For MPC574x the file structure should be smth like this {Toolbox install dir}\mbdtbx_pnt\mbdtbx_pnt\mscripts. Do not create folders, just try finding the ones specified.
every toolbox has a file that adds all the required files in Matlab's path. For Mpc574xP it is called mbd_pnt_path.m. If you use the MPC574xP please run that.
Now, the problem you are facing is a compiler problem, and apparently you are trying to run an example on BLDC motor for S32K144 board and it is not relevant to the one related with slsfnagctlr.p. Please consider sending me the hole log because I can not figure it out just by the last lines.
Best Regards,
Marius