<?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: Using FatFs with EDMA SPI1 in K64F based board for datalogging into SD card in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472219#M3816</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I was trying to use SPI with DMA. I ended up changing the SDSPI_DRV_Write and SDSPI_DRV_Read functions in fsl_sdcard_spi.c so that it would send divide a 512B block in two 256B to exchange.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Denis &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Mar 2016 11:36:55 GMT</pubDate>
    <dc:creator>denisdantas</dc:creator>
    <dc:date>2016-03-01T11:36:55Z</dc:date>
    <item>
      <title>Using FatFs with EDMA SPI1 in K64F based board for datalogging into SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472217#M3814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I'm currently working on a K64F based board running freeRTOS tasks. I'm trying to use the SD card for data logging through SPI1, but my data logging service is apparently interrupting the UART interruptions too often.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using KSDK 1.3's fatfs files provided in "..\KSDK_1.3.0\middleware\filesystem\fatfs" with fsl_sdspi_disk and fsl_sdcard_spi (..\KSDK_1.3.0\platform\composite\src\sdcard). Inside the fsl_sdspi_disk I use the EDMA for the SPI1 communication. Because the fatfs gives me a limitation of a minimum transfer block size of 512KB, I had to change the SPI1_IRQHandler in fsl_dspi_edma_irq.c to use DSPI_DRV_IRQHandler(SPI1_IDX) instead of DSPI_DRV_EdmaIRQHandler(SPI1_IDX) - therefore I'm not using the EDMA for receiving data, right?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Because I'm not using EDMA to receive data, due to block size limitation of the fat, I believe that the SPI is interrupting the UART too often - it initializes the sdcard with 700KHz and then it goes to +1MHz. I'd like to know if there's any work around to fully use the EDMA to communicate with an SD card. My application is using three UARTs with baud rates of 4800, 9600 and 19400 bps - those UARTs have polling reception because they receive variable string length.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Feb 2016 14:16:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472217#M3814</guid>
      <dc:creator>denisdantas</dc:creator>
      <dc:date>2016-02-19T14:16:02Z</dc:date>
    </item>
    <item>
      <title>Re: Using FatFs with EDMA SPI1 in K64F based board for datalogging into SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472218#M3815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Regarding your question, Now, you use SPI to transfer data between memory and SD card based on interrupt mechanism without DMA, because of overload of SPI interrupt, some uart interrupt is not serviced.&lt;/P&gt;&lt;P&gt;I do not know why you can not use the spi plus DMA mode, which will decrease the cpu loading.&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;XiangJun Rong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 08:49:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472218#M3815</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2016-03-01T08:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using FatFs with EDMA SPI1 in K64F based board for datalogging into SD card</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472219#M3816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;XiangJun Rong,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;I was trying to use SPI with DMA. I ended up changing the SDSPI_DRV_Write and SDSPI_DRV_Read functions in fsl_sdcard_spi.c so that it would send divide a 512B block in two 256B to exchange.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Best Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Denis &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Mar 2016 11:36:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/Using-FatFs-with-EDMA-SPI1-in-K64F-based-board-for-datalogging/m-p/472219#M3816</guid>
      <dc:creator>denisdantas</dc:creator>
      <dc:date>2016-03-01T11:36:55Z</dc:date>
    </item>
  </channel>
</rss>

