<?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)のトピックMBDT S32k1x version 4.3.0 target selection file</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552137#M7829</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recently updated my MBDT S32k1x toolbox to v4.3.0. to include newer matlab version support.&lt;/P&gt;&lt;P&gt;I see that this is working fine for existing models and the example models included.&lt;/P&gt;&lt;P&gt;However, when a new model is created and set to use the system target file (in code generation options in simulink)&amp;nbsp;mbd_s32k.tlc. Then instead of using the template makefile, the build process changes to a toolchain. In my case this is the MinGW64 | gmake toolchain.&lt;/P&gt;&lt;P&gt;When building a model using the toolchain method, I get a long list of errors of certain blocks not being found. When I copy that same blocks into an existing MBDT model from the library examples using the template file, then everything works fine.&lt;/P&gt;&lt;P&gt;If I select the MBD s32k14.tlc target then the makefile is still selected, but other errors occur. If I then switch back to the&amp;nbsp;mbd_s32k.tlc the errors occur again.&lt;/P&gt;&lt;P&gt;If I reselect the mbd_s32k.tlc target file for an example model (e.g. ftm_independent_pwm_s32k14x) then I get the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Environment Variable GHS_S32K_TOOL not set. Set the location of GHS_S32K_TOOL target compiler and restart MATLAB, please. Example: GHS_S32K_TOOL=c:\ghs\comp_201516&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is it possible that something went when I upgraded the toolbox (I tried a fresh install of the toolboxes). Or is it possible that I have to now manually force it to use the template makefile?&lt;/P&gt;&lt;P&gt;I use matlab 2021b on windows 10&lt;/P&gt;&lt;P&gt;Model-Based Design Toolbox for S32K1xx Series Version 4.3.0 (R2016a-R2022a)&lt;/P&gt;&lt;P&gt;MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dennie Craane&lt;/P&gt;</description>
    <pubDate>Thu, 10 Nov 2022 16:32:13 GMT</pubDate>
    <dc:creator>craanede</dc:creator>
    <dc:date>2022-11-10T16:32:13Z</dc:date>
    <item>
      <title>MBDT S32k1x version 4.3.0 target selection file</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552137#M7829</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have recently updated my MBDT S32k1x toolbox to v4.3.0. to include newer matlab version support.&lt;/P&gt;&lt;P&gt;I see that this is working fine for existing models and the example models included.&lt;/P&gt;&lt;P&gt;However, when a new model is created and set to use the system target file (in code generation options in simulink)&amp;nbsp;mbd_s32k.tlc. Then instead of using the template makefile, the build process changes to a toolchain. In my case this is the MinGW64 | gmake toolchain.&lt;/P&gt;&lt;P&gt;When building a model using the toolchain method, I get a long list of errors of certain blocks not being found. When I copy that same blocks into an existing MBDT model from the library examples using the template file, then everything works fine.&lt;/P&gt;&lt;P&gt;If I select the MBD s32k14.tlc target then the makefile is still selected, but other errors occur. If I then switch back to the&amp;nbsp;mbd_s32k.tlc the errors occur again.&lt;/P&gt;&lt;P&gt;If I reselect the mbd_s32k.tlc target file for an example model (e.g. ftm_independent_pwm_s32k14x) then I get the error:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Environment Variable GHS_S32K_TOOL not set. Set the location of GHS_S32K_TOOL target compiler and restart MATLAB, please. Example: GHS_S32K_TOOL=c:\ghs\comp_201516&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is it possible that something went when I upgraded the toolbox (I tried a fresh install of the toolboxes). Or is it possible that I have to now manually force it to use the template makefile?&lt;/P&gt;&lt;P&gt;I use matlab 2021b on windows 10&lt;/P&gt;&lt;P&gt;Model-Based Design Toolbox for S32K1xx Series Version 4.3.0 (R2016a-R2022a)&lt;/P&gt;&lt;P&gt;MEX configured to use 'MinGW64 Compiler (C)' for C language compilation.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Dennie Craane&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 16:32:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552137#M7829</guid>
      <dc:creator>craanede</dc:creator>
      <dc:date>2022-11-10T16:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT S32k1x version 4.3.0 target selection file</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552560#M7831</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196916"&gt;@craanede&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Normally, you don`t have to choose manually the system target file for a new model. It should be set automatically when&amp;nbsp; you drag and drop the &lt;STRONG&gt;MBD_S32K1xx_Config_Information&lt;/STRONG&gt; block.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_0-1668161298717.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200029iA92428C8B99D9AFC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_0-1668161298717.png" alt="stefancinipeanu_0-1668161298717.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After this block is put in a model, an initialization script is called to do all the settings regarding the building information, including the system target file and the template makefile.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefancinipeanu_1-1668161407245.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/200030iD496AB674C0378D2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefancinipeanu_1-1668161407245.png" alt="stefancinipeanu_1-1668161407245.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Stefan.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 10:12:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552560#M7831</guid>
      <dc:creator>stefancinipeanu</dc:creator>
      <dc:date>2022-11-11T10:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT S32k1x version 4.3.0 target selection file</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552569#M7832</link>
      <description>&lt;P&gt;Hi Stefan,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for the quick reply.&lt;/P&gt;&lt;P&gt;My intention is not to set the tlc file manually, but this is resetting itself automatically after a few build procedures.&lt;/P&gt;&lt;P&gt;I am not able to fully reproduce the occuring when the settings reset to using a toolchain instead of a makefile.&lt;/P&gt;&lt;P&gt;I am also getting this error when opening the model when it has a makefile selected in the codegen options:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Unable to start the target application, "myModel", 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;However, I can build my model despite of this error occurring when opening the model.&lt;/P&gt;&lt;P&gt;The settings can be reset with your steps but I need to do some extra things as well:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;By removing the config block, saving and re-opening the model and then compiling it to trigger the init function, I can successfully reset the codegen options. However, if I do not re-open the model the init fucntion&amp;nbsp;mbd_s32k_consistency_checks(bdroot(gcs)); does not solve the issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am probably doing something wrong here.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Dennie Craane&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Nov 2022 10:44:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1552569#M7832</guid>
      <dc:creator>craanede</dc:creator>
      <dc:date>2022-11-11T10:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT S32k1x version 4.3.0 target selection file</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1557069#M7867</link>
      <description>Dear Stefan,&lt;BR /&gt;&lt;BR /&gt;I understand now how the system sets the target file. This works fine for new models, but I noticed that by simply reopening the model so that the pre-load function runs is not sufficient to reset the code generation settings once the issue is there.&lt;BR /&gt;&lt;BR /&gt;By clicking the propagate changes button in the config block and reopening the model and then recompiling everything it adjusts the changes.&lt;BR /&gt;&lt;BR /&gt;Hope this helps anyone else struggling with this.&lt;BR /&gt;&lt;BR /&gt;Thanks for the support.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Dennie</description>
      <pubDate>Mon, 21 Nov 2022 09:31:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-S32k1x-version-4-3-0-target-selection-file/m-p/1557069#M7867</guid>
      <dc:creator>craanede</dc:creator>
      <dc:date>2022-11-21T09:31:16Z</dc:date>
    </item>
  </channel>
</rss>

