<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simulink build error on fresh install in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1593613#M8019</link>
    <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;Incase this helps someone I found out that the problem was I added a&amp;nbsp;mbd_s32k_make_rtw_hook file.&lt;/P&gt;&lt;P&gt;My goal was to just add a hook that would throw an error if I was in the wrong directory when I started a build. The switch case for before make is just empty, so it shouldn't do anything, but evidently it somehow breaks something. If anyone know how to either fix this problem, or find another way to throw an error on wrong build directory it would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
    <pubDate>Mon, 06 Feb 2023 04:58:14 GMT</pubDate>
    <dc:creator>mgriffith</dc:creator>
    <dc:date>2023-02-06T04:58:14Z</dc:date>
    <item>
      <title>Simulink build error on fresh install</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1260631#M5963</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am having issues with Simulink not building my model, I get a long list of errors. I have deleted and reinstalled to check if that work but I still get the same errors.&lt;/P&gt;&lt;P&gt;I have attached the full build log.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Poley_0-1618238050179.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142033iBB476A85DDC502BF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Poley_0-1618238050179.png" alt="Poley_0-1618238050179.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 12 Apr 2021 14:34:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1260631#M5963</guid>
      <dc:creator>Poley</dc:creator>
      <dc:date>2021-04-12T14:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error on fresh install</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1261004#M5968</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/183842"&gt;@Poley&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;From the attached logged I've noticed that the toolbox has been installed in a path that contains some spaces:&lt;/P&gt;
&lt;PRE class="bp-text bp-text-plain hljs bp-is-scrollable" tabindex="0"&gt;&lt;CODE class="bp-text-code txt"&gt; Warning:Environment Variable GCC_S32K_TOOL was not explicitly set. The generated code will be compiled using the default GCC compiler C:\Users\&lt;FONT color="#FF0000"&gt;Matt P&lt;/FONT&gt;\AppData\Roaming\MathWorks\&lt;FONT color="#FF0000"&gt;MATLAB Add-Ons&lt;/FONT&gt;\Toolboxes\NXP_MBDToolbox_S32K1xx\tools\gcc-6.3-arm32-eabi&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;So let's try installing the toolbox in a path without spaces like: "C:\MATLABAddOns"&lt;/P&gt;
&lt;P&gt;You can specify to MATLAB which path to choose for toolbox installation by going to Preferences -&amp;gt; Add-Ons and type your desired path. Please use one with no spaces.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="mariuslucianand_1-1618293835601.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/142098i24E175E4C35CF6A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="mariuslucianand_1-1618293835601.png" alt="mariuslucianand_1-1618293835601.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Hope this helps,&lt;/P&gt;
&lt;P&gt;Marius&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 06:04:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1261004#M5968</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2021-04-13T06:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error on fresh install</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1261141#M5972</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/72088"&gt;@mariuslucianand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Unfortunately changing to a directory with no spaces has not worked.&lt;/P&gt;&lt;P&gt;I have MATLAB and add on's installed on my &lt;LI-EMOJI id="lia_anguished-face" title=":anguished_face:"&gt;&lt;/LI-EMOJI&gt; drive now and get the build log attached still&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 13 Apr 2021 09:02:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1261141#M5972</guid>
      <dc:creator>Poley</dc:creator>
      <dc:date>2021-04-13T09:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error on fresh install</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1593481#M8018</link>
      <description>&lt;P&gt;I'm also getting the same warning, but my install path doesn't have any spaces:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Environment Variable GCC_S32K_TOOL was not explicitly set. The generated code will be compiled using the default GCC compiler C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\tools\gcc-6.3-arm32-eabi&lt;/LI-CODE&gt;&lt;P&gt;&lt;SPAN&gt;I have been building just fine until today and now make is throwing the following error:&lt;/SPAN&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;C:\Users\mgrif\Documents\eMatrix\Software\RNA_BMS\RNA_BMS\Projects\BMS\Software\BMS_KML_mbd_rtw&amp;gt;"C:\Program Files\MATLAB\R2021b\bin\win64\gmake" -f BMS_KML.mk COPY_MDLREF_INCLUDES=0 GENERATE_ERT_S_FUNCTION=0 INCLUDE_MDL_TERMINATE_FCN=1 COMBINE_OUTPUT_UPDATE_FCNS=1 MULTI_INSTANCE_CODE=0 INTEGER_CODE=0 OPTS="-DTID01EQ=0" Cleaning... RELATIVE_PATH_TO_ANCHOR is .. ==== Removing object files from build directory ==== | was unexpected at this time. gmake: *** [SetupFiles] Error 255&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also have a lot of other make related warnings:&lt;/P&gt;&lt;LI-CODE lang="c"&gt;Warning: Found legacy make variables |&amp;gt;START_MDLREFINC_EXPAND_INCLUDES&amp;lt;|, |&amp;gt;END_MDLREFINC_EXPAND_INCLUDES&amp;lt;|, |&amp;gt;MODELREF_INC_PATH&amp;lt;| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |&amp;gt;S_FUNCTIONS&amp;lt;|, |&amp;gt;S_FUNCTIONS_OBJ&amp;lt;| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |&amp;gt;SHARED_BIN_DIR&amp;lt;|, |&amp;gt;SHARED_LIB&amp;lt;|, |&amp;gt;SHARED_SRC&amp;lt;|, |&amp;gt;SHARED_SRC_DIR&amp;lt;| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: The following preprocessor macros
 MODEL_HAS_DYNAMICALLY_LOADED_SFCNS 
