<?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 refence configuration path in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2413554#M10820</link>
    <description>&lt;P&gt;&lt;SPAN&gt;In Simulink, when configuring the hardware, I am trying to change the directory for the reference configuration to a relative path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simulink -&amp;gt; HW-Settings -&amp;gt; Hardware Implementation -&amp;gt; Target hardware resources -&amp;gt; Referenced Configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference Configuration Path = '.\generated\referenced_config'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, it is not possible to enter a relative path here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nor have I so far been able to set the path via a MATLAB script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although the script appears to set the path in CoderTargetData, it is not actually applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either the old path remains active, or an empty path is applied.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to set a relative path for the reference configuration?&lt;/P&gt;</description>
    <pubDate>Tue, 15 Sep 2026 05:47:16 GMT</pubDate>
    <dc:creator>AlexG124</dc:creator>
    <dc:date>2026-09-15T05:47:16Z</dc:date>
    <item>
      <title>refence configuration path</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2413554#M10820</link>
      <description>&lt;P&gt;&lt;SPAN&gt;In Simulink, when configuring the hardware, I am trying to change the directory for the reference configuration to a relative path.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Simulink -&amp;gt; HW-Settings -&amp;gt; Hardware Implementation -&amp;gt; Target hardware resources -&amp;gt; Referenced Configuration&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Reference Configuration Path = '.\generated\referenced_config'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, it is not possible to enter a relative path here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Nor have I so far been able to set the path via a MATLAB script.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Although the script appears to set the path in CoderTargetData, it is not actually applied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Either the old path remains active, or an empty path is applied.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Is there a way to set a relative path for the reference configuration?&lt;/P&gt;</description>
      <pubDate>Tue, 15 Sep 2026 05:47:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2413554#M10820</guid>
      <dc:creator>AlexG124</dc:creator>
      <dc:date>2026-09-15T05:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: refence configuration path</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2414240#M10823</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/240256"&gt;@AlexG124&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;Thanks for the details. Could you please help us and let us know what are the MBDT toolbox version, as well as the MATLAB version that you are currently using?&lt;/P&gt;
