<?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: S32K344 SPI DMA HardFault errror in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1830576#M33138</link>
    <description>&lt;P&gt;I am seeing a similar problem trying to use Flexio I2C with DMA. I'm seeing a Hard fault at the same line. Per the MC_ME it seems all the relevant the eDMA and TCD clocks are enabled, yet I get a hardfault just after HwAccDmaCh_CmdClearDone returns.&lt;BR /&gt;&lt;BR /&gt;DMA seems to be working fine for ADC, so I'm not sure if I misconfigured something through S32DS for Flexio I2C + DMA. (Note that I am also not using the higher-level AutoSAR drivers; IP driver modules only)&lt;/P&gt;</description>
    <pubDate>Tue, 19 Mar 2024 00:18:31 GMT</pubDate>
    <dc:creator>nehalp</dc:creator>
    <dc:date>2024-03-19T00:18:31Z</dc:date>
    <item>
      <title>S32K344 SPI DMA HardFault errror</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1708714#M26295</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I configured SPI with DMA send 10 bytes to slave on&amp;nbsp;&lt;/P&gt;&lt;P&gt;SW32K3_RTD_4.4_1.0.0_HF02 and S32DS.&lt;/P&gt;&lt;P&gt;I already referred to SPI plugin's example and the following link: &lt;A href="https://community.nxp.com/t5/S32K/Example-DMA-SPI-S32K344/td-p/1535843" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/Example-DMA-SPI-S32K344/td-p/1535843&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K3-HardFault-Error/m-p/1343310/highlight/true#M12172" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/S32K3-HardFault-Error/m-p/1343310/highlight/true#M12172&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I already add&amp;nbsp;&lt;EM&gt;Platform_InstallIrqHandler() for&amp;nbsp;Dma0_Ch0_IRQHandler&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;but I am facing to Hard-fault&amp;nbsp;exception&amp;nbsp;at&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;/* Done shall be cleared before a new transfer is configured. */&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;HwAccDmaCh_SetCommand((uint32)DMA_IP_CH_CLEAR_DONE, LocHwVers, LocHwInst, LocHwCh);&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;The following main.c file and configured image captured.&lt;/P&gt;&lt;P&gt;any wrong configuration from myside?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237336i8DF181EA73DE1D78/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237337iA10C97B87C8F8B75/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 977px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237338iB0EA5B48D606811B/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 965px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/237340iD4116B3C169CFA19/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 22 Aug 2023 04:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1708714#M26295</guid>
      <dc:creator>MyLV</dc:creator>
      <dc:date>2023-08-22T04:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 SPI DMA HardFault errror</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1711351#M26456</link>
      <description>&lt;P&gt;Hi all,&amp;nbsp;&lt;BR /&gt;I resolved that one by enable peripheral clock inside MCU module.&amp;nbsp;&lt;/P&gt;&lt;P&gt;reference link as below:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/t5/S32K/S32K344-HardFault/m-p/1389714#M13311" target="_blank" rel="noopener"&gt;https://community.nxp.com/t5/S32K/S32K344-HardFault/m-p/1389714#M13311&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 08:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1711351#M26456</guid>
      <dc:creator>MyLV</dc:creator>
      <dc:date>2023-08-25T08:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 SPI DMA HardFault errror</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1775462#M29662</link>
      <description>Hi MyLV,&lt;BR /&gt;&lt;BR /&gt;I met exactlly the same probelm, when run to the same function will trigger hard fault.&lt;BR /&gt;The casue is relevant DMA TCD channel clock didn't enable.&lt;BR /&gt;DMA TCD clock enable is enabled channel by channel, so I forgot the channel I used is not enabled.&lt;BR /&gt;Your answer help me a lot!! Thank you very much!&lt;BR /&gt;</description>
      <pubDate>Fri, 15 Dec 2023 08:58:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1775462#M29662</guid>
      <dc:creator>Mark_977</dc:creator>
      <dc:date>2023-12-15T08:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: S32K344 SPI DMA HardFault errror</title>
      <link>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1830576#M33138</link>
      <description>&lt;P&gt;I am seeing a similar problem trying to use Flexio I2C with DMA. I'm seeing a Hard fault at the same line. Per the MC_ME it seems all the relevant the eDMA and TCD clocks are enabled, yet I get a hardfault just after HwAccDmaCh_CmdClearDone returns.&lt;BR /&gt;&lt;BR /&gt;DMA seems to be working fine for ADC, so I'm not sure if I misconfigured something through S32DS for Flexio I2C + DMA. (Note that I am also not using the higher-level AutoSAR drivers; IP driver modules only)&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2024 00:18:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K344-SPI-DMA-HardFault-errror/m-p/1830576#M33138</guid>
      <dc:creator>nehalp</dc:creator>
      <dc:date>2024-03-19T00:18:31Z</dc:date>
    </item>
  </channel>
</rss>