are specified in the component's build information (RTW.BuildInfo) but the specified template makefile
C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf 
 does not contain the token |&amp;gt;DEFINES_OTHER&amp;lt;|.
Warning: Found legacy make variables |&amp;gt;START_MDLREFINC_EXPAND_INCLUDES&amp;lt;|, |&amp;gt;END_MDLREFINC_EXPAND_INCLUDES&amp;lt;|, |&amp;gt;MODELREF_INC_PATH&amp;lt;| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |&amp;gt;S_FUNCTIONS&amp;lt;|, |&amp;gt;S_FUNCTIONS_OBJ&amp;lt;| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: Found legacy make variables |&amp;gt;SHARED_BIN_DIR&amp;lt;|, |&amp;gt;SHARED_LIB&amp;lt;|, |&amp;gt;SHARED_SRC&amp;lt;|, |&amp;gt;SHARED_SRC_DIR&amp;lt;| in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf. The variables are no longer required. You can remove the variables.
Warning: The make variables |&amp;gt;COPY_DEST_DIR&amp;lt;|, |&amp;gt;GCC_TARGET_ASM_OPTS&amp;lt;|, |&amp;gt;GCC_TARGET_CC_OPTS&amp;lt;|, |&amp;gt;GCC_TARGET_LIB_OPTS&amp;lt;|, |&amp;gt;GCC_TARGET_LINK_OPTS&amp;lt;|, |&amp;gt;GHS_TARGET_ASM_OPTS&amp;lt;|, |&amp;gt;GHS_TARGET_CC_OPTS&amp;lt;|, |&amp;gt;GHS_TARGET_LIB_OPTS&amp;lt;|, |&amp;gt;GHS_TARGET_LINK_OPTS&amp;lt;|, |&amp;gt;IAR_TARGET_ASM_OPTS&amp;lt;|, |&amp;gt;IAR_TARGET_CC_OPTS&amp;lt;|, |&amp;gt;IAR_TARGET_LIB_OPTS&amp;lt;|, |&amp;gt;IAR_TARGET_LINK_OPTS&amp;lt;|, |&amp;gt;LINKER_FILE_NAME&amp;lt;|, |&amp;gt;MC_LIB_NAME&amp;lt;|, |&amp;gt;SDK_TARGET_MCU&amp;lt;|, |&amp;gt;TARGET_COMPILER&amp;lt;|, |&amp;gt;TARGET_FPU&amp;lt;|, |&amp;gt;TARGET_MCU&amp;lt;|, |&amp;gt;TARGET_MEMORY&amp;lt;|, |&amp;gt;TBX_SRCS&amp;lt;| are used in the template makefile C:\Users\mgrif\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k\mbd_s32k.tmf, but they are not defined. You may have a mismatch between the system target file and the template makefile.&lt;/LI-CODE&gt;&lt;P&gt;I would welcome any help. I don't understand why I have been able to build before. Could a change to my top level model cause this?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Feb 2023 21:49:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1593481#M8018</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2023-02-04T21:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error on fresh install</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1593613#M8019</link>
      <description>&lt;P&gt;Hey everyone,&lt;/P&gt;&lt;P&gt;Incase this helps someone I found out that the problem was I added a&amp;nbsp;mbd_s32k_make_rtw_hook file.&lt;/P&gt;&lt;P&gt;My goal was to just add a hook that would throw an error if I was in the wrong directory when I started a build. The switch case for before make is just empty, so it shouldn't do anything, but evidently it somehow breaks something. If anyone know how to either fix this problem, or find another way to throw an error on wrong build directory it would be greatly appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Mon, 06 Feb 2023 04:58:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error-on-fresh-install/m-p/1593613#M8019</guid>
      <dc:creator>mgriffith</dc:creator>
      <dc:date>2023-02-06T04:58:14Z</dc:date>
    </item>
  </channel>
</rss>

