<?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: How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759817#M1900</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&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;everything works perfectly.&lt;BR /&gt;I've removed the CM4_MMCLIB_GCC.a from the S32K Toolbox installation to 'produce' the error I've mentioned before. And there is no error now. Everything builds without warnings. And indeed the library is copied to _rtw directory every time.&lt;BR /&gt;I don't know what has happened. The only (probably) difference between now and yesterday is:&lt;BR /&gt;today I was building after the whole Matlab restart (after Your hotfix). Yesterday I may have started builds without restarting Matlab... I can't see anything else.&lt;BR /&gt;Anyway, it works.&lt;/P&gt;&lt;P&gt;I will try a few simple models on hardware.&lt;BR /&gt;Thanks for help&lt;BR /&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Dec 2017 11:12:50 GMT</pubDate>
    <dc:creator>Maciek</dc:creator>
    <dc:date>2017-12-07T11:12:50Z</dc:date>
    <item>
      <title>How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759812#M1895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;BR /&gt;after&amp;nbsp;Daniel's (dumitru-daniel.popa) hotfix for MBD Toolbox for KV3x with GCC:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" class="link-titled" href="https://community.nxp.com/message/908035?commentID=908035#comment-908035?q=kinetis" title="https://community.nxp.com/message/908035?commentID=908035#comment-908035?q=kinetis"&gt;https://community.nxp.com/message/908035?commentID=908035#comment-908035?q=kinetis&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm able to build the examples that are using only peripheral blocks from KV3x. I'm building on R2016b with GCC from S32K MBD Toolbox v3.0.0.&lt;BR /&gt;But I'm getting errors for models that are using Math and Motor Control Library blocks!&lt;BR /&gt;Below the hotfix was&amp;nbsp;said:&lt;BR /&gt;"#3: If you need to use the Automotive Motor Control library you need to get the latest version that support Kinetis families with GCC."&lt;BR /&gt;I assume this is my problem.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;How to get/update this library to be able to compile models correctly ?&lt;BR /&gt; &lt;BR /&gt;Thanks&lt;BR /&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Dec 2017 14:29:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759812#M1895</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2017-12-04T14:29:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759813#M1896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Maciek"&gt;Maciek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;Indeed you will need an updated AMMCLIB that has support for GCC (built with GCC).&lt;/P&gt;&lt;P&gt;99% sure - in think i use the same library from S32K toolbox.&amp;nbsp;&lt;/P&gt;&lt;P&gt;We will check this tomorrow and we will let you know. &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/constantinrazvan.chivu"&gt;constantinrazvan.chivu&lt;/A&gt;‌ can you please advice?&lt;/P&gt;&lt;P&gt;&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>Mon, 04 Dec 2017 18:59:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759813#M1896</guid>
      <dc:creator>Daniel_Popa</dc:creator>
      <dc:date>2017-12-04T18:59:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759814#M1897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Maciek"&gt;Maciek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the late reply, I had to get the sources for an older (not anymore supported) MCLib version and build the .a for gcc. To fix this issue, please copy the attached files and folders: (*please first make a copy of the existing ones)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;gcc &lt;/STRONG&gt;folder from archive --&amp;gt; {Root Folder}/MCLIB_kv3xf/lib/&lt;STRONG&gt;gcc &lt;/STRONG&gt;folder&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;include &lt;/STRONG&gt;folder from archive --&amp;gt; {Root Folder}/MCLIB_kv3xf/&lt;STRONG&gt;include &lt;/STRONG&gt;folder&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mcd_kv3xf.tmf&lt;/STRONG&gt; file --&amp;gt; {Root Folder}/mcd_kv3xf/&lt;STRONG&gt;mcd_kv3xf&lt;/STRONG&gt;.&lt;STRONG&gt;tmf &lt;/STRONG&gt;file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;mcd_kv3xf_copy_required_files&lt;/STRONG&gt;.&lt;STRONG&gt;p&amp;nbsp;&lt;/STRONG&gt;--&amp;gt;{Root Folder}/mcd_kv3xf/mscripts/&lt;STRONG&gt;mcd_kv3xf_copy_required_files&lt;/STRONG&gt;.&lt;STRONG&gt;p&amp;nbsp;&lt;/STRONG&gt;file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let us know if you have any other questions.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;Razvan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 16:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759814#M1897</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2017-12-06T16:14:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759815#M1898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&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;Your hotfix works (but with modifications)!&lt;BR /&gt;Finally I was able to build executables for all examples with 'gmclib' and 'gflib' strings in names using GCC from S32DS.&lt;BR /&gt; &lt;BR /&gt;However, I want to clarify some points.&lt;BR /&gt;I have added (not replaced) Your 'gcc' folder to 'C:\MCToolbox\mctbx_Kinetis\mctbx_kv3xf\MCLIB_kv3xf' folder. In my installation there was no such folder; only folders 'iar', 'kail', 'lcc' and 'vc'.&lt;BR /&gt;I don't have 'mcd_kv3xf' folder but in the corresponding place I have 'mctbx_kv3xf' - and I've replaced .tmf file there. The matlab .p file was also replaced in '.../mctbx_kv3xf/mscripts/' instead of '.../mcd_kv3xf/mscripts/.&lt;BR /&gt;After these changes I wasn't able to build any example model. At the end of the build process I've got a line:&lt;BR /&gt;"...--sysroot=C:\Users\Maciek\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\tools\gcc-arm-none-eabi-4_9/arm-none-eabi/newlib -lm "CM4_MMCLIB_GCC.a" -Wl,-Map..."&lt;BR /&gt;with error message saying: 'CM4_MMCLIB_GCC.a' there is no such file or directory..."&lt;BR /&gt;As it seems that Your library is searched in 'C:\Users\Maciek\Documents\MATLAB\Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\code\tools\gcc-arm-none-eabi-4_9/arm-none-eabi/newlib' directory in S32K MBD Toolbox&amp;nbsp;installation - I've copied the library there. And after that everything works fine.&lt;BR /&gt; &lt;BR /&gt;The only concern I have: is it safe to keep this library there ? I don't want to mess something with S32K MBD Toolbox installation.&lt;BR /&gt; &lt;BR /&gt;Thanks &lt;BR /&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 19:49:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759815#M1898</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2017-12-06T19:49:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759816#M1899</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/Maciek"&gt;Maciek&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First of all sorry about the mcd_kvxx vs mctbx_kvxx issue -&amp;nbsp;i got it from the development path name (not the installation path name).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, I put the entire folder for gcc so that you can drag&amp;amp;drop it into the specified path; there was no gcc support for MCLib for this toolbox in the past (that's the reason why there was no gcc folder).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;About the compiler, the&amp;nbsp;&amp;nbsp;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;GCC_ARM_TOOL system environment variable should point to&amp;nbsp;gcc-arm-none-eabi-4_9; if you have S32K Toolbox you can use the same path as for GCC_S32K_TOOL:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;It should be something similar to&amp;nbsp;C:\MBDToolbox\mbdtbx_S32K\tools\gcc-arm-none-eabi-4_9 (as stated in step #3 in the hotfix provided &lt;A _jive_internal="true" href="https://community.nxp.com/thread/450982?commentID=908035#comment-909146"&gt;here&lt;/A&gt;).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: black;"&gt;&lt;SPAN style="color: #000000;"&gt;Finally, in regard with&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #51626f;"&gt;&lt;STRONG&gt;CM4_MMCLIB_GCC.a,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000;"&gt;this file should be copied in the *_rtw folder that is created when you build a model - this is done by the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff; border: 0px; font-weight: bold; font-size: 15px;"&gt;&lt;STRONG&gt;mcd_kv3xf_copy_required_files.p&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;file.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 10.0pt;"&gt;To address your concern, it is safe for you to keep it there, but&amp;nbsp;that is not how it's intended to work - if the mcd_kv3xf_copy_required_files.p copies it into the *_rtw folder, it should work as is, leaving it in the gcc folder.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 10.0pt;"&gt;So can you check&amp;nbsp;(having GCC_ARM_TOOL environment variable set the same to GCC_S32K_TOOL) if you have any errors? And if the errors persist, can you tell me if the CM4_MMCLIB_GCC.a file is in the respective *_rtw folder ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 10.0pt;"&gt;Thanks!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 10.0pt;"&gt;Razvan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 10.0pt;"&gt;&lt;EM&gt;Edited after&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="background-color: #ffffff; color: #000000; font-size: 10.0pt;"&gt; &lt;EM&gt;initial&amp;nbsp;post&amp;nbsp;&lt;/EM&gt;: I installed a fresh copy of kinetis tbx from &lt;A href="http://www.nxp.com"&gt;www.nxp.com&lt;/A&gt;, added the initial &lt;A _jive_internal="true" href="https://community.nxp.com/thread/450982?commentID=908035#comment-909146"&gt;hotfix &lt;/A&gt;for gcc, then added this hotfix for MCLib (having GCC_ARM_TOOL set as I stated above)&amp;nbsp; and it works. Please let me know if you encounter any problems after setting the GCC_ARM_TOOL env variable.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 08:12:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759816#M1899</guid>
      <dc:creator>constantinrazva</dc:creator>
      <dc:date>2017-12-07T08:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to update Automotive Motor Control library for Kinetis KV3x to work with GCC ?</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759817#M1900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&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;everything works perfectly.&lt;BR /&gt;I've removed the CM4_MMCLIB_GCC.a from the S32K Toolbox installation to 'produce' the error I've mentioned before. And there is no error now. Everything builds without warnings. And indeed the library is copied to _rtw directory every time.&lt;BR /&gt;I don't know what has happened. The only (probably) difference between now and yesterday is:&lt;BR /&gt;today I was building after the whole Matlab restart (after Your hotfix). Yesterday I may have started builds without restarting Matlab... I can't see anything else.&lt;BR /&gt;Anyway, it works.&lt;/P&gt;&lt;P&gt;I will try a few simple models on hardware.&lt;BR /&gt;Thanks for help&lt;BR /&gt;Maciek&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Dec 2017 11:12:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/How-to-update-Automotive-Motor-Control-library-for-Kinetis-KV3x/m-p/759817#M1900</guid>
      <dc:creator>Maciek</dc:creator>
      <dc:date>2017-12-07T11:12:50Z</dc:date>
    </item>
  </channel>
</rss>

