<?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: MBT - S32K3xx - The data for the selected hardware is INVALID in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1627597#M8128</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214269"&gt;@sh_dhanasekaran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for providing the details related to your use case. I would structure my answer as it follows, by firstly approaching a general question and a solution which might help:&lt;/P&gt;
&lt;P&gt;1. Are there any MBDT toolboxes (perhaps for other hardware platforms) that you have installed? In this case, I would recommend to you to remove them from the Matlab path, and keep only the MBDT for S32K3. You could do this by setting the Matlab path to its default state (as illustrated below).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1680602038839.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217688iF718600DADB9B508/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_0-1680602038839.png" alt="Irina_Costachescu_0-1680602038839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, add the MBDT for S32K3 to the path by running the &lt;STRONG&gt;mbd_s32k3_path.m&lt;/STRONG&gt; found in the toolbox root.&lt;/P&gt;
&lt;P&gt;If this does not solve the problem, let's dive into more particular aspects of the issue.&lt;BR /&gt;From your reply I understand that you have a subsystem, containing the implementation of your application, stored in a library. I assume that in the workflow you are following, you are dragging and dropping the subsystem in a new model, for which you are creating a test harness using Simulink Test. Now, for the created harness, you are trying to set the Hardware board from the model's Configuration Parameters, process which results in the error you are currently facing. Please correct me with additional details in case something from my understanding on the matter is missing.&lt;/P&gt;
&lt;P&gt;In this case, my questions/recommendations could be summarized as it follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;1. For trying to isolate the problem, could you please try and set the S32K3xx target for the model which contains your application implementation (the one where you have placed the subsystem from the library)? In other words, without the step of creating a test harness for the model, are you still encountering the same issue when trying to set the application for an S32K3xx target?&lt;/P&gt;
&lt;P&gt;2. If the problem is not related to the model, but appears only when trying to set the target for the test harness, there is an alternative workflow that you could follow for performing a PiL simulation of your model. You can create a new model, where you could add a Model Reference block, by typing Model in the Simulink canvas, and selecting the option as highlighted below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_1-1680602100695.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217689i187CF9D06B5D7D30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_1-1680602100695.png" alt="Irina_Costachescu_1-1680602100695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, by double clicking this block, you can set the model you would like to reference (the one containing your application implementation) and then choose the Simulation Mode as PiL.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_2-1680602126087.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217690iB625F1D5816566B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_2-1680602126087.png" alt="Irina_Costachescu_2-1680602126087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, you can feed your model reference block with appropriate inputs for your PiL simulation and inspect the outputs returned by such a process. You could easily perform such simulations by using the SIL/PIL Manager Add-On of Simulink. For more details on this process you could check the examples we provide inside the toolbox under the &lt;EM&gt;S32K3_Examples/pil&lt;/EM&gt; folder. The &lt;STRONG&gt;s32k3xx_pil_s32ct&lt;/STRONG&gt; and its associated documentation &lt;STRONG&gt;s32k3xx_pil_harness_s32ct_example_readme.html&lt;/STRONG&gt; could be a good application to start with.&lt;/P&gt;
&lt;P&gt;Please let us know if these directions answer some of the questions you are having and what results are produced by trying the approaches mentioned above. It would also be helpful for our investigation if you could send us the model you are working on - you could add it to this thread or use the private messages functionality of the NXP Community.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
    <pubDate>Tue, 04 Apr 2023 10:02:39 GMT</pubDate>
    <dc:creator>Irina_Costachescu</dc:creator>
    <dc:date>2023-04-04T10:02:39Z</dc:date>
    <item>
      <title>MBT - S32K3xx - The data for the selected hardware is INVALID</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1624029#M8111</link>
      <description>&lt;P&gt;I am trying to configure S32K344 with Matlab Simulink. When I enter the Hardware board as NXP S32K3xx, I end up getting a message saying 'The data for the selected hardware NXP S32K3xx is invalid. Select a different hardware or contact the vendor that provides the support for the target 'NXP S32K3xx'.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Mar 2023 08:51:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1624029#M8111</guid>
      <dc:creator>sh_dhanasekaran</dc:creator>
      <dc:date>2023-03-29T08:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: MBT - S32K3xx - The data for the selected hardware is INVALID</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1626038#M8118</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214269"&gt;@sh_dhanasekaran&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Unfortunately, I am not able to reproduce the described problem. Therefore, I would like to propose to you the following actions, that might help:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;try adding again the toolbox in the Matlab path - this could be done by running the &lt;EM&gt;&lt;STRONG&gt;mbd_s32k3_path.m &lt;/STRONG&gt;&lt;/EM&gt;script&amp;nbsp;found in the toolbox root.&lt;/LI&gt;
