<?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>Model-Based Design Toolbox (MBDT)のトピックRe: MATLAB setup with MCTB KV3x</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892480#M3079</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Constantin Razvan Chivu,&lt;/P&gt;&lt;P&gt;I've retried with the CW v10.6 (the oldest version available on the NXP site) and I get the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-L"C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16" -L"C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/arm-none-eabi/lib/m4/fp/v4-sp-d16" -( -lm -lc -lgcc -Map kv3xf_adc.map -o kv3xf_adc.elf&lt;BR /&gt;C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lm&lt;BR /&gt;C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lc&lt;BR /&gt;C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lgcc&lt;BR /&gt;gmake: *** [kv3xf_adc.elf] Error 1&lt;BR /&gt;### Build procedure for model: 'kv3xf_adc' aborted due to an error.&lt;BR /&gt;Error make_rtw: exception id RTW:buildProcess:fatalBuildError message Error(s) encountered while building "kv3xf_adc"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mention earlier at the 2.2.7 section, when setting the compiler for the 64-bit MATLAB with the mex -setup command, I can't select the Microsoft SDK. Instead I get :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; mex -setup&lt;BR /&gt;MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.&lt;BR /&gt;Warning: The MATLAB C and Fortran API has changed to support MATLAB&lt;BR /&gt; variables with more than 2^32-1 elements. You will be required&lt;BR /&gt; to update your code to utilize the new API.&lt;BR /&gt; You can find more information about this at:&lt;BR /&gt; &lt;A href="https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html" target="test_blank"&gt;https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;To choose a different language, select one from the following:&lt;BR /&gt; mex -setup C++ &lt;BR /&gt; mex -setup FORTRAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll search the MATLAB help for that but I don't put alot of hope on this. If you have a clue, that will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 May 2019 13:03:38 GMT</pubDate>
    <dc:creator>brunotremblay</dc:creator>
    <dc:date>2019-05-14T13:03:38Z</dc:date>
    <item>
      <title>MATLAB setup with MCTB KV3x</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892478#M3077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, I'm working with MATLAB R2018b and the toolbox for KV3x. According to the section 2.2.7 of the "Motor Control Development Toolbox User Manual, Rev. 1.0.0, 12/2014", I must setting up the compiler for MATLAB&amp;nbsp;when trying to compile a simple example, I get this error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" style="background: white; margin: 0px 0px 2px;"&gt;&lt;DIV class="" data-dojo-attach-point="hideNode"&gt;&lt;DIV class="" data-dojo-attach-point="wipeNode" style="color: inherit; border: 0px; font-weight: inherit; font-size: inherit;"&gt;&lt;DIV class="" data-dojo-attach-point="containerNode" style="padding: 0px 3px 0px 15px;"&gt;&lt;DIV class="" style="padding: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" data-dojo-attach-point="aMainNode" style="margin: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="aMessageDiv" style="margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;SPAN class="" data-dojo-attach-point="aMessageNode" style="margin-right: 2px;"&gt;-L"C:\Freescale\CW MCU v11.1\Cross_Tools\arm-none-eabi-gcc-4_7_3/lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16" -L"C:\Freescale\CW MCU v11.1\Cross_Tools\arm-none-eabi-gcc-4_7_3/arm-none-eabi/lib/m4/fp/v4-sp-d16" -( -lm -lc -lgcc -Map kv3xf_adc.map -o kv3xf_adc.elf C:\Freescale\CW MCU v11.1\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lm C:\Freescale\CW MCU v11.1\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lc C:\Freescale\CW MCU v11.1\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lgcc gmake: *** [kv3xf_adc.elf] Error 1&lt;/SPAN&gt;&lt;SPAN class="" data-dojo-attach-event="onclick:_onCounterNodeClick" data-dojo-attach-point="aCounterNode" style="color: blue;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="aActionSummaryNode" style="margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV class="" style="padding: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-event="onmouseenter:_onMouseEnter, onmouseleave:_onMouseLeave" data-dojo-attach-point="aMainNode" style="margin: 1px 0px;"&gt;&lt;DIV class="" data-dojo-attach-point="aMessageDiv" style="color: #000000; background-color: #ffffff; font-size: 12px; margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;SPAN class="" data-dojo-attach-point="aMessageNode" style="margin-right: 2px;"&gt;### Build procedure for model: 'kv3xf_adc' aborted due to an error. Error make_rtw: exception id RTW:buildProcess:fatalBuildError message Error(s) encountered while building "kv3xf_adc"&lt;/SPAN&gt;&lt;SPAN class="" data-dojo-attach-event="onclick:_onCounterNodeClick" data-dojo-attach-point="aCounterNode" style="color: blue;"&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="aActionSummaryNode" style="color: #000000; background-color: #ffffff; font-size: 12px; margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Is it from the MATLAB setup or something else?&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="aActionSummaryNode" style="color: #000000; background-color: #ffffff; font-size: 12px; margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="aActionSummaryNode" style="color: #000000; background-color: #ffffff; font-size: 12px; margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Regards&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="aActionSummaryNode" style="color: #000000; background-color: #ffffff; font-size: 12px; margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;/DIV&gt;&lt;DIV class="" data-dojo-attach-point="aActionSummaryNode" style="color: #000000; background-color: #ffffff; font-size: 12px; margin: 0px 0px 0px 15px; padding: 1px 0px;"&gt;&lt;SPAN style="color: #3d3d3d;"&gt;Bruno&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 May 2019 19:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892478#M3077</guid>
      <dc:creator>brunotremblay</dc:creator>
      <dc:date>2019-05-13T19:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: MATLAB setup with MCTB KV3x</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892479#M3078</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/brunotremblay"&gt;brunotremblay&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you try with a version of the compiler that is supported by the release ? [CW v10.5 for this toolbox]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/81068iB019C25BE89CE93E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is an older toolbox and using a newer version of the compiler (v11.1 in your case) might be the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let us know if you're still having problems with your models.&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>Tue, 14 May 2019 08:15:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892479#M3078</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2019-05-14T08:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: MATLAB setup with MCTB KV3x</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892480#M3079</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Constantin Razvan Chivu,&lt;/P&gt;&lt;P&gt;I've retried with the CW v10.6 (the oldest version available on the NXP site) and I get the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-L"C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/lib/gcc/arm-none-eabi/4.8.0/m4/fp/v4-sp-d16" -L"C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/arm-none-eabi/lib/m4/fp/v4-sp-d16" -( -lm -lc -lgcc -Map kv3xf_adc.map -o kv3xf_adc.elf&lt;BR /&gt;C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lm&lt;BR /&gt;C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lc&lt;BR /&gt;C:\Freescale\CW MCU v10.6\Cross_Tools\arm-none-eabi-gcc-4_7_3/bin/arm-none-eabi-ld: cannot find -lgcc&lt;BR /&gt;gmake: *** [kv3xf_adc.elf] Error 1&lt;BR /&gt;### Build procedure for model: 'kv3xf_adc' aborted due to an error.&lt;BR /&gt;Error make_rtw: exception id RTW:buildProcess:fatalBuildError message Error(s) encountered while building "kv3xf_adc"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mention earlier at the 2.2.7 section, when setting the compiler for the 64-bit MATLAB with the mex -setup command, I can't select the Microsoft SDK. Instead I get :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt; mex -setup&lt;BR /&gt;MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.&lt;BR /&gt;Warning: The MATLAB C and Fortran API has changed to support MATLAB&lt;BR /&gt; variables with more than 2^32-1 elements. You will be required&lt;BR /&gt; to update your code to utilize the new API.&lt;BR /&gt; You can find more information about this at:&lt;BR /&gt; &lt;A href="https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html" target="test_blank"&gt;https://www.mathworks.com/help/matlab/matlab_external/upgrading-mex-files-to-use-64-bit-api.html&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;To choose a different language, select one from the following:&lt;BR /&gt; mex -setup C++ &lt;BR /&gt; mex -setup FORTRAN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll search the MATLAB help for that but I don't put alot of hope on this. If you have a clue, that will be appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bruno&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 May 2019 13:03:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MATLAB-setup-with-MCTB-KV3x/m-p/892480#M3079</guid>
      <dc:creator>brunotremblay</dc:creator>
      <dc:date>2019-05-14T13:03:38Z</dc:date>
    </item>
  </channel>
</rss>

