<?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 GPDMA + SSP + LPC17xx in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656202#M52685</link>
    <description>&lt;P&gt;GPDMA Read/Write using SSP to Macronix MX25L25625F Flash memory&lt;/P&gt;&lt;P&gt;Works correctly when software is downloaded and executed via MCUXpresso IDE&lt;/P&gt;&lt;P&gt;If I disconnect IDE debugger and then power cycle device only 1st byte of read sector is received, all other bytes remain at 0x5A as initialized before enabling DMA transfer.&lt;/P&gt;&lt;P&gt;After much experimentation if I place read buffer in RAMAHB32, DMA works after power cycle.&lt;/P&gt;&lt;P&gt;Changing read buffer location back to default RAM, DMA stops working after power cycle.&lt;/P&gt;&lt;P&gt;If firmware is executed via IDE debugger, it doesn't matter which ram zone read buffer is located.&lt;/P&gt;</description>
    <pubDate>Wed, 24 May 2023 03:27:54 GMT</pubDate>
    <dc:creator>Solarhacker</dc:creator>
    <dc:date>2023-05-24T03:27:54Z</dc:date>
    <item>
      <title>GPDMA + SSP + LPC17xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656202#M52685</link>
      <description>&lt;P&gt;GPDMA Read/Write using SSP to Macronix MX25L25625F Flash memory&lt;/P&gt;&lt;P&gt;Works correctly when software is downloaded and executed via MCUXpresso IDE&lt;/P&gt;&lt;P&gt;If I disconnect IDE debugger and then power cycle device only 1st byte of read sector is received, all other bytes remain at 0x5A as initialized before enabling DMA transfer.&lt;/P&gt;&lt;P&gt;After much experimentation if I place read buffer in RAMAHB32, DMA works after power cycle.&lt;/P&gt;&lt;P&gt;Changing read buffer location back to default RAM, DMA stops working after power cycle.&lt;/P&gt;&lt;P&gt;If firmware is executed via IDE debugger, it doesn't matter which ram zone read buffer is located.&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 03:27:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656202#M52685</guid>
      <dc:creator>Solarhacker</dc:creator>
      <dc:date>2023-05-24T03:27:54Z</dc:date>
    </item>
    <item>
      <title>Re: GPDMA + SSP + LPC17xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656340#M52691</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;As the following figure, the "32 kB local static RAM" which is located from address 0x1000_0000 is called local RAM, it means that only core(I-code bus and D-code bus) can access the RAM, DMA can not access the RAM.&lt;/P&gt;
&lt;P&gt;The "AHB SRAM (2 blocks of 16 kB)"&amp;nbsp;which is located from address 0x2007_C000 is global RAM, all the master such as&amp;nbsp; the DMA, core, USB, ethernet modules can access the RAM.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="xiangjun_rong_0-1684909986108.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/224635i55ED89AE96FFA948/image-size/medium?v=v2&amp;amp;px=400" role="button" title="xiangjun_rong_0-1684909986108.png" alt="xiangjun_rong_0-1684909986108.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;In conclusion, you have to use the 32KB AHB SRAM if you use DMA to transfer data from/to SRAM.&lt;/P&gt;
&lt;P&gt;Hope it can help you&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;XiangJun Rong&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 06:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656340#M52691</guid>
      <dc:creator>xiangjun_rong</dc:creator>
      <dc:date>2023-05-24T06:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: GPDMA + SSP + LPC17xx</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656830#M52713</link>
      <description>&lt;P&gt;I moved all the buffers that are accessed by DMA which fixed issue. What I don't understand, before I moved all the DMA accessed buffers, DMA would function as expected if code is executed via MCUXpresso IDE, it would only fail after hardware reset to restart same firmware.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Darren&lt;/P&gt;</description>
      <pubDate>Wed, 24 May 2023 17:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/GPDMA-SSP-LPC17xx/m-p/1656830#M52713</guid>
      <dc:creator>Solarhacker</dc:creator>
      <dc:date>2023-05-24T17:08:42Z</dc:date>
    </item>
  </channel>
</rss>

