<?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: LPC55S69 Getting nowhere with SPI - DMA - Linked or Ping-Pong transfers in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1407859#M47810</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196225"&gt;@IanMcCarthy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to apologize for the delay. We are experimenting an anormal volume of questions these days. I really thank you for your patience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding your question, once you do a single manual start (run on debug session), all the code has to run indefinitely, and SCK from SPI has to generate more than 2 pulses (continuosly until you press stop). I would like to ask for you which example from our SDK you are using for LPC55S69? What changes did you make to the code? So I can reproduce your code on my board and see what is going on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for your help. Please let me know if you have more questions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 06:18:18 GMT</pubDate>
    <dc:creator>PabloAvalos</dc:creator>
    <dc:date>2022-02-02T06:18:18Z</dc:date>
    <item>
      <title>LPC55S69 Getting nowhere with SPI - DMA - Linked or Ping-Pong transfers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1405288#M47757</link>
      <description>&lt;P&gt;This has dragged on for far too long now...&lt;/P&gt;&lt;P&gt;I've been through the examples for single SPI/DMA transfers and these work.&lt;/P&gt;&lt;P&gt;I've been through the examples for DMA/Linked memory transfers and these work.&lt;/P&gt;&lt;P&gt;But none cover my requirement and try s I might I can't get one to fit.&lt;/P&gt;&lt;P&gt;I need a free running SPI TX/RX using DMA with either linked configurations or just ping-pong to start.&lt;/P&gt;&lt;P&gt;Surely there must be someone on here that's achieved this already, who'd be willing to share some knowledge?&lt;/P&gt;&lt;P&gt;The best I've managed so far is a set of linked configurations for SPI_DMA, which execute just once (despite the last linking back to the first) and then stop.&lt;/P&gt;&lt;P&gt;The worse is a single 8-bit transfer for linked 16-bit transfers.&lt;/P&gt;&lt;P&gt;I'm running out of ideas and pretty sure I'm now trying things that have already failed.&lt;/P&gt;&lt;P&gt;Anybody..?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jan 2022 15:36:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1405288#M47757</guid>
      <dc:creator>IanMcCarthy</dc:creator>
      <dc:date>2022-01-26T15:36:14Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Getting nowhere with SPI - DMA - Linked or Ping-Pong transfers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1406583#M47777</link>
      <description>&lt;P&gt;Third attempt to post an update...&lt;/P&gt;&lt;P&gt;I need to continuously receive data from a slave SPI device at a fixed rate (manually triggering won't meet the requirements).&lt;/P&gt;&lt;P&gt;The code below shows where I'm currently at, but this just generates 2 SPI clock pluses and that's it.&lt;/P&gt;&lt;P&gt;I'm assuming once SPI is configured I can configure a linked set of DMA descriptors and after a single manual start, this will run indefinately, or am I mistaken?&lt;/P&gt;&lt;P&gt;If someone would be willing to help out, it'd be much appreciated.&lt;/P&gt;&lt;LI-CODE lang="c"&gt;    srcClock_Hz = EXAMPLE_SPI_MASTER_CLK_FREQ;

    SPI_MasterGetDefaultConfig(&amp;amp;masterConfig);
    masterConfig.sselNum = (spi_ssel_t)EXAMPLE_SPI_SSEL;
    masterConfig.sselPol = (spi_spol_t)EXAMPLE_MASTER_SPI_SPOL;
    masterConfig.dataWidth = kSPI_Data8Bits;

    masterConfig.baudRate_Bps = 8000;

    SPI_MasterInit(EXAMPLE_SPI_MASTER, &amp;amp;masterConfig, srcClock_Hz);
    DMA_Init(EXAMPLE_DMA);

    // Enable channels
    DMA_EnableChannel(EXAMPLE_DMA, EXAMPLE_SPI_MASTER_TX_CHANNEL);
    DMA_EnableChannel(EXAMPLE_DMA, EXAMPLE_SPI_MASTER_RX_CHANNEL);

    // Set channel priorities
    DMA_SetChannelPriority(EXAMPLE_DMA, EXAMPLE_SPI_MASTER_TX_CHANNEL, kDMA_ChannelPriority3);
    DMA_SetChannelPriority(EXAMPLE_DMA, EXAMPLE_SPI_MASTER_RX_CHANNEL, kDMA_ChannelPriority2);

    // Create channel handles
    DMA_CreateHandle(&amp;amp;masterTxHandle, EXAMPLE_DMA, EXAMPLE_SPI_MASTER_TX_CHANNEL);
    DMA_CreateHandle(&amp;amp;masterRxHandle, EXAMPLE_DMA, EXAMPLE_SPI_MASTER_RX_CHANNEL);

    // Set channel callbacks
    DMA_SetCallback(&amp;amp;masterTxHandle, TxCallback, NULL);
    DMA_SetCallback(&amp;amp;masterRxHandle, RxCallback, NULL);
    DMA_SetupDescriptor(
    		&amp;amp;dmaTxDescriptors[0],
				DMA_CHANNEL_XFER(true, false, true, false, 1, 0, 0, 1),
				&amp;amp;masterTxData,
				(void *)&amp;amp;SPI7-&amp;gt;FIFOWR,
				&amp;amp;dmaTxDescriptors[1]);

    DMA_SetupDescriptor(
    		&amp;amp;dmaTxDescriptors[1],
				DMA_CHANNEL_XFER(true, false, true, false, 1, 0, 0, 1),
				&amp;amp;masterTxData,
				(void *)&amp;amp;SPI7-&amp;gt;FIFOWR,
				&amp;amp;dmaTxDescriptors[2]);

    DMA_SetupDescriptor(
    		&amp;amp;dmaTxDescriptors[2],
				DMA_CHANNEL_XFER(true, false, true, false, 1, 0, 0, 1),
				&amp;amp;masterTxData,
				(void *)&amp;amp;SPI7-&amp;gt;FIFOWR,
				&amp;amp;dmaTxDescriptors[0]);


    DMA_PrepareChannelTransfer(&amp;amp;dmaChannelConfig,
    		&amp;amp;masterTxData,
				(void *)&amp;amp;SPI7-&amp;gt;FIFOWR,
				DMA_CHANNEL_XFER(true, false, true, false, 1, 0, 0, 1),
				kDMA_MemoryToPeripheral,
				NULL,
				// &amp;amp;dmaChannelTrigger,
				&amp;amp;dmaTxDescriptors[0]
    );

    DMA_SubmitChannelTransfer(&amp;amp;masterTxHandle, &amp;amp;dmaChannelConfig);

    DMA_StartTransfer(&amp;amp;masterTxHandle);&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 11:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1406583#M47777</guid>
      <dc:creator>IanMcCarthy</dc:creator>
      <dc:date>2022-01-28T11:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Getting nowhere with SPI - DMA - Linked or Ping-Pong transfers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1407859#M47810</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196225"&gt;@IanMcCarthy&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would like to apologize for the delay. We are experimenting an anormal volume of questions these days. I really thank you for your patience.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Regarding your question, once you do a single manual start (run on debug session), all the code has to run indefinitely, and SCK from SPI has to generate more than 2 pulses (continuosly until you press stop). I would like to ask for you which example from our SDK you are using for LPC55S69? What changes did you make to the code? So I can reproduce your code on my board and see what is going on.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Thank you so much for your help. Please let me know if you have more questions.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards.&lt;BR /&gt;Pablo Avalos.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 06:18:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/1407859#M47810</guid>
      <dc:creator>PabloAvalos</dc:creator>
      <dc:date>2022-02-02T06:18:18Z</dc:date>
    </item>
    <item>
      <title>Re: LPC55S69 Getting nowhere with SPI - DMA - Linked or Ping-Pong transfers</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/2345122#M59499</link>
      <description>&lt;P&gt;I know this is an old post, but anyway... the problem is related with the width of your tx transfer. To configure the fifo must be 32 bits (16 data + 16 cfg) or you have all the configuration bit in the spi that are zeroes, with the problems you are experiencing.&lt;/P&gt;&lt;P&gt;--gra&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 14:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC55S69-Getting-nowhere-with-SPI-DMA-Linked-or-Ping-Pong/m-p/2345122#M59499</guid>
      <dc:creator>xs_graziano</dc:creator>
      <dc:date>2026-04-03T14:27:44Z</dc:date>
    </item>
  </channel>
</rss>

