<?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 S32K144_DMA_SPI data lost in S32K</title>
    <link>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975182#M5559</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear:&lt;/P&gt;&lt;P&gt;I'm using DMA to transfer SPI data (NO SDK)；&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;It is right to transmit 32bit，but when i&amp;nbsp;&lt;SPAN&gt;transmit 10 groups of 32bit-data：&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN&gt;extern L9369_command DMA_SPI_L9369  = {0x11111111,0x22222222,0x33333333,0x44444444,0x55555555,0x66666666,0x77777777,0x88888888,0x99999999,0xaaaaaaaa};&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The oscilloscope will lose several&amp;nbsp;groups of data，and the first six groups&amp;nbsp;of data are correct;&lt;/P&gt;&lt;P&gt;but when i&amp;nbsp; use single step transmission by using breakpoints , it is right .&lt;/P&gt;&lt;P&gt;why the data lost ?&lt;/P&gt;&lt;P&gt;thanks!&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/khumphri"&gt;khumphri&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Mandar"&gt;Mandar&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RHinnen"&gt;RHinnen&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jimtrudeau"&gt;jimtrudeau&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Martin"&gt;Martin&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/vladcentea"&gt;vladcentea&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/marc.paquette"&gt;marc.paquette&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RChapman"&gt;RChapman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102854iD25BB8A47DF6B2EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102892i06FAD456DAC1A853/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Mar 2020 06:35:34 GMT</pubDate>
    <dc:creator>johnsen_zhou</dc:creator>
    <dc:date>2020-03-03T06:35:34Z</dc:date>
    <item>
      <title>S32K144_DMA_SPI data lost</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975182#M5559</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear:&lt;/P&gt;&lt;P&gt;I'm using DMA to transfer SPI data (NO SDK)；&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;It is right to transmit 32bit，but when i&amp;nbsp;&lt;SPAN&gt;transmit 10 groups of 32bit-data：&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #666666; background-color: #ffffff; font-weight: normal; font-size: 14px;"&gt;&lt;SPAN&gt;extern L9369_command DMA_SPI_L9369  = {0x11111111,0x22222222,0x33333333,0x44444444,0x55555555,0x66666666,0x77777777,0x88888888,0x99999999,0xaaaaaaaa};&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;The oscilloscope will lose several&amp;nbsp;groups of data，and the first six groups&amp;nbsp;of data are correct;&lt;/P&gt;&lt;P&gt;but when i&amp;nbsp; use single step transmission by using breakpoints , it is right .&lt;/P&gt;&lt;P&gt;why the data lost ?&lt;/P&gt;&lt;P&gt;thanks!&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/khumphri"&gt;khumphri&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Mandar"&gt;Mandar&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RHinnen"&gt;RHinnen&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jimtrudeau"&gt;jimtrudeau&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Martin"&gt;Martin&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/vladcentea"&gt;vladcentea&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/marc.paquette"&gt;marc.paquette&lt;/A&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/RChapman"&gt;RChapman&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102854iD25BB8A47DF6B2EA/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102892i06FAD456DAC1A853/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.png" alt="pastedImage_4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Mar 2020 06:35:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975182#M5559</guid>
      <dc:creator>johnsen_zhou</dc:creator>
      <dc:date>2020-03-03T06:35:34Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144_DMA_SPI data lost</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975183#M5560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At first, could you please check error flags in the Status Register (SR)?&amp;nbsp;Is any error flag set?&amp;nbsp;&lt;/P&gt;&lt;P&gt;How much data does DMA transfer through SPI per one request?&lt;/P&gt;&lt;P&gt;How do you have configured the Transmit FIFO Watermark?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Diana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 13:23:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975183#M5560</guid>
      <dc:creator>dianabatrlova</dc:creator>
      <dc:date>2020-03-05T13:23:29Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144_DMA_SPI data lost</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975184#M5561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi! Have you solved your problem? Similarly,&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;I had a problem with using spi's dma mode for host and slave communication. I did not use the SDK, but directly read and write registers when programming.&amp;nbsp; I tried to use s32k116&amp;nbsp;that&amp;nbsp;was set as a slave device to&amp;nbsp; communicate with the external spi host device,however, While the host&amp;nbsp; keeps sending 128 bytes of data, the slave DmaA receive&amp;nbsp;interrupt could not be triggered，so I could not receive or send any data. could you help me find out where the problem is? Thank you very much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 May 2020 07:08:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975184#M5561</guid>
      <dc:creator>vanaua</dc:creator>
      <dc:date>2020-05-20T07:08:59Z</dc:date>
    </item>
    <item>
      <title>Re: S32K144_DMA_SPI data lost</title>
      <link>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975185#M5562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;see&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/1315921" target="test_blank"&gt;https://community.nxp.com/message/1315921&lt;/A&gt;&lt;/P&gt;&lt;P&gt;If the transmitted bytes exceed 32 bytes, NXP cannot provide a useful LPSPI program, and there are too many bugs about LPSPI.&lt;/P&gt;&lt;P&gt;In particular, PCS cannot be controlled by software.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;For STM32F4, without interrupt and DMA, the following code can achieve full duplex. But there is no way for S32K144.&lt;/P&gt;&lt;P&gt;uint8_t RxData;&lt;BR /&gt; while((hspi-&amp;gt;Instance-&amp;gt;SR &amp;amp; SPI_SR_TXE) != SPI_SR_TXE);&lt;BR /&gt; *((__IO uint8_t *)&amp;amp;hspi-&amp;gt;Instance-&amp;gt;DR) = TxData;&lt;BR /&gt; while((hspi-&amp;gt;Instance-&amp;gt;SR &amp;amp; SPI_SR_RXNE) != SPI_SR_RXNE);&lt;BR /&gt; RxData = *((__IO uint8_t *)&amp;amp;hspi-&amp;gt;Instance-&amp;gt;DR); &lt;BR /&gt; return RxData;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2020 16:22:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S32K/S32K144-DMA-SPI-data-lost/m-p/975185#M5562</guid>
      <dc:creator>wjandsq</dc:creator>
      <dc:date>2020-06-27T16:22:25Z</dc:date>
    </item>
  </channel>
</rss>

