Hello comodo77,
The problem is most likely that it does not find libwinpthread-1.dll and can't build the executable using gcc6.3.
An option would be to manually add {MBDT_ROOT}\tools\gcc-6.3-arm32-eabi\bin to PATH system environment variable - to test this you could run the setenv command from MATLAB terminal.
Another option would be to update the following files:
{MBDT_ROOT}\mbdtbx_s32k14x\mbdtbx_s32k14x\mbd_s32k14_make_rtw.p [modify]
{MBDT_ROOT}\mbdtbx_s32k\mscripts\utils\mbd_s32k_add_gcc_to_path.p [add]
Please let us know if this fixes your issues.
Kind regards,
Razvan.