<?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 Help with build error in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Help-with-build-error/m-p/739911#M1716</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm looking for insight to a build error when attempting to build a simple model using the MBDT from NXP.&amp;nbsp; I believe the Code Warrior installation is complete, and environmental variables are declared.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=== Build (Elapsed: 16 sec) ===&lt;BR /&gt; ### Starting build procedure for model: Simple&lt;BR /&gt; ### Generating code into build folder: C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&lt;BR /&gt; ### Invoking Target Language Compiler on Simple.rtw&lt;BR /&gt; ### Using System Target File: C:\MBDToolbox\mbdtbx_9s12zvc\mbdtbx_s12zvc\mbdtbx_s12zvc\mbd_s12zvc.tlc&lt;BR /&gt; exception id Simulink:Engine:CallbackEvalErr message Error evaluating 'InitFcn' callback of block_diagram 'Simple'. ### Loading TLC function libraries&lt;BR /&gt; ### Initial pass through model to cache user defined code&lt;BR /&gt; ### Caching model source code&lt;BR /&gt; ### Writing header file Simple.h&lt;BR /&gt; .&lt;BR /&gt; ### Writing header file Simple_types.h&lt;BR /&gt; ### Writing header file rtwtypes.h&lt;BR /&gt; ### Writing source file Simple.c&lt;BR /&gt; ### Writing header file Simple_private.h&lt;BR /&gt; .&lt;BR /&gt; ### Writing source file mbd_main.c&lt;BR /&gt; ### Writing header file tim_param.h&lt;BR /&gt; ### Writing header file clk_init.h&lt;BR /&gt; ### Writing header file vector.h&lt;BR /&gt; ### Writing header file isr_lvl.h&lt;BR /&gt; .&lt;BR /&gt; ### Writing source file isr_lvl.c&lt;BR /&gt; ### Writing header file mc9s12zvc.h&lt;BR /&gt; ### TLC code generation complete.&lt;BR /&gt; ### Using toolchain: MinGW64 v4.x | gmake (64-bit Windows)&lt;BR /&gt; ### 'C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw\Simple.mk' is up to date&lt;BR /&gt; ### Building 'Simple': C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Simple.mk all&lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;cd . &lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;if "" == "" (C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Simple.mk all ) else (C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Simple.mk ) &lt;BR /&gt; C:\PROGRA~3\MATLAB\SUPPOR~1\R2017b\3P778C~1.INS\MINGW_~1.INS\bin/gcc -c -ansi -pedantic -Wno-long-long -fwrapv -O0 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=Simple -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MBDToolbox/mbdtbx_9s12zvc/Simple_mbd_rtw -IC:/MBDToolbox/mbdtbx_9s12zvc -IC:/PROGRA~1/MATLAB/R2015b/extern/include -IC:/PROGRA~1/MATLAB/R2015b/simulink/include -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/ert -o "Simple.obj" "Simple.c"&lt;BR /&gt; gmake: *** [Simple.obj] Error 1 &lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;echo The make command returned an error of 2 &lt;BR /&gt; The make command returned an error of 2 &lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;An_error_occurred_during_the_call_to_make &lt;BR /&gt; 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, &lt;BR /&gt; operable program or batch file.&lt;BR /&gt; ### Build procedure for model: 'Simple' aborted due to an error.&lt;BR /&gt; MException with properties:&lt;BR /&gt; identifier: 'RTW:buildProcess:fatalBuildError'&lt;BR /&gt; message: 'Error(s) encountered while building "Simple":…'&lt;BR /&gt; cause: {}&lt;BR /&gt; stack: [20x1 struct]&lt;BR /&gt; Build process completed successfully&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Apr 2018 13:31:54 GMT</pubDate>
    <dc:creator>andrewweiss</dc:creator>
    <dc:date>2018-04-17T13:31:54Z</dc:date>
    <item>
      <title>Help with build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Help-with-build-error/m-p/739911#M1716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I'm looking for insight to a build error when attempting to build a simple model using the MBDT from NXP.&amp;nbsp; I believe the Code Warrior installation is complete, and environmental variables are declared.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=== Build (Elapsed: 16 sec) ===&lt;BR /&gt; ### Starting build procedure for model: Simple&lt;BR /&gt; ### Generating code into build folder: C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&lt;BR /&gt; ### Invoking Target Language Compiler on Simple.rtw&lt;BR /&gt; ### Using System Target File: C:\MBDToolbox\mbdtbx_9s12zvc\mbdtbx_s12zvc\mbdtbx_s12zvc\mbd_s12zvc.tlc&lt;BR /&gt; exception id Simulink:Engine:CallbackEvalErr message Error evaluating 'InitFcn' callback of block_diagram 'Simple'. ### Loading TLC function libraries&lt;BR /&gt; ### Initial pass through model to cache user defined code&lt;BR /&gt; ### Caching model source code&lt;BR /&gt; ### Writing header file Simple.h&lt;BR /&gt; .&lt;BR /&gt; ### Writing header file Simple_types.h&lt;BR /&gt; ### Writing header file rtwtypes.h&lt;BR /&gt; ### Writing source file Simple.c&lt;BR /&gt; ### Writing header file Simple_private.h&lt;BR /&gt; .&lt;BR /&gt; ### Writing source file mbd_main.c&lt;BR /&gt; ### Writing header file tim_param.h&lt;BR /&gt; ### Writing header file clk_init.h&lt;BR /&gt; ### Writing header file vector.h&lt;BR /&gt; ### Writing header file isr_lvl.h&lt;BR /&gt; .&lt;BR /&gt; ### Writing source file isr_lvl.c&lt;BR /&gt; ### Writing header file mc9s12zvc.h&lt;BR /&gt; ### TLC code generation complete.&lt;BR /&gt; ### Using toolchain: MinGW64 v4.x | gmake (64-bit Windows)&lt;BR /&gt; ### 'C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw\Simple.mk' is up to date&lt;BR /&gt; ### Building 'Simple': C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Simple.mk all&lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;cd . &lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;if "" == "" (C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Simple.mk all ) else (C:\PROGRA~1\MATLAB\R2015b\bin\win64\gmake -f Simple.mk ) &lt;BR /&gt; C:\PROGRA~3\MATLAB\SUPPOR~1\R2017b\3P778C~1.INS\MINGW_~1.INS\bin/gcc -c -ansi -pedantic -Wno-long-long -fwrapv -O0 -DONESTEPFCN=1 -DTERMFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTID01EQ=0 -DMODEL=Simple -DNUMST=1 -DNCSTATES=0 -DHAVESTDIO -IC:/MBDToolbox/mbdtbx_9s12zvc/Simple_mbd_rtw -IC:/MBDToolbox/mbdtbx_9s12zvc -IC:/PROGRA~1/MATLAB/R2015b/extern/include -IC:/PROGRA~1/MATLAB/R2015b/simulink/include -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/src/ext_mode/common -IC:/PROGRA~1/MATLAB/R2015b/rtw/c/ert -o "Simple.obj" "Simple.c"&lt;BR /&gt; gmake: *** [Simple.obj] Error 1 &lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;echo The make command returned an error of 2 &lt;BR /&gt; The make command returned an error of 2 &lt;BR /&gt; &lt;BR /&gt; C:\MBDToolbox\mbdtbx_9s12zvc\Simple_mbd_rtw&amp;gt;An_error_occurred_during_the_call_to_make &lt;BR /&gt; 'An_error_occurred_during_the_call_to_make' is not recognized as an internal or external command, &lt;BR /&gt; operable program or batch file.&lt;BR /&gt; ### Build procedure for model: 'Simple' aborted due to an error.&lt;BR /&gt; MException with properties:&lt;BR /&gt; identifier: 'RTW:buildProcess:fatalBuildError'&lt;BR /&gt; message: 'Error(s) encountered while building "Simple":…'&lt;BR /&gt; cause: {}&lt;BR /&gt; stack: [20x1 struct]&lt;BR /&gt; Build process completed successfully&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Apr 2018 13:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Help-with-build-error/m-p/739911#M1716</guid>
      <dc:creator>andrewweiss</dc:creator>
      <dc:date>2018-04-17T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help with build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Help-with-build-error/m-p/739912#M1717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/andrewweiss"&gt;andrewweiss&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From what I can tell the problem is with the environment variable for CW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please run this command in matlab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;TABLE class="j-table jiveBorder" style="border: 1px solid #c6c6c6; padding-left: 60px;" width="100%"&gt;&lt;THEAD style="padding-left: 60px;"&gt;&lt;/THEAD&gt;&lt;TBODY style="padding-left: 60px;"&gt;&lt;TR style="padding-left: 60px;"&gt;&lt;TD style="padding-left: 60px;"&gt;&lt;STRONG&gt;setenv('CW_TOOL','C:\Freescale\CW MCU v11.0')&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then try again to build your model. If it works (like it did on my end), you will need to edit your environment variable to set it to&amp;nbsp;&lt;STRONG&gt;C:\Freescale\CW MCU v11.0 &lt;/STRONG&gt;instead of&amp;nbsp;&lt;STRONG&gt;C:/Freescale/"CW MCU v11.0"&amp;nbsp;&lt;/STRONG&gt;(like it is now from what I can see from your screen capture).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if you encounter further issues with this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S.: I have attached the log for the successful build.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2018 08:37:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Help-with-build-error/m-p/739912#M1717</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2018-04-18T08:37:10Z</dc:date>
    </item>
  </channel>
</rss>

