<?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  in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927304#M3432</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Can you have a look ?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Oct 2019 13:23:10 GMT</pubDate>
    <dc:creator>Daniel_Popa</dc:creator>
    <dc:date>2019-10-16T13:23:10Z</dc:date>
    <item>
      <title>Simulink build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927301#M3429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;When I build FOC_TC file. I am getting&amp;nbsp;'FOC_TC' aborted due to an error. Error is like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;### Generating code into build folder: C:Users49159DownloadsM7_2018.R1M7_2018.R1FOC_TC_mbd_rtw&lt;BR /&gt;Failure in mbd_s32k_config_target_cbk: Property assignment is not allowed when the object is empty. Use subscripted assignment to create an array element.&lt;BR /&gt;Parameter precision loss occurred for 'UpperLimit' of 'FOC_TC/S32K14x EVB/FastLoopControl/ D-Axis Current Controller/Saturation/Enabled/Saturation'. The parameter's value cannot be represented exactly using the run-time data type. A small quantization error has occurred. To disable this warning or error, in the Configuration Parameters &amp;gt; Diagnostics &amp;gt; Data Validity pane, set the 'Detect precision loss' option in the Parameters group to 'none'. [19 similar]&lt;BR /&gt;Component:Simulink | Category:Block warning Suppress&lt;BR /&gt;Converting 'Reusable function' setting of subsystem 'FOC_TC/S32K14x EVB/FastLoopControl' to 'Nonreused function' because a child system has either been explicitly marked as nonreused, or is used in a configuration that must be nonreused. Please generate the HTML report during code generation and see the "Subsystems" section for more information&lt;BR /&gt;Component:Simulink | Category:Block warning&lt;BR /&gt;### Invoking Target Language Compiler on FOC_TC.rtw&lt;BR /&gt;### Using System Target File: C:Users49159AppDataRoamingMathWorksMATLAB Add-OnsToolboxesNXP_MBDToolbox_S32K1xx(4)mbdtbx_s32kmbd_s32k.tlc&lt;BR /&gt;### Using Model-Based Design Toolbox for S32K1xx Series 4.1.0 (R2017b-R2019a) 22-Jul-2019&lt;BR /&gt;### Loading TLC function libraries&lt;BR /&gt;### Generating TLC interface API for custom data&lt;BR /&gt;### Initial pass through model to cache user defined code&lt;BR /&gt;### Caching model source code&lt;BR /&gt;...............................................................................&lt;BR /&gt;...............................................................................&lt;BR /&gt;...............................................................................&lt;BR /&gt;.................................&lt;BR /&gt;### Writing header file FOC_TC_types.h&lt;BR /&gt;### Writing source file FOC_TC.c&lt;BR /&gt;.&lt;BR /&gt;### Writing header file FOC_TC_private.h&lt;BR /&gt;### Writing header file FOC_TC.h&lt;BR /&gt;### Writing header file rtwtypes.h&lt;BR /&gt;### Writing source file FOC_TC_data.c&lt;BR /&gt;### Writing source file mbd_main.c&lt;BR /&gt;### TLC code generation complete.&lt;BR /&gt;........### Creating HTML report file FOC_TC_codegen_rpt.html&lt;BR /&gt;Warning: Directory already exists. [5 similar]&lt;BR /&gt;.&lt;BR /&gt;### Processing Template Makefile: C:Users49159AppDataRoamingMathWorksMATLAB Add-OnsToolboxesNXP_MBDToolbox_S32K1xx(4)mbdtbx_s32kmbd_s32k.tmf&lt;BR /&gt;### FOC_TC.mk which is generated from C:Users49159AppDataRoamingMathWorksMATLAB Add-OnsToolboxesNXP_MBDToolbox_S32K1xx(4)mbdtbx_s32kmbd_s32k.tmf is up to date&lt;BR /&gt;### Building FOC_TC: .FOC_TC.bat&lt;BR /&gt; &lt;BR /&gt;C:Users49159DownloadsM7_2018.R1M7_2018.R1FOC_TC_mbd_rtw&amp;gt;set MATLAB=C:Program FilesMATLABR2018b &lt;BR /&gt; &lt;BR /&gt;C:Users49159DownloadsM7_2018.R1M7_2018.R1FOC_TC_mbd_rtw&amp;gt;"C:Program FilesMATLABR2018bbinwin64gmake" -f FOC_TC.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 ISPROTECTINGMODEL=NOTPROTECTING &lt;BR /&gt;Cleaning... &lt;BR /&gt;RELATIVE_PATH_TO_ANCHOR is .. &lt;BR /&gt;==== Removing object files from build directory ====&lt;BR /&gt;Compiler details : "C:Users49159DocumentsMATLABAdd-OnsToolboxesNXP_MBDToolbox_S32K1xxcodetoolsgcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O1 -g -gstrict-dwarf -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -D__FPU_PRESENT=1 -DSTART_FROM_FLASH -D__FPU_USED=1 -D__NVIC_PRIO_BITS=FEATURE_NVIC_PRIO_BITS -DERRATA_E9527 -o SetupFiles -DCPU_S32K144HFT0VLLT -I. -I.. -I.. -I"C:Program FilesMATLABR2018bsimulinkinclude" -I"C:Program FilesMATLABR2018bexterninclude" -I"C:Program FilesMATLABR2018brtwcsrc" -I"C:Program FilesMATLABR2018brtwclibsrc" -I"C:Program FilesMATLABR2018brtwcsrcext_modecommon" -I"C:Program FilesMATLABR2018brtwcsrcext_modetcpip" -I"C:Program FilesMATLABR2018brtwcsrcext_modeserial" -I"C:Program FilesMATLABR2018brtwcsrcext_modecustom" -IC:Users49159DownloadsM7_2018.R1M7_2018.R1 -IC:Users49159DownloadsM7_2018.R1M7_2018.R1FOC_TC_mbd_rtw -IC:PROGRA~1MATLABR2018bexterninclude -IC:PROGRA~1MATLABR2018bsimulinkinclude -IC:PROGRA~1MATLABR2018brtwcsrc -IC:PROGRA~1MATLABR2018brtwcsrcext_modecommon -IC:PROGRA~1MATLABR2018brtwcert -I"C:Users49159DocumentsMATLABAdd-OnsToolboxesNXP_MBDToolbox_S32K1xxcodetoolsgcc-6.3-arm32-eabi/arm-none-eabi/include" -I"./common" -I"./inc" -I"./src/clock/S32K1xx" -I"./src/sim/S32K144" -I"./src/power/S32K1xx" -I"./S32K144/include" -I"../common" -I"../inc" -I"../src/clock/S32K1xx" -I"../src/sim/S32K144" -I"../src/power/S32K1xx" -I"../S32K144/include" -I"../instrumented/common" -I"../instrumented/inc" -I"../instrumented/src/clock/S32K1xx" -I"../instrumented/src/sim/S32K144" -I"../instrumented/src/power/S32K1xx" -I"../instrumented/S32K144/include" &lt;BR /&gt;Assembler details : "C:Users49159DocumentsMATLABAdd-OnsToolboxesNXP_MBDToolbox_S32K1xxcodetoolsgcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -x assembler-with-cpp -DSTART_FROM_FLASH -o SetupFiles&lt;BR /&gt;Product: FOC_TC.mot &lt;BR /&gt;Build product type: executable&lt;BR /&gt;Building file startup_S32K144.o... &lt;BR /&gt;"C:Users49159DocumentsMATLABAdd-OnsToolboxesNXP_MBDToolbox_S32K1xxcodetoolsgcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -g -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -x assembler-with-cpp -DSTART_FROM_FLASH -o startup_S32K144.o startup_S32K144.s&lt;BR /&gt;Building file FOC_TC.o... &lt;BR /&gt;"C:Users49159DocumentsMATLABAdd-OnsToolboxesNXP_MBDToolbox_S32K1xxcodetoolsgcc-6.3-arm32-eabi/bin/arm-none-eabi-gcc" -c -c -mcpu=cortex-m4 -mthumb -mfloat-abi=hard -mfpu=fpv4-sp-d16 -O1 -g -gstrict-dwarf -mcpu=cortex-m4 -mfpu=fpv4-sp-d16 -mfloat-abi=hard -D__FPU_PRESENT=1 -DSTART_FROM_FLASH -D__FPU_USED=1 -D__NVIC_PRIO_BITS=FEATURE_NVIC_PRIO_BITS -DERRATA_E9527 -o FOC_TC.o -DCPU_S32K144HFT0VLLT -I. -I.. -I.. -I"C:Program FilesMATLABR2018bsimulinkinclude" -I"C:Program FilesMATLABR2018bexterninclude" -I"C:Program FilesMATLABR2018brtwcsrc" -I"C:Program FilesMATLABR2018brtwclibsrc" -I"C:Program FilesMATLABR2018brtwcsrcext_modecommon" -I"C:Program FilesMATLABR2018brtwcsrcext_modetcpip" -I"C:Program FilesMATLABR2018brtwcsrcext_modeserial" -I"C:Program FilesMATLABR2018brtwcsrcext_modecustom" -IC:Users49159DownloadsM7_2018.R1M7_2018.R1 -IC:Users49159DownloadsM7_2018.R1M7_2018.R1FOC_TC_mbd_rtw -IC:PROGRA~1MATLABR2018bexterninclude -IC:PROGRA~1MATLABR2018bsimulinkinclude -IC:PROGRA~1MATLABR2018brtwcsrc -IC:PROGRA~1MATLABR2018brtwcsrcext_modecommon -IC:PROGRA~1MATLABR2018brtwcert -I"C:Users49159DocumentsMATLABAdd-OnsToolboxesNXP_MBDToolbox_S32K1xxcodetoolsgcc-6.3-arm32-eabi/arm-none-eabi/include" -I"./common" -I"./inc" -I"./src/clock/S32K1xx" -I"./src/sim/S32K144" -I"./src/power/S32K1xx" -I"./S32K144/include" -I"../common" -I"../inc" -I"../src/clock/S32K1xx" -I"../src/sim/S32K144" -I"../src/power/S32K1xx" -I"../S32K144/include" -I"../instrumented/common" -I"../instrumented/inc" -I"../instrumented/src/clock/S32K1xx" -I"../instrumented/src/sim/S32K144" -I"../instrumented/src/power/S32K1xx" -I"../instrumented/S32K144/include" FOC_TC.c&lt;BR /&gt;In file included from FOC_TC.c:16:0:&lt;BR /&gt;FOC_TC.h:46:48: error: unknown type name 'SIM_Type'&lt;BR /&gt; static inline void SIM_HAL_SetAdcInterleaveSel(SIM_Type * base, uint8_t setting)&lt;BR /&gt; ^~~~~~~~&lt;BR /&gt;FOC_TC.h:46:65: error: unknown type name 'uint8_t'&lt;BR /&gt; static inline void SIM_HAL_SetAdcInterleaveSel(SIM_Type * base, uint8_t setting)&lt;BR /&gt; ^~~~~~~&lt;BR /&gt;FOC_TC.c: In function 'enable_FTM_PDB_ADC_triggeri':&lt;BR /&gt;FOC_TC.c:424:3: warning: implicit declaration of function 'PDB_DRV_LoadValuesCmd' [-Wimplicit-function-declaration]&lt;BR /&gt; PDB_DRV_LoadValuesCmd(0);&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;FOC_TC.c:426:3: warning: implicit declaration of function 'FTM_DRV_SetInitTriggerCmd' [-Wimplicit-function-declaration]&lt;BR /&gt; FTM_DRV_SetInitTriggerCmd(FTM3, true);&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;FOC_TC.c:426:29: error: 'FTM3' undeclared (first use in this function)&lt;BR /&gt; FTM_DRV_SetInitTriggerCmd(FTM3, true);&lt;BR /&gt; ^~~~&lt;BR /&gt;FOC_TC.c:426:29: note: each undeclared identifier is reported only once for each function it appears in&lt;BR /&gt;FOC_TC.c: In function 'FOC_TC_ADC1_IRQHandler':&lt;BR /&gt;FOC_TC.c:1072:31: error: 'FTM3' undeclared (first use in this function)&lt;BR /&gt; FTM_DRV_SetInitTriggerCmd(FTM3, false);&lt;BR /&gt; ^~~~&lt;BR /&gt;FOC_TC.c: In function 'FOC_TC_PDB1_IRQHandler':&lt;BR /&gt;FOC_TC.c:1152:31: error: 'FTM3' undeclared (first use in this function)&lt;BR /&gt; FTM_DRV_SetInitTriggerCmd(FTM3, true);&lt;BR /&gt; ^~~~&lt;BR /&gt;FOC_TC.c: In function 'FOC_TC_initialize':&lt;BR /&gt;FOC_TC.c:1360:3: warning: implicit declaration of function 'SIM_HAL_SetAdcInterleaveSel' [-Wimplicit-function-declaration]&lt;BR /&gt; SIM_HAL_SetAdcInterleaveSel(SIM, 0b0010);&lt;BR /&gt; ^~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;FOC_TC.c:1360:31: error: 'SIM' undeclared (first use in this function)&lt;BR /&gt; SIM_HAL_SetAdcInterleaveSel(SIM, 0b0010);&lt;BR /&gt; ^~~&lt;BR /&gt;gmake: *** [FOC_TC.o] Error 1&lt;BR /&gt;### Build procedure for model: 'FOC_TC' aborted due to an error.&lt;BR /&gt;Error(s) encountered while building "FOC_TC"&lt;BR /&gt;Component:Simulink | Category:Block diagram error&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HOW TO RESOLVE THIS ERROR?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 07:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927301#M3429</guid>
      <dc:creator>bhanu_kassel</dc:creator>
      <dc:date>2019-10-16T07:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927302#M3430</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/bhanu.kassel@gmail.com"&gt;bhanu.kassel@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You are trying to run the FOC example from this community, which was developed I think for an earlier MBDT version using the MBDT for S32K 4.1.0: Am I right? The models were not migrated yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the problem is caused by this message/action performed by the Simulink. Not generating this as reusable function makes the compiler to not find some function declarations through files.&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Converting 'Reusable function' setting of subsystem 'FOC_TC/S32K14x EVB/FastLoopControl' to 'Nonreused function' because a child system has either been explicitly marked as nonreused, or is used in a configuration that must be nonreused. Please generate the HTML report during code generation and see the "Subsystems" section for more information&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Marius&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 08:18:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927302#M3430</guid>
      <dc:creator>mariuslucianand</dc:creator>
      <dc:date>2019-10-16T08:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927303#M3431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;I did hotfix to MBD toolbox 4.0.0 and I run FOC_TC file but I got this error.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;System target file 'mbd_s32k.tlc' cannot be found.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;This is urgent because I need it done within a few days. Could you help me out?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;Bhanu&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 10:19:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927303#M3431</guid>
      <dc:creator>bhanu_kassel</dc:creator>
      <dc:date>2019-10-16T10:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927304#M3432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;Can you have a look ?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Oct 2019 13:23:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927304#M3432</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2019-10-16T13:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Simulink build error</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927305#M3433</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/bhanu.kassel@gmail.com"&gt;bhanu.kassel@gmail.com&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only saw this now - is this in regard to&amp;nbsp;&lt;A href="https://community.nxp.com/thread/515558"&gt;MBDT 4.1.0 &lt;/A&gt;&amp;nbsp;thread? Is this still an issue? I suspect something wrong with your setup - different versions installed on top of each other with different patches applied. If this is still an issue,&amp;nbsp;my advice would be to save the models that you've been working on and reinstall the&amp;nbsp;&lt;STRONG&gt;latest&lt;/STRONG&gt; version available, than install on top of that the&amp;nbsp;&lt;STRONG&gt;latest patch&lt;/STRONG&gt; for that version. This way, you shouldn't get any more errors, and if you get them, we'll be sure that the setup is correct (fresh install) and we'll go from there. I would also suggest that you uninstall and delete the old toolbox (again, be careful to save the models that you've worked on before deleting) before installing a fresh copy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know if you're still having issues with anything.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2019 11:59:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Simulink-build-error/m-p/927305#M3433</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-10-28T11:59:04Z</dc:date>
    </item>
  </channel>
</rss>

