I'm trying to compile and load an example from the MBDToolbox for the S32K144 and I get the following error message:
### Created executable: gpio_s32k144.motGenerating S-record..."C:\Users\DSparks\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\tools\gcc-6.3-arm32-eabi/bin/arm-none-eabi-objcopy" -O srec gpio_s32k144.elf gpio_s32k144.motCreated S-record: gpio_s32k144.motBuilding target all*** Created executable: gpio_s32k144.mot### Successful completion of build procedure for model: gpio_s32k144Exception id MATLAB:FileIO:InvalidFid message Invalid file identifier. Use fopen to generate a valid file identifier. Failure in mbd_s32k_make_rtw: Invalid file identifier. Use fopen to generate a valid file identifier.
This is a fresh install of the toolbox and I have added the GCC path to windows. It seems to be building correctly so I'm not sure what the issue is. I haven't changed anything in the model except changing the OpenSDA drive to the appropriate letter but I tried it both ways and same error. I tried fixed step "discreet" and "automatic" in simulink options but no change.
In the Code Generation tab of Simulink options, Generate makefile is checked and the command is:
Full build text is attached.