<?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: ADC0 causes a Hardware Fault interrupt. in Model-Based Design Toolbox (MBDT)</title>
    <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067286#M10155</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247980"&gt;@Automan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using&amp;nbsp;&lt;SPAN&gt;our latest&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/NXP-Model-Based-Design-Toolbox-for-S32K3-version-1-6-0-Product/ta-p/2035020" target="_blank" rel="noopener"&gt;NXP Model-Based Design Toolbox for S32K3 version 1.6.0.&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;What board are you using and what model have you tried to configure the ADC0?&lt;/P&gt;
&lt;P&gt;Also can you provide more details about the ADC configuration, screenshot and logs of the encountered error ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Stefan V.&lt;/P&gt;</description>
    <pubDate>Mon, 24 Mar 2025 13:31:54 GMT</pubDate>
    <dc:creator>stefanvlad</dc:creator>
    <dc:date>2025-03-24T13:31:54Z</dc:date>
    <item>
      <title>ADC0 causes a Hardware Fault interrupt.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2066453#M10154</link>
      <description>&lt;P&gt;I have been able to configure the ADC1 in the S32 configuration tool and have successfully added 2 sampling groups.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I try to do the same for ADC0, I end up getting a Hardware Fault interrupt.&lt;/P&gt;&lt;P&gt;I have tried configuring both with and without ADC1 also configured, with the same results.&lt;/P&gt;&lt;P&gt;Is this a known issue with the MBDT?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Mar 2025 16:43:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2066453#M10154</guid>
      <dc:creator>Automan</dc:creator>
      <dc:date>2025-03-21T16:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: ADC0 causes a Hardware Fault interrupt.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067286#M10155</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247980"&gt;@Automan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you using&amp;nbsp;&lt;SPAN&gt;our latest&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/NXP-Model-Based-Design-Toolbox-for-S32K3-version-1-6-0-Product/ta-p/2035020" target="_blank" rel="noopener"&gt;NXP Model-Based Design Toolbox for S32K3 version 1.6.0.&lt;/A&gt;?&lt;/P&gt;
&lt;P&gt;What board are you using and what model have you tried to configure the ADC0?&lt;/P&gt;
&lt;P&gt;Also can you provide more details about the ADC configuration, screenshot and logs of the encountered error ?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you,&lt;/P&gt;
&lt;P&gt;Stefan V.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 13:31:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067286#M10155</guid>
      <dc:creator>stefanvlad</dc:creator>
      <dc:date>2025-03-24T13:31:54Z</dc:date>
    </item>
    <item>
      <title>Re: ADC0 causes a Hardware Fault interrupt.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067477#M10156</link>
      <description>&lt;P&gt;1. Yes, I am using the current 1.6.0 of the MBDT&lt;/P&gt;&lt;P&gt;2. I have tried it on the S32K311EVB and the S32K344EVB, it seems to be fine on the K344, but not the S311.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Mar 2025 18:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067477#M10156</guid>
      <dc:creator>Automan</dc:creator>
      <dc:date>2025-03-24T18:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: ADC0 causes a Hardware Fault interrupt.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067900#M10158</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247980"&gt;@Automan&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for using our &lt;SPAN&gt;latest&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/NXP-Model-Based-Design-Toolbox-for-S32K3-version-1-6-0-Product/ta-p/2035020" target="_blank" rel="noopener"&gt;NXP Model-Based Design Toolbox for S32K3 version 1.6.0.&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;We also have a guide on how to enable a new ADC channel for S32K3 boards&amp;nbsp;&lt;A href="https://community.nxp.com/t5/NXP-Model-Based-Design-Tools/Controlling-LED-intensity-with-ADC-and-PWM/ta-p/1747898" target="_blank"&gt;Controlling LED intensity with ADC and PWM - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your case with the&amp;nbsp;&lt;SPAN&gt;the&amp;nbsp;&lt;/SPAN&gt;&lt;A class="external-link" title="Follow link" href="https://www.nxp.com/design/design-center/development-boards-and-designs/S32K31XEVB-Q100" target="_blank" rel="nofollow noopener"&gt;S32K31XEVB-Q100 EVB&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/A&gt;&lt;SPAN&gt;board, there is only one ADC1 channel configured in the S32CT.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If you want to add an ADC0 channel, we need to first add a pin intro Pin Manager:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_0-1742911736443.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329630i993D7A3A441D17E6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_0-1742911736443.png" alt="stefanvlad_0-1742911736443.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;For example &lt;STRONG&gt;PTE11&lt;/STRONG&gt;&amp;nbsp;pin is on ADC0 and connected to TOUCHO_A on the board.&lt;/P&gt;
