<?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 DMA + SPI issue in LpcXprsso OM13077 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-SPI-issue-in-LpcXprsso-OM13077/m-p/582585#M20692</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pradeep salloju on Tue May 12 06:43:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCXpresso 54102 Evaluation board (OM13077). i have used lpcopen examples project (rom_spim_int_dma) in my application but when i am setting buffer size as BUFFSIZE 2 i am getting 4 clock cycles generating on one transaction with that i am unable to read exact slave data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a problem with DMA transfer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application is complete synchronous application i will get valid data from slave when i push some data to it i need to write and read for each transaction DMA is required,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my intension is to send 0x15 and 0x00 only two bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for 0x15 response is 0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for 0x00 response is 0x58&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in rx buf i am not getting actual data on MISO line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in rx buffer i am getting only&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x52 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;these are missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x58&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;due to generation of extra clock on each transaction i am not getting exact data instead of i am getting some failure responses from spi slave .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And can you please tell me how to send more than 1024 bytes with DMA in spi.&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337993"&gt;logic_capture.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337993"&gt;dma_spi.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:21:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:21:27Z</dc:date>
    <item>
      <title>DMA + SPI issue in LpcXprsso OM13077</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-SPI-issue-in-LpcXprsso-OM13077/m-p/582585#M20692</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pradeep salloju on Tue May 12 06:43:13 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using LPCXpresso 54102 Evaluation board (OM13077). i have used lpcopen examples project (rom_spim_int_dma) in my application but when i am setting buffer size as BUFFSIZE 2 i am getting 4 clock cycles generating on one transaction with that i am unable to read exact slave data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;There is a problem with DMA transfer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My application is complete synchronous application i will get valid data from slave when i push some data to it i need to write and read for each transaction DMA is required,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;my intension is to send 0x15 and 0x00 only two bytes&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;for 0x15 response is 0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for 0x00 response is 0x58&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;but in rx buf i am not getting actual data on MISO line.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in rx buffer i am getting only&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x52 &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;these are missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x00&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;0x58&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;due to generation of extra clock on each transaction i am not getting exact data instead of i am getting some failure responses from spi slave .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And can you please tell me how to send more than 1024 bytes with DMA in spi.&lt;/SPAN&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337993"&gt;logic_capture.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337993"&gt;dma_spi.c.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:21:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/DMA-SPI-issue-in-LpcXprsso-OM13077/m-p/582585#M20692</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:21:27Z</dc:date>
    </item>
  </channel>
</rss>

