<?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: MBDT + Referenced Models recompiles everything in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-Referenced-Models-recompiles-everything/m-p/1498642#M7571</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have moved your post to MBDT community.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
    <pubDate>Mon, 01 Aug 2022 08:27:34 GMT</pubDate>
    <dc:creator>petervlna</dc:creator>
    <dc:date>2022-08-01T08:27:34Z</dc:date>
    <item>
      <title>MBDT + Referenced Models recompiles everything</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-Referenced-Models-recompiles-everything/m-p/1498066#M7570</link>
      <description>&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I'm working with the Model Based Design Toolbox to develop a fairly complex program for the MPC5744P. The Simulink model is quite big, so it takes a long time to recompile every time we make a small change. To speed things up, I wanted to use Referenced Models in Simulink. This way, I could precompile some of the subsystems, and every time I want to make a change, I would only have to recompile the subsystem that holds it and the complete model. I think this would speed compilation by a lot.&lt;/P&gt;&lt;P&gt;My original idea was leaving all interface the blocks in MBDT (communications, interrupts…) in the main model, and put the subsystems that use only Simulink blocks into Referenced Models. However, it seems that for the MPC5744P toolbox, it is also necessary to add the &lt;EM&gt;MBD_MPC574x_Config_Information&lt;/EM&gt; block for all Referenced Model. According to this link, this seems to be the case for some of the toolboxes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-with-Referenced-Models/td-p/1231691" target="_blank"&gt;MBDT with Referenced Models - NXP Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But when I do this, Simulink recompiles all Referenced Models every time, even if they haven’t changed. I believe it is because of the &lt;EM&gt;MBD_MPC574x_Config_Information&lt;/EM&gt; block. I have not found any particular information on precompiled Referenced Models for MBDT, but I have found a similar case for Speadgoat in which some custom blocks caused this behaviour:&lt;/P&gt;&lt;P&gt;&lt;A href="https://es.mathworks.com/matlabcentral/answers/723158-simulink-reference-model-keeps-compiling#answer_603163" target="_blank"&gt;https://es.mathworks.com/matlabcentral/answers/723158-simulink-reference-model-keeps-compiling#answer_603163&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any way to get around this so that Referenced Models are not recompiled? &lt;/STRONG&gt;I would rather not use the &lt;EM&gt;MBD_MPC574x_Config_Information&lt;/EM&gt; block on Referenced Models and use only regular Simulink blocks. But Simulink forces me to use the same TLC (mbd_mpc574x.tlc) in the main model and in the Referenced Models, and using this TLC forces me to use &lt;EM&gt;MBD_MPC574x_Config_Information&lt;/EM&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:38:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-Referenced-Models-recompiles-everything/m-p/1498066#M7570</guid>
      <dc:creator>mikel1</dc:creator>
      <dc:date>2022-07-29T13:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: MBDT + Referenced Models recompiles everything</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-Referenced-Models-recompiles-everything/m-p/1498642#M7571</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have moved your post to MBDT community.&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Peter&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2022 08:27:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/MBDT-Referenced-Models-recompiles-everything/m-p/1498642#M7571</guid>
      <dc:creator>petervlna</dc:creator>
      <dc:date>2022-08-01T08:27:34Z</dc:date>
    </item>
  </channel>
</rss>

