<?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>Kinetis MicrocontrollersのトピックRe: DMA read from SDRAM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894738#M52824</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you configuring the trigger of the second DMA transmission?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following post:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-329561"&gt;https://community.nxp.com/docs/DOC-329561&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here explains &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;how to configure channel linking feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 May 2019 18:58:01 GMT</pubDate>
    <dc:creator>Alexis_A</dc:creator>
    <dc:date>2019-05-06T18:58:01Z</dc:date>
    <item>
      <title>DMA read from SDRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894737#M52823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp;I am currently using a K28 board to prototype out device.&amp;nbsp; &amp;nbsp;I receive data over USB which is written to a buffer and eventually I use DMA to write this buffer over QSPI to an FPGA.&amp;nbsp; &amp;nbsp;When the buffers are located in SRAM this works fine but I need to add some additional larger buffer.&amp;nbsp; So I enable SDRAM and use buffers allocated there.&amp;nbsp; &amp;nbsp;I can receive the data over USB and by examining the SDRAM I can see the data is written successfully.&amp;nbsp; However, for the DMA from SDRAM to QSPI&amp;nbsp; I never get the DMA complete notification.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Since USB can write to SDRAM I assume SDRAM is configured properly so I'm not sure what to look at.&amp;nbsp; Anyone done this or have any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Apr 2019 22:28:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894737#M52823</guid>
      <dc:creator>jeff_hane</dc:creator>
      <dc:date>2019-04-29T22:28:20Z</dc:date>
    </item>
    <item>
      <title>Re: DMA read from SDRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894738#M52824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How are you configuring the trigger of the second DMA transmission?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the following post:&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-329561"&gt;https://community.nxp.com/docs/DOC-329561&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here explains &lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;how to configure channel linking feature.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 May 2019 18:58:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894738#M52824</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-05-06T18:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: DMA read from SDRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894739#M52825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for you reply but I'm no looking the link the USB directly to the QSPI.&amp;nbsp; There are multiple data sources for the QSPI interface so I have to manage the transactions through a queue so can't have incoming USB packets directly trigger a QSPI access.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some further info, here is the setup I am using&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define SDRAM_START_ADDRESS (0x70000000U)&lt;BR /&gt;#define BUS_CLK_FREQ CLOCK_GetFreq(kCLOCK_FlexBusClk)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;uint32_t soptReg;&lt;BR /&gt;&amp;nbsp;uint32_t fbReg;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;sdramc_refresh_config_t refreshConfig;&lt;BR /&gt;&amp;nbsp;sdramc_blockctl_config_t blockConfig;&lt;BR /&gt;&amp;nbsp;sdramc_config_t config;&lt;BR /&gt;&amp;nbsp;refreshConfig.refreshTime = kSDRAMC_RefreshThreeClocks;&lt;BR /&gt;&amp;nbsp;refreshConfig.sdramRefreshRow = 15625;&lt;BR /&gt;&amp;nbsp;refreshConfig.busClock_Hz = 60000000;&lt;BR /&gt;&amp;nbsp;blockConfig.block = kSDRAMC_Block0;&lt;BR /&gt;&amp;nbsp;blockConfig.portSize = kSDRAMC_PortSize16Bit;&lt;BR /&gt;&amp;nbsp;blockConfig.location = kSDRAMC_Commandbit19;&lt;BR /&gt;&amp;nbsp;blockConfig.latency = kSDRAMC_RefreshThreeClocks;&lt;BR /&gt;&amp;nbsp;blockConfig.address = SDRAM_START_ADDRESS;&lt;BR /&gt;&amp;nbsp;blockConfig.addressMask = 0x7c0000;&lt;BR /&gt;&amp;nbsp;config.refreshConfig = &amp;amp;refreshConfig,&lt;BR /&gt;&amp;nbsp;config.blockConfig = &amp;amp;blockConfig,&lt;BR /&gt;&amp;nbsp;config.numBlockConfig = 1;&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;/* Set clock out to flexbus CLKOUT. */&lt;BR /&gt;&amp;nbsp;CLOCK_SetClkOutClock(0);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;/* Sets the Flexbus security level*/&lt;BR /&gt;&amp;nbsp;soptReg = SIM-&amp;gt;SOPT2 &amp;amp; ~SIM_SOPT2_FBSL_MASK;&lt;BR /&gt;&amp;nbsp;SIM-&amp;gt;SOPT2 = soptReg | SIM_SOPT2_FBSL(3);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;/* Enable the FB_BE_xx_yy signal in Flexbus */&lt;BR /&gt;&amp;nbsp;CLOCK_EnableClock(kCLOCK_Flexbus0);&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;fbReg = FB-&amp;gt;CSPMCR &amp;amp; ~FB_CSPMCR_GROUP2_MASK;&lt;BR /&gt;&amp;nbsp;FB-&amp;gt;CSPMCR = fbReg | FB_CSPMCR_GROUP2(2);&lt;BR /&gt;&amp;nbsp;fbReg = FB-&amp;gt;CSPMCR &amp;amp; ~FB_CSPMCR_GROUP3_MASK;&lt;BR /&gt;&amp;nbsp;FB-&amp;gt;CSPMCR = fbReg | FB_CSPMCR_GROUP3(2);&lt;BR /&gt;&amp;nbsp;fbReg = FB-&amp;gt;CSPMCR &amp;amp; ~FB_CSPMCR_GROUP4_MASK;&lt;BR /&gt;&amp;nbsp;FB-&amp;gt;CSPMCR = fbReg | FB_CSPMCR_GROUP4(2);&lt;BR /&gt;&amp;nbsp;fbReg = FB-&amp;gt;CSPMCR &amp;amp; ~FB_CSPMCR_GROUP5_MASK;&lt;BR /&gt;&amp;nbsp;FB-&amp;gt;CSPMCR = fbReg | FB_CSPMCR_GROUP5(2);&lt;BR /&gt;&amp;nbsp;/* SDRAM initialize. */&lt;BR /&gt;&amp;nbsp;SDRAMC_Init(SDRAM, &amp;amp;config);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 May 2019 18:44:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894739#M52825</guid>
      <dc:creator>jeff_hane</dc:creator>
      <dc:date>2019-05-07T18:44:28Z</dc:date>
    </item>
    <item>
      <title>Re: DMA read from SDRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894740#M52826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Jeff,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you check if the transmission alone&amp;nbsp;from the SDRAM to the QSPI is doing it right? Maybe the problem could be in the transmission between this two peripherals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Alexis Andalon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 May 2019 21:42:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894740#M52826</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-05-09T21:42:56Z</dc:date>
    </item>
    <item>
      <title>Re: DMA read from SDRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894741#M52827</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alex,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Thanks for your response but I wasn't quite clear what you were asking.&amp;nbsp; However,&amp;nbsp; I made me go back and try just doing a small block of data using PIO from SDRAM to QSPI.&amp;nbsp; &amp;nbsp;This appears to work.&amp;nbsp; I wanted to use SDRAM so I could allocate larger buffers of around 100K but after the PIO test I tried testing with smaller buffers.&amp;nbsp; &amp;nbsp;DMA did work for smaller buffers.&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; After some more digging I discovered that the IDATSZ field in one of the QSPI registers can only go up to 65K.&amp;nbsp; &amp;nbsp;This resulted in there being a difference between the QSPI and the DMA engine so I believe the DMA was hanging because the QSPI was not accepting enough data.&amp;nbsp; &amp;nbsp;Now I just have to figure out how to do large DMAs to QSPI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks,&lt;/P&gt;&lt;P&gt;jeff&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 May 2019 21:49:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894741#M52827</guid>
      <dc:creator>jeff_hane</dc:creator>
      <dc:date>2019-05-24T21:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: DMA read from SDRAM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894742#M52828</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm glad that you could resolve your problem and thanks to share your solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alexis Andaon&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 May 2019 19:42:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/DMA-read-from-SDRAM/m-p/894742#M52828</guid>
      <dc:creator>Alexis_A</dc:creator>
      <dc:date>2019-05-27T19:42:24Z</dc:date>
    </item>
  </channel>
</rss>