&lt;P&gt;In case you are using &lt;STRONG&gt;S32K3&lt;/STRONG&gt; toolbox, there is a model example showcasing the referenced configuration workflow, under &lt;EM&gt;&lt;STRONG&gt;model_ref/s32k3xx_refconfig_s32ct&lt;/STRONG&gt;&lt;/EM&gt; folder. Here you will find a MATLAB script called&amp;nbsp;&lt;STRONG&gt;s32k3xx_refconfig_update_paths_callback.m&amp;nbsp;&lt;/STRONG&gt;that could help in achieving your goal.&lt;/P&gt;
&lt;P&gt;It will be also helpful if you could let us know more details on your referenced configuration way of working, usage and application flow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best regards,&lt;/P&gt;
&lt;P&gt;Dragos&lt;/P&gt;</description>
      <pubDate>Thu, 17 Sep 2026 09:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2414240#M10823</guid>
      <dc:creator>dragostoma</dc:creator>
      <dc:date>2026-09-17T09:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: refence configuration path</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2414356#M10824</link>
      <description>&lt;DIV class=""&gt;Hi&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&amp;gt;&amp;gt; ver&lt;/DIV&gt;&lt;DIV class=""&gt;-----------------------------------------------------------------------------------------------------&lt;BR /&gt;MATLAB Version: 25.2.0.3150157 (R2025b) Update 4&lt;BR /&gt;MATLAB License Number: *******&lt;BR /&gt;Operating System: Microsoft Windows 11 Business Version 10.0 (Build 26200)&lt;BR /&gt;Java Version: Java 1.8.0_202-b08 with Oracle Corporation Java HotSpot(TM) 64-Bit Server VM mixed mode&lt;BR /&gt;-----------------------------------------------------------------------------------------------------&lt;/DIV&gt;&lt;DIV class=""&gt;MATLAB Version 25.2 (R2025b)&lt;BR /&gt;Simulink Version 25.2 (R2025b)&lt;BR /&gt;Embedded Coder Version 25.2 (R2025b)&lt;BR /&gt;MATLAB Coder Version 25.2 (R2025b)&lt;BR /&gt;Model-Based Design Toolbox for BMS Series Version 1.2.3 (R2021a-R2024b)&lt;BR /&gt;Model-Based Design Toolbox for S32K3xx Series Version 1.4.5 (R2021a-R2023a)&lt;BR /&gt;Requirements Toolbox Version 25.2 (R2025b)&lt;BR /&gt;Simscape Version 25.2 (R2025b)&lt;BR /&gt;Simscape Battery Version 25.2 (R2025b)&lt;BR /&gt;Simulink Check Version 25.2 (R2025b)&lt;BR /&gt;Simulink Coder Version 25.2 (R2025b)&lt;BR /&gt;Simulink Coverage Version 25.2 (R2025b)&lt;BR /&gt;Simulink Design Verifier Version 25.2 (R2025b)&lt;BR /&gt;Simulink Test Version 25.2 (R2025b)&lt;BR /&gt;Stateflow Version 25.2 (R2025b)&lt;BR /&gt;System Composer Version 25.2 (R2025b)&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;gt;&amp;gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;BMS application&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;NXP HW:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;RD-HVBMSCT800BUN&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;We use the configuration of our referenced hardware model as a reference for all models (that works)&amp;nbsp;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Problems:&lt;/DIV&gt;&lt;UL&gt;&lt;LI&gt;&lt;DIV class=""&gt;The script you described above does not work with our version of MBDT&lt;/DIV&gt;&lt;/LI&gt;&lt;LI&gt;&lt;DIV class=""&gt;We have tried to set the path in a similar way using a script. It also looks as though it is working. However, when you check the configuration in Simulink, the path for the reference configuration is always empty, or the old path is included.&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;DIV class=""&gt;Part of our script:&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Load_system(mdl);&lt;/DIV&gt;&lt;DIV class=""&gt;% get active ref. Config&lt;/DIV&gt;&lt;DIV class=""&gt;csRef = getActiveConfigSet(mdl);&lt;/DIV&gt;&lt;DIV class=""&gt;cfg = csRef.getRefConfigSet();&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;% get reference Configuration struct {path, browse}&lt;/DIV&gt;&lt;DIV class=""&gt;s = get_param(mdl,'CoderTargetData');&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;% set path to root)&lt;/DIV&gt;&lt;DIV class=""&gt;%proj = currentProject;&lt;/DIV&gt;&lt;DIV class=""&gt;%projectFolder = proj.RootFolder;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;%s.refConfig_location = projectFolder;&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;projectFolder = ".\generated\referenced_config"; % relative path, replace with actual path&lt;/DIV&gt;&lt;DIV class=""&gt;s.refConfig_enable = 1;&lt;/DIV&gt;&lt;DIV class=""&gt;s.refConfig_location = projectFolder;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;% set new ref. config path&lt;/DIV&gt;&lt;DIV class=""&gt;fprintf('set reference configuration path to %s \n', projectFolder);&lt;/DIV&gt;&lt;DIV class=""&gt;set_param(cfg,'CoderTargetData', s);&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;sl_refresh_customizations;&lt;/DIV&gt;&lt;DIV class=""&gt;%save_system(mdl);&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;cs = getActiveConfigSet(mdl);&lt;/DIV&gt;&lt;DIV class=""&gt;cs.refresh;&lt;/DIV&gt;&lt;DIV class=""&gt;cfg = csRef.getRefConfigSet();&lt;/DIV&gt;&lt;DIV class=""&gt;% check ref. config&lt;/DIV&gt;&lt;DIV class=""&gt;s = get_param(cfg,'CoderTargetData');&lt;/DIV&gt;&lt;DIV class=""&gt;fprintf('reference configuration path: %s from %s \n', s.refConfig_location, csRef.Name); % output is correct!&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class=""&gt;Br,&lt;/DIV&gt;&lt;DIV class=""&gt;Alex&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Sep 2026 14:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/refence-configuration-path/m-p/2414356#M10824</guid>
      <dc:creator>AlexG124</dc:creator>
      <dc:date>2026-09-17T14:07:04Z</dc:date>
    </item>
  </channel>
</rss>

