AnsweredAssumed Answered

Invalid file identifier Error

Question asked by sparkee on Aug 28, 2019
Latest reply on Sep 10, 2019 by sparkee

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.mot
Generating 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.mot
Created S-record: gpio_s32k144.mot
Building target all
*** Created executable: gpio_s32k144.mot
### Successful completion of build procedure for model: gpio_s32k144
Exception 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: 

mbd_s32k_make_rtw COPY_MDLREF_INCLUDES=0

 

Full build text is attached.

 

Thank you

Outcomes