<?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)のトピックRe: Importing custom S32 target code into MBDT projects</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Importing-custom-S32-target-code-into-MBDT-projects/m-p/2318570#M10643</link>
    <description>&lt;P&gt;I have now wrapped the hardware dependent parts in&lt;BR /&gt;#if defined(CPU_S32K396)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;with in some cases an #else with generic code.&lt;/P&gt;&lt;P&gt;which should solve the issue.&amp;nbsp; But is this the recommended method for adding S32K RTD dependent code to an MBDT project?&lt;/P&gt;</description>
    <pubDate>Mon, 16 Feb 2026 12:13:40 GMT</pubDate>
    <dc:creator>Henrik-Wires</dc:creator>
    <dc:date>2026-02-16T12:13:40Z</dc:date>
    <item>
      <title>Importing custom S32 target code into MBDT projects</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Importing-custom-S32-target-code-into-MBDT-projects/m-p/2317918#M10641</link>
      <description>&lt;P&gt;We have a custom S32K3 FlexIO driver (C code) that we want to use from a MBDT project, but it's not entirely obvious how to import this code into the project.&lt;/P&gt;&lt;P&gt;The driver code is developed in S32 Design Studio, and works fine on target. But when using the Simulink Code Importer wizard to package the code as a simulink library it halts on not finding the relevant RTD and hardware headers.&lt;/P&gt;&lt;P&gt;I am guessing the the code need to support being built both for the S32 target and as generic hardware-independent version for simulation for the code import to work.&lt;/P&gt;&lt;P&gt;Is there any guidance on how this is best done?&lt;/P&gt;&lt;P&gt;Is there for example any standard define we can use in the code allowing the code to build different depending on the current target (generic x86_64 vs s32)? Or any way to tell Simulink to use different sets of C files during simulation and on target?&lt;/P&gt;</description>
      <pubDate>Fri, 13 Feb 2026 15:09:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Importing-custom-S32-target-code-into-MBDT-projects/m-p/2317918#M10641</guid>
      <dc:creator>Henrik-Wires</dc:creator>
      <dc:date>2026-02-13T15:09:28Z</dc:date>
    </item>
    <item>
      <title>Re: Importing custom S32 target code into MBDT projects</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Importing-custom-S32-target-code-into-MBDT-projects/m-p/2318570#M10643</link>
      <description>&lt;P&gt;I have now wrapped the hardware dependent parts in&lt;BR /&gt;#if defined(CPU_S32K396)&lt;BR /&gt;#endif&lt;/P&gt;&lt;P&gt;with in some cases an #else with generic code.&lt;/P&gt;&lt;P&gt;which should solve the issue.&amp;nbsp; But is this the recommended method for adding S32K RTD dependent code to an MBDT project?&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 12:13:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/Importing-custom-S32-target-code-into-MBDT-projects/m-p/2318570#M10643</guid>
      <dc:creator>Henrik-Wires</dc:creator>
      <dc:date>2026-02-16T12:13:40Z</dc:date>
    </item>
  </channel>
</rss>

