<?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>LPCXpresso IDE中的主题 AHB/DMA RAM2 problems.</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/AHB-DMA-RAM2-problems/m-p/530080#M1792</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Bill@medsignals.com on Fri May 09 08:02:43 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My program is using more than the 32k Ram that is in bank one and needs to utilize bank 2.&amp;nbsp; However when I use the __DATA(RAM2) macro I encounter various problems depending on which variables I try to move to RAM2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The project uses FreeRTOS with heap2, If I try to assign the heap to __DATA(RAM2) there are hard fault errors.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently found out that DMA (for i2s) is in use on this project.&amp;nbsp; There are some buffers that are assigned as pointers to 0x2007d000&amp;nbsp; and the other is 0x2007e000.&amp;nbsp; I don't like this hard coded assignment but when I try to use the __DATA(RAM2) macro to create buffers then use the address of these buffers, suddenly variables in RAM1 no longer work.&amp;nbsp; In the memory view RAM1 is all zeros.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the AHB ram be used for both DMA and DATA?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why do variables in RAM1 not get initialized properly when the __DATA(RAM2) macro is used anywhere in the project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; If I change the buffers for the DMA to use __BSS(RAM2) suddenly everything seems to start working, Anyone know what would cause this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:04:14 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:04:14Z</dc:date>
    <item>
      <title>AHB/DMA RAM2 problems.</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/AHB-DMA-RAM2-problems/m-p/530080#M1792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Bill@medsignals.com on Fri May 09 08:02:43 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;My program is using more than the 32k Ram that is in bank one and needs to utilize bank 2.&amp;nbsp; However when I use the __DATA(RAM2) macro I encounter various problems depending on which variables I try to move to RAM2.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The project uses FreeRTOS with heap2, If I try to assign the heap to __DATA(RAM2) there are hard fault errors.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I recently found out that DMA (for i2s) is in use on this project.&amp;nbsp; There are some buffers that are assigned as pointers to 0x2007d000&amp;nbsp; and the other is 0x2007e000.&amp;nbsp; I don't like this hard coded assignment but when I try to use the __DATA(RAM2) macro to create buffers then use the address of these buffers, suddenly variables in RAM1 no longer work.&amp;nbsp; In the memory view RAM1 is all zeros.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can the AHB ram be used for both DMA and DATA?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why do variables in RAM1 not get initialized properly when the __DATA(RAM2) macro is used anywhere in the project?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;EDIT:&amp;nbsp; If I change the buffers for the DMA to use __BSS(RAM2) suddenly everything seems to start working, Anyone know what would cause this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:04:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/AHB-DMA-RAM2-problems/m-p/530080#M1792</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:04:14Z</dc:date>
    </item>
  </channel>
</rss>

