<?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)のトピックCompatibility issue list for matlab R2021b</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Compatibility-issue-list-for-matlab-R2021b/m-p/1423306#M7073</link>
    <description>&lt;P&gt;This item is linked to:&lt;LI-MESSAGE title="Updating compatibility MBDT to latest matlab releases" uid="1413582" url="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Updating-compatibility-MBDT-to-latest-matlab-releases/m-p/1413582#U1413582" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The toolbox that I am testing is: S32k1xx on matlab/simulink R2021b on 64-bit windows&lt;/P&gt;&lt;P&gt;Default compiler for my system is set to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEX configured to use minGW-64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First issue that I found is using simulink in external mode, by enabling it under:&lt;/P&gt;&lt;P&gt;model configuration / code generation / interface.&lt;/P&gt;&lt;P&gt;When setting the external mode box to ticked --&amp;gt; Simulink provides the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unable to start the target application, D:\Workspace\Cleaning_system\src\ExtSensor_controller, because its file extension cannot be determined. Build your target application by using a toolchain or a template makefile that specifies a toolchain via the TOOLCHAIN_NAME macro. The file extension will then be determined automatically from the linker's executable file extension property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have checked the template makefile of the S32k1xx toolbox and indeed the TOOLCHAIN_NAME macro does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 04 Mar 2022 13:49:16 GMT</pubDate>
    <dc:creator>craanede</dc:creator>
    <dc:date>2022-03-04T13:49:16Z</dc:date>
    <item>
      <title>Compatibility issue list for matlab R2021b</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Compatibility-issue-list-for-matlab-R2021b/m-p/1423306#M7073</link>
      <description>&lt;P&gt;This item is linked to:&lt;LI-MESSAGE title="Updating compatibility MBDT to latest matlab releases" uid="1413582" url="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Updating-compatibility-MBDT-to-latest-matlab-releases/m-p/1413582#U1413582" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The toolbox that I am testing is: S32k1xx on matlab/simulink R2021b on 64-bit windows&lt;/P&gt;&lt;P&gt;Default compiler for my system is set to:&amp;nbsp;&lt;/P&gt;&lt;P&gt;MEX configured to use minGW-64&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First issue that I found is using simulink in external mode, by enabling it under:&lt;/P&gt;&lt;P&gt;model configuration / code generation / interface.&lt;/P&gt;&lt;P&gt;When setting the external mode box to ticked --&amp;gt; Simulink provides the following error:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unable to start the target application, D:\Workspace\Cleaning_system\src\ExtSensor_controller, because its file extension cannot be determined. Build your target application by using a toolchain or a template makefile that specifies a toolchain via the TOOLCHAIN_NAME macro. The file extension will then be determined automatically from the linker's executable file extension property.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have checked the template makefile of the S32k1xx toolbox and indeed the TOOLCHAIN_NAME macro does not exist.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 04 Mar 2022 13:49:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Compatibility-issue-list-for-matlab-R2021b/m-p/1423306#M7073</guid>
      <dc:creator>craanede</dc:creator>
      <dc:date>2022-03-04T13:49:16Z</dc:date>
    </item>
    <item>
      <title>Re: Compatibility issue list for matlab R2021b</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Compatibility-issue-list-for-matlab-R2021b/m-p/1423349#M7074</link>
      <description>&lt;P&gt;I have found a work around for the issue: The compiler is set for mingGW-64&lt;/P&gt;&lt;P&gt;added the following line anywhere to the mbd_s32k.tmf template makefile before opening the simulink model&lt;/P&gt;&lt;P&gt;(located:&amp;nbsp;AppData\Roaming\MathWorks\MATLAB Add-Ons\Toolboxes\NXP_MBDToolbox_S32K1xx\mbdtbx_s32k)&lt;/P&gt;&lt;P&gt;TOOLCHAIN_NAME= "MinGW64 | gmake (64-bit Windows)"&lt;/P&gt;&lt;P&gt;This allows simulink to step beyond some checks when opening the model and then opens the hardware tab,&lt;/P&gt;&lt;P&gt;However, you cannot build the model with this macro in the template file as the following errors will occur:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="craanede_0-1646744903531.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172774i2FA8B5661E306EF2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="craanede_0-1646744903531.png" alt="craanede_0-1646744903531.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It is unclear for me why this issues occur, but looking at the implementation of S32k3xx a solution is already found.&lt;/P&gt;&lt;P&gt;However, if you now simply remove the macro from the template makefile again before building but after selecting external mode according&amp;nbsp;steps in&amp;nbsp;&lt;LI-MESSAGE title="Unable to Deploy and Start External Mode Example for S32K144 in MBDT" uid="1176817" url="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Unable-to-Deploy-and-Start-External-Mode-Example-for-S32K144-in/m-p/1176817#U1176817" discussion_style_icon_css="lia-mention-container-editor-message lia-img-icon-forum-thread lia-fa-icon lia-fa-forum lia-fa-thread lia-fa"&gt;&lt;/LI-MESSAGE&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then everything worked fine for external mode in 2021b.&lt;/P&gt;&lt;P&gt;Perhaps someone can actually find a better workaround then this, but at least this way external mode is working.&lt;/P&gt;&lt;P&gt;Note that if you change simulink to use external mode then the serial transport layer changes to:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="craanede_1-1646745090205.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172775i5B1A814F5B2F5100/image-size/medium?v=v2&amp;amp;px=400" role="button" title="craanede_1-1646745090205.png" alt="craanede_1-1646745090205.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If you then turn external mode off and want to use Freemaster, this transport layer has to be reset to:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="craanede_2-1646745154093.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/172776iD00E857CAE5FD101/image-size/medium?v=v2&amp;amp;px=400" role="button" title="craanede_2-1646745154093.png" alt="craanede_2-1646745154093.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The only way I found to do this, is to switch the system target file under code&amp;nbsp; generation settings to mbd_s32k14.tlc and then back to mbd_s32k.tlc. However, this also then allows Freemaster to work again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hopefully, these solutions help someone dealing with the same issues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 08 Mar 2022 13:13:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Compatibility-issue-list-for-matlab-R2021b/m-p/1423349#M7074</guid>
      <dc:creator>craanede</dc:creator>
      <dc:date>2022-03-08T13:13:58Z</dc:date>
    </item>
  </channel>
</rss>