&lt;LI&gt;if this process completes with no errors, try setting again the Hardware board for the model.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;Moreover, could you please provide us more details on the workflow under which you are encountering this problem so that we could perform further investigations on the issue? Are you creating a new Simulink model and trying to configure it for the S32K3xx, or do you already have an existing example for which you are trying to set this target? It would also be helpful to know what is the Matlab version where this behavior occurs.&lt;/P&gt;
&lt;P&gt;Please let me know if the steps mentioned above work for your use case,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 11:29:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1626038#M8118</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2023-03-31T11:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: MBT - S32K3xx - The data for the selected hardware is INVALID</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1626057#M8120</link>
      <description>Hi,&lt;BR /&gt;So, I later figured out that I don't end up with this error when I create a new Simulink model. But If I try to set this up for the already available model then I see this problem again. And the model is a complicated one, I am still figuring out whether it's because of some predefined settings in the model developed.&lt;BR /&gt;&lt;BR /&gt;- MATLAB VERSION: 9.13.0.2080170 (R2022b)&lt;BR /&gt;&lt;BR /&gt;Workflow:&lt;BR /&gt;- I am trying to create a harness for a subsystem created and stored in the simulink library&lt;BR /&gt;- The harness verification method I am opting for is Processor-in-Loop.&lt;BR /&gt;- For which I am configuring the NXP MBT inside Hardware implementation&lt;BR /&gt;- This is exactly when I am facing this error&lt;BR /&gt;&lt;BR /&gt;But If I am trying to do this while creating a new simulink model then it works perfect atleast for now.&lt;BR /&gt;&lt;BR /&gt;Apologies, I am still new to this so my workflow or steps could be wrong. Correct me in such case. Thank you</description>
      <pubDate>Fri, 31 Mar 2023 12:01:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1626057#M8120</guid>
      <dc:creator>sh_dhanasekaran</dc:creator>
      <dc:date>2023-03-31T12:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: MBT - S32K3xx - The data for the selected hardware is INVALID</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1627597#M8128</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/214269"&gt;@sh_dhanasekaran&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thank you for providing the details related to your use case. I would structure my answer as it follows, by firstly approaching a general question and a solution which might help:&lt;/P&gt;
&lt;P&gt;1. Are there any MBDT toolboxes (perhaps for other hardware platforms) that you have installed? In this case, I would recommend to you to remove them from the Matlab path, and keep only the MBDT for S32K3. You could do this by setting the Matlab path to its default state (as illustrated below).&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_0-1680602038839.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217688iF718600DADB9B508/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_0-1680602038839.png" alt="Irina_Costachescu_0-1680602038839.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then, add the MBDT for S32K3 to the path by running the &lt;STRONG&gt;mbd_s32k3_path.m&lt;/STRONG&gt; found in the toolbox root.&lt;/P&gt;
&lt;P&gt;If this does not solve the problem, let's dive into more particular aspects of the issue.&lt;BR /&gt;From your reply I understand that you have a subsystem, containing the implementation of your application, stored in a library. I assume that in the workflow you are following, you are dragging and dropping the subsystem in a new model, for which you are creating a test harness using Simulink Test. Now, for the created harness, you are trying to set the Hardware board from the model's Configuration Parameters, process which results in the error you are currently facing. Please correct me with additional details in case something from my understanding on the matter is missing.&lt;/P&gt;
&lt;P&gt;In this case, my questions/recommendations could be summarized as it follows:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;1. For trying to isolate the problem, could you please try and set the S32K3xx target for the model which contains your application implementation (the one where you have placed the subsystem from the library)? In other words, without the step of creating a test harness for the model, are you still encountering the same issue when trying to set the application for an S32K3xx target?&lt;/P&gt;
&lt;P&gt;2. If the problem is not related to the model, but appears only when trying to set the target for the test harness, there is an alternative workflow that you could follow for performing a PiL simulation of your model. You can create a new model, where you could add a Model Reference block, by typing Model in the Simulink canvas, and selecting the option as highlighted below:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_1-1680602100695.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217689i187CF9D06B5D7D30/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_1-1680602100695.png" alt="Irina_Costachescu_1-1680602100695.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Now, by double clicking this block, you can set the model you would like to reference (the one containing your application implementation) and then choose the Simulation Mode as PiL.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Irina_Costachescu_2-1680602126087.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/217690iB625F1D5816566B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Irina_Costachescu_2-1680602126087.png" alt="Irina_Costachescu_2-1680602126087.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Now, you can feed your model reference block with appropriate inputs for your PiL simulation and inspect the outputs returned by such a process. You could easily perform such simulations by using the SIL/PIL Manager Add-On of Simulink. For more details on this process you could check the examples we provide inside the toolbox under the &lt;EM&gt;S32K3_Examples/pil&lt;/EM&gt; folder. The &lt;STRONG&gt;s32k3xx_pil_s32ct&lt;/STRONG&gt; and its associated documentation &lt;STRONG&gt;s32k3xx_pil_harness_s32ct_example_readme.html&lt;/STRONG&gt; could be a good application to start with.&lt;/P&gt;
&lt;P&gt;Please let us know if these directions answer some of the questions you are having and what results are produced by trying the approaches mentioned above. It would also be helpful for our investigation if you could send us the model you are working on - you could add it to this thread or use the private messages functionality of the NXP Community.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Irina&lt;/P&gt;</description>
      <pubDate>Tue, 04 Apr 2023 10:02:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1627597#M8128</guid>
      <dc:creator>Irina_Costachescu</dc:creator>
      <dc:date>2023-04-04T10:02:39Z</dc:date>
    </item>
    <item>
      <title>Re: MBT - S32K3xx - The data for the selected hardware is INVALID</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1628189#M8131</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/100054"&gt;@Irina_Costachescu&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;- Apparently, whenever I load my application the NXP MBT path is prepended by another toolbox so this was the issue. I now have script to load the application and then run the&amp;nbsp;&lt;STRONG&gt;mbd_s32k3_path.m&amp;nbsp;&lt;/STRONG&gt;file to again successfully reset the path to NXP MBT. Then it works fine.&lt;BR /&gt;&lt;BR /&gt;Thank you so much for the clarity!&lt;/P&gt;</description>
      <pubDate>Wed, 05 Apr 2023 10:27:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBT-S32K3xx-The-data-for-the-selected-hardware-is-INVALID/m-p/1628189#M8131</guid>
      <dc:creator>sh_dhanasekaran</dc:creator>
      <dc:date>2023-04-05T10:27:33Z</dc:date>
    </item>
  </channel>
</rss>

