<?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: Issues with DMA mode SPI on FDRM-K22F Board in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506416#M5038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;According to the post the problem exists with a spi clock at 10mhz as well, could you post your project for verification?&lt;/P&gt;&lt;P&gt;I have duplicated the problem with all clock frequencies including this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; core clock at 80mhz and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bus clock at 40mhz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi clock at 20mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From &lt;SPAN style="font-family: 'HelveticaLTStd'; font-size: 12pt;"&gt;K22P121M120SF7.pdf The SPI clock is well within the capabilities of the part, and this is evident since it functions properly in interrupt mode. The issues seems to be with the DMA mode.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 15pt; font-family: 'HelveticaLTStd'; font-weight: bold;"&gt;3.8.3 DSPI switching specifications (limited voltage range)&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-weight: bold; font-size: 15pt; font-family: 'HelveticaLTStd';"&gt; &lt;SPAN style="font-size: 9pt; font-family: 'HelveticaLTStd';"&gt;&amp;nbsp; &lt;SPAN style="font-size: 9pt; font-family: 'HelveticaLTStd';"&gt;Frequency of operation&amp;nbsp; &lt;/SPAN&gt; 30 MHz&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt;&lt;EM&gt; DSPI_SCK output cycle time (min) =&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt;&lt;EM&gt;2 x tBUS&lt;/EM&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Apr 2016 13:12:39 GMT</pubDate>
    <dc:creator>lsafreescale</dc:creator>
    <dc:date>2016-04-15T13:12:39Z</dc:date>
    <item>
      <title>Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506414#M5036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I seem to have encountered a bug in the DMA mode SPI where it only transfers the first five bytes of data and still reports a 'success'.&lt;/P&gt;&lt;P&gt;To reproduce the issue I wired the SPI0_out to SPI0_in (connect pins 11 and 16 on the J1 header) and created the following test project:&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Create new Kinetis SDK 1.x Project&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select the K22FN512xxx12 processor (eventually I will be using a custom board so I didn't want to start with all the premade board files)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Select Processor Expert and hardware configuration&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the Components Library add fsl_dspi and fsl_debug_console to the project.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open the fsl_clock_manager in the component inspector:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In properties&amp;gt;clock management&amp;gt;clock settings&amp;gt;clock sources&amp;gt; Select External Oscillator 0 and then external crystal as an additional clock source&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In properties&amp;gt;clock management&amp;gt;clock settings&amp;gt;clock configurations&amp;gt;MCG settings select PEE mode and MCG output to be 80 MHz, Reference clock source should be 'External Clock'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In properties&amp;gt;clock management&amp;gt;clock settings&amp;gt;clock configurations&amp;gt;System Clocks set core clock and bus clock to 40 MHz, External bus clock to be 20 MHz and the Flash clock to be 10 MHz&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open fsl_dspi in the component inspector:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In properties select "device: SPI0" and "component mode: DMA"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In properties&amp;gt;configuration list set the clock speed to be 20 MHz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; In properties&amp;gt;pins:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; input: CMP0_IN1/PTC7/SPI0_SIN/USB_SOF_OUT/I2S0_RX_FS/FBa_AD8&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; output: CMP0_IN0/PTC6/LLWU_P10/SPI0_SOUT/PDB0_EXTRG/I2S0_RX_BCLK/FBa_AD9/I2S0_MCLK&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock: PTC5/LLWU_P9/SPI0_SCK/LPTMR0_ALT2/I2S0_RXD0/FBa_AD10/CMP0_OUT/FTM0_CH2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; chip select: ADC0_SE4b/CMP1_IN0/PTC2/SPI0_PCS2/UART1_CTS_b/FTM0_CH1/FBa_AD12/...&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Open fsl_debug_console in the component inspector:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Device: UART1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; RxD: ADC1_SE5a/PTE1/LLWU_P0/SPI1_SOUT/UART1_RX/I2C1_SCL/SPI1_SIN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; TxD: ADC1_SE4a/PTE0/CLKOUT32K/SPI1_PCS1/UART1_TX/I2C1_SDA/RTC_CLKOUT&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Whew! Ok now generate processor expert code and within your generated main.c put the following code where it says "put your code here":&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;&amp;nbsp; /* Write your code here */ &amp;nbsp; /* For example: for(;;) { } */ &amp;nbsp; uint8_t spiDataOut[128]={0},spiDataIn[128]={0}; //initialize data buffers &amp;nbsp; for(int i = 0; i&amp;lt;128; i++) { //put nonzero values in buffer that will be sent &amp;nbsp;&amp;nbsp;&amp;nbsp; spiDataOut[i] = i; &amp;nbsp; } &amp;nbsp; DSPI_DRV_EdmaMasterTransferBlocking(dspiCom1_IDX, NULL, spiDataOut, spiDataIn, 128, 10000); &amp;nbsp; for(int j = 0; j &amp;lt; 128; j++) { &amp;nbsp;&amp;nbsp;&amp;nbsp; debug_printf("\r\nsent: %d received: %d\r\n", spiDataOut[j], spiDataIn[j]); //print data &amp;nbsp; } &amp;nbsp; debug_printf("\n\n"); &amp;nbsp; /*** Don't write any code pass this line, or it will be deleted during code generation. ***/&lt;/PRE&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The terminal data then looks like this:&lt;/P&gt;&lt;P&gt;sent: 0 received: 0&lt;/P&gt;&lt;P&gt;sent: 1 received: 1&lt;/P&gt;&lt;P&gt;sent: 2 received: 2&lt;/P&gt;&lt;P&gt;sent: 3 received: 3&lt;/P&gt;&lt;P&gt;sent: 4 received: 4&lt;/P&gt;&lt;P&gt;sent: 5 received: 0&lt;/P&gt;&lt;P&gt;sent: 6 received: 0&lt;/P&gt;&lt;P&gt;sent: 7 received: 0&lt;/P&gt;&lt;P&gt;sent: 8 received: 0&lt;/P&gt;&lt;P&gt;sent: 9 received: 0&lt;/P&gt;&lt;P&gt;sent: 10 received: 0&lt;/P&gt;&lt;P&gt;sent: 11 received: 0&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sent: 127 received: 0&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you do the same thing with interrupt mode SPI:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Open fsl_dspi in the component inspector and then change component mode to Interrupt&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Change line 7 in the code above to:&lt;/P&gt;&lt;PRE class="c++" name="code"&gt;DSPI_DRV_MasterTransferBlocking(dspiCom1_IDX, NULL, spiDataOut, spiDataIn, 128, 10000);&lt;/PRE&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sent: 0 received: 0&lt;/P&gt;&lt;P&gt;sent: 1 received: 1&lt;/P&gt;&lt;P&gt;sent: 2 received: 2&lt;/P&gt;&lt;P&gt;sent: 3 received: 3&lt;/P&gt;&lt;P&gt;sent: 4 received: 4&lt;/P&gt;&lt;P&gt;sent: 5 received: 5&lt;/P&gt;&lt;P&gt;sent: 6 received: 6&lt;/P&gt;&lt;P&gt;sent: 7 received: 7&lt;/P&gt;&lt;P&gt;sent: 8 received: 8&lt;/P&gt;&lt;P&gt;sent: 9 received: 9&lt;/P&gt;&lt;P&gt;sent: 10 received: 10&lt;/P&gt;&lt;P&gt;sent: 11 received: 11&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;sent: 127 received: 127&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Additionally I have tried with the default clock settings and SPI running at only 10 MHz -- same issue.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The data transfer call always returns a zero which indicates a successful transfer, for both the successful interrupt based example and the not working dma based example.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried with a non blocking transfer and checking the status until it no longer says 'busy' before moving on to the rest of the program, this would return busy once and say it had sent 5 bytes and then return 'success' and say it had then transferred all 128 yet only five were correct, the rest were zeros as above.&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also tried playing around with the timeout parameter for the transfer method which didn't appear to have any effect on the number of bytes which were transferred. &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-338769" rel="nofollow noopener noreferrer" target="_blank"&gt;dma_bug.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 13:18:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506414#M5036</guid>
      <dc:creator>rosewall</dc:creator>
      <dc:date>2016-04-14T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506415#M5037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rose,&lt;/P&gt;&lt;P&gt;I&amp;nbsp; have check and test your project on my side,&lt;/P&gt;&lt;P&gt;the clock of SPI is too high , i change it to 10M, &lt;/P&gt;&lt;P&gt;then it can work well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it hleps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 09:22:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506415#M5037</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-15T09:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506416#M5038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice,&lt;/P&gt;&lt;P&gt;According to the post the problem exists with a spi clock at 10mhz as well, could you post your project for verification?&lt;/P&gt;&lt;P&gt;I have duplicated the problem with all clock frequencies including this one:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; core clock at 80mhz and&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bus clock at 40mhz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; spi clock at 20mhz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From &lt;SPAN style="font-family: 'HelveticaLTStd'; font-size: 12pt;"&gt;K22P121M120SF7.pdf The SPI clock is well within the capabilities of the part, and this is evident since it functions properly in interrupt mode. The issues seems to be with the DMA mode.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; &lt;SPAN style="font-size: 15pt; font-family: 'HelveticaLTStd'; font-weight: bold;"&gt;3.8.3 DSPI switching specifications (limited voltage range)&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-weight: bold; font-size: 15pt; font-family: 'HelveticaLTStd';"&gt; &lt;SPAN style="font-size: 9pt; font-family: 'HelveticaLTStd';"&gt;&amp;nbsp; &lt;SPAN style="font-size: 9pt; font-family: 'HelveticaLTStd';"&gt;Frequency of operation&amp;nbsp; &lt;/SPAN&gt; 30 MHz&amp;nbsp; &lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-weight: bold; font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt;&lt;EM&gt; &lt;/EM&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt;&lt;EM&gt; DSPI_SCK output cycle time (min) =&amp;nbsp; &lt;/EM&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt;&lt;EM&gt;2 x tBUS&lt;/EM&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.000000pt; font-family: 'HelveticaLTStd';"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Apr 2016 13:12:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506416#M5038</guid>
      <dc:creator>lsafreescale</dc:creator>
      <dc:date>2016-04-15T13:12:39Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506417#M5039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;The clock rate is slow use DMA than interrupt(cpu), the clock rate range in the Reference Manual&lt;/P&gt;&lt;P&gt;is use the CPU not the&amp;nbsp; DMA.&lt;/P&gt;&lt;P&gt;you can test the 4MHZ, it can work well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/32375iFFC72F72E0C50061/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Yes, in your project , when use the 10MHZ, it still have two data is wrong , sorry for my mistake.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;Alice&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 02:13:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506417#M5039</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-18T02:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506418#M5040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alice,&lt;/P&gt;&lt;P&gt;Thank you for looking into the issue. Where are the SPI clock ranges specified? All the manual says is: &lt;/P&gt;&lt;P&gt;"The SPI module is clocked by the internal bus clock (the DSPI refers to it as system clock). The module has an internal divider, with a minimum divide is two. So, the SPI can run at a maximum frequency of bus clock/2."&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;"In VLPR and VLPW modes the max SPI_CLK frequency is 2MHz."&lt;/P&gt;&lt;P&gt;As we are not using low power mode it seems we should be able to run DMA SPI at 20 MHz since our our bus clock is 40 MHz.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Apr 2016 17:38:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506418#M5040</guid>
      <dc:creator>rosewall</dc:creator>
      <dc:date>2016-04-18T17:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506419#M5041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rose,&lt;/P&gt;&lt;P&gt;For the main speed limit is the DMA speed.&lt;/P&gt;&lt;P&gt;About the detail information please check the &lt;STRONG&gt;22.4.4.3 eDMA performance example&lt;/STRONG&gt; of Reference Manual .&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34695i1FCB3ABF787327A1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Then after calculate , we can see the clock rate limited&amp;nbsp; is 6MH .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 08:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506419#M5041</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-20T08:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506420#M5042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks&amp;nbsp; &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/Alice_Yang"&gt;Alice_Yang&lt;/A&gt;​&lt;/P&gt;&lt;P&gt;The data you provided is &lt;STRONG&gt;request &lt;/STRONG&gt;per seconds, not &lt;STRONG&gt;bits&lt;/STRONG&gt; per second...&lt;/P&gt;&lt;P&gt;A 20 mhz 8 bit spi will generate request to the DMA at 20mhz/8bit = 2.5Mreq/sec which is well within the 6Mreq/sec listed here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the transfer on the oscilloscope, the system has no problems keeping up with the outgoing stream at 20 mhz which we can verify. The problem is the incoming data is not getting filled in.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 16:27:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506420#M5042</guid>
      <dc:creator>lsafreescale</dc:creator>
      <dc:date>2016-04-20T16:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506421#M5043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alice, could we please get an update on this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Apr 2016 13:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506421#M5043</guid>
      <dc:creator>lsafreescale</dc:creator>
      <dc:date>2016-04-22T13:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506422#M5044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;"A 20 mhz 8 bit spi will generate request to the DMA at 20mhz/8bit = 2.5Mreq/sec which is well within the 6Mreq/sec listed here.", yes, you said is right , thank you !&lt;/P&gt;&lt;P&gt;About your project ,i&amp;nbsp; check one time and one time , you siad your core clock is 80Mhz, while&lt;/P&gt;&lt;P&gt;on the project , you configure it to 40MHZ, this is the reason :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_0.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/34954iE7EE9E5D0A30FF2A/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_0.png" alt="pastedImage_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I have test i on my side , after change it to 80MHZ, it can work well .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Apr 2016 09:17:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506422#M5044</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-25T09:17:01Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506423#M5045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Alice, I've tried it with 80 and couldn't make it work!&amp;nbsp; Would you mind posting a project that works so we can see what the difference is?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2016 18:51:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506423#M5045</guid>
      <dc:creator>lsafreescale</dc:creator>
      <dc:date>2016-04-26T18:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with DMA mode SPI on FDRM-K22F Board</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506424#M5046</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 just change the system clock on your project.&lt;/P&gt;&lt;P&gt;On your project you send to me , the system clock is not 80M, it is 40M.&lt;/P&gt;&lt;P&gt;Ok ,&amp;nbsp; attach the project i changed , and also the result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/35853i0B207B0F6A8D1893/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Alice&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2016 01:33:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Issues-with-DMA-mode-SPI-on-FDRM-K22F-Board/m-p/506424#M5046</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2016-04-27T01:33:45Z</dc:date>
    </item>
  </channel>
</rss>