&lt;P&gt;Next we need to add this&lt;STRONG&gt;PTE11&lt;/STRONG&gt;&amp;nbsp;pin in Peripherals -&amp;gt; Port Configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_1-1742912080185.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329632i8D2E4881E72E45A9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_1-1742912080185.png" alt="stefanvlad_1-1742912080185.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then we need to enable the ADC0 interrupt in Platform Configuration -&amp;gt; Interrupt Controller:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_2-1742912269324.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329633iC722590F94B2147E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_2-1742912269324.png" alt="stefanvlad_2-1742912269324.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Scroll down the Interrupt Controller page and find and enable ADC0:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_3-1742912355616.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329634iE1488EBF687B8A89/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_3-1742912355616.png" alt="stefanvlad_3-1742912355616.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then we need to enable the ADC0 peripheral clock in MCU Configuration -&amp;gt; McuModuleConfiguration -&amp;gt; McuModeSettingConfig:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_4-1742912461293.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329635i52ACB6580CFBF6D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_4-1742912461293.png" alt="stefanvlad_4-1742912461293.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;We need to add ADC0_EOC and ADC0_WD in ADC Configuration-&amp;gt; ADC Interrupt:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_9-1742915526937.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329644i72E182642E4A7F80/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_9-1742915526937.png" alt="stefanvlad_9-1742915526937.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then we need to add another ADC Hardware Instance in ADC configuration:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_10-1742915808361.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329647i135A90BA1CF9BD73/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_10-1742915808361.png" alt="stefanvlad_10-1742915808361.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After we need to configure the Channel configurations array P6_ChanNum6:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_11-1742915864741.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329648iC44ED64E75C0BDBE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_11-1742915864741.png" alt="stefanvlad_11-1742915864741.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Update the &lt;STRONG&gt;Adc0Group_2&lt;/STRONG&gt;&amp;nbsp;with the &lt;STRONG&gt;Adc_Adc0Group2Notification&lt;/STRONG&gt; in the Group configuration array:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_17-1742917058907.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329663i4F6B47D1E722F8C9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_17-1742917058907.png" alt="stefanvlad_17-1742917058907.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select the &lt;STRONG&gt;AdcChannel_1&lt;/STRONG&gt; in the AdcGroupDefinition:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_8-1742915342488.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329643i68BE8BCF8E4A4DA5/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_8-1742915342488.png" alt="stefanvlad_8-1742915342488.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After this we can Update Code and a pop-up Update Files will appear, press OK:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_5-1742912566074.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329636iE693A71FAD7D1347/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_5-1742912566074.png" alt="stefanvlad_5-1742912566074.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After this process is done, we can close S32CT and go back to the model.&lt;/P&gt;
&lt;P&gt;Update in the s32k3xx_adc_single_read_s32ct model, with Adc0Group_2:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_13-1742916459810.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329654i7E332897AA6B788F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_13-1742916459810.png" alt="stefanvlad_13-1742916459810.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_14-1742916500213.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329655iB8FAFBCC1BD115EF/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_14-1742916500213.png" alt="stefanvlad_14-1742916500213.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Then go back to MATLAB and delete the following:&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;s32k3xx_adc_single_read_s32ct_ert_rtw&lt;/LI&gt;
&lt;LI&gt;slprj&lt;/LI&gt;
&lt;LI&gt;s32k3xx_adc_single_read_s32ct.slxc&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_6-1742912930708.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329637i90E29B9F99C42FFB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_6-1742912930708.png" alt="stefanvlad_6-1742912930708.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Select Yes to all, then go back to the&amp;nbsp;s32k3xx_adc_single_read_s32ct.mdl and press on Build, Deploy &amp;amp;Start (keyboard shortcut &lt;STRONG&gt;CTRL+B&lt;/STRONG&gt; &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_15-1742916594361.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329657iE3BC2C7FE531DC99/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_15-1742916594361.png" alt="stefanvlad_15-1742916594361.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;After the generated code is automatically flashed into the S32K311EVB, open FreeMaster and watch the newly added &lt;STRONG&gt;Channel_1&lt;/STRONG&gt;:&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="stefanvlad_16-1742916888981.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/329659i12F42DEC49E6193B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="stefanvlad_16-1742916888981.png" alt="stefanvlad_16-1742916888981.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope the steps above help you,&lt;/P&gt;
&lt;P&gt;Stefan V.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 15:44:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067900#M10158</guid>
      <dc:creator>stefanvlad</dc:creator>
      <dc:date>2025-03-25T15:44:37Z</dc:date>
    </item>
    <item>
      <title>Re: ADC0 causes a Hardware Fault interrupt.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067968#M10159</link>
      <description>&lt;P&gt;Thanks, I had missed this step:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then we need to enable the ADC0 peripheral clock in MCU Configuration -&amp;gt; McuModuleConfiguration -&amp;gt; McuModeSettingConfig:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Thank you for your assistance!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Mar 2025 17:26:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067968#M10159</guid>
      <dc:creator>Automan</dc:creator>
      <dc:date>2025-03-25T17:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: ADC0 causes a Hardware Fault interrupt.</title>
      <link>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2068796#M10161</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/247980"&gt;@Automan&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Yes, that step is usually forgotten by most users, enabling the peripheral clock in&amp;nbsp;&lt;SPAN&gt;MCU Configuration -&amp;gt; McuModuleConfiguration -&amp;gt; McuModeSettingConfig.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;You can select this thread &lt;A href="https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2067900/highlight/true#M10158" target="_blank"&gt;Re: ADC0 causes a Hardware Fault interrupt. - NXP Community&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;and click on Accept as Solution,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Glad that now everything works ,&lt;/P&gt;
&lt;P&gt;Stefan V.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Mar 2025 15:20:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Model-Based-Design-Toolbox-MBDT/ADC0-causes-a-Hardware-Fault-interrupt/m-p/2068796#M10161</guid>
      <dc:creator>stefanvlad</dc:creator>
      <dc:date>2025-03-26T15:20:08Z</dc:date>
    </item>
  </channel>
</rss>

