<?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>ColdFire/68K Microcontrollers and Processors中的主题 Memory corruption</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259738#M11697</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on MCF52259 microcontroller. The modules i am using are QSPI, USB and some pins. Basically, I am reading some stuff from QSPI and storing it and finally sending it out on USB Isochronous endpoint. The problem is that my memory gets overwritten by unknown reason.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into the docs and found out about the dual ported SRAM. Is that causing the problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 10 Apr 2013 13:55:43 GMT</pubDate>
    <dc:creator>salman83</dc:creator>
    <dc:date>2013-04-10T13:55:43Z</dc:date>
    <item>
      <title>Memory corruption</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259738#M11697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am working on MCF52259 microcontroller. The modules i am using are QSPI, USB and some pins. Basically, I am reading some stuff from QSPI and storing it and finally sending it out on USB Isochronous endpoint. The problem is that my memory gets overwritten by unknown reason.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I looked into the docs and found out about the dual ported SRAM. Is that causing the problem.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Apr 2013 13:55:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259738#M11697</guid>
      <dc:creator>salman83</dc:creator>
      <dc:date>2013-04-10T13:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: Memory corruption</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259739#M11698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I further debugged the program and it looks like there is memory overlapping.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me explain the whole scenario.&lt;/P&gt;&lt;P&gt;Total RAM is 64K. I am using 60K for storage of data from QSPI. I sent the data via USB on isochronous endpoint.&lt;/P&gt;&lt;P&gt;The problem I think is that whenever I pass the buffer pointers to buffer descriptor, the DMA copies the data to another memory location for transfer. I do not know if it is copying it in the same RAM which i am using.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My RAM address is 0x20000000 and my RAMBAR register value is pointing to 0x20000000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help will be highly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Apr 2013 10:31:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259739#M11698</guid>
      <dc:creator>salman83</dc:creator>
      <dc:date>2013-04-11T10:31:30Z</dc:date>
    </item>
    <item>
      <title>Re: Memory corruption</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259740#M11699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I further looked into the problem and found out that as soon as the usb is in configured state, it overwrites the memory. Can somebody put some light on it. I do not understand it what is causing this problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 08:05:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259740#M11699</guid>
      <dc:creator>salman83</dc:creator>
      <dc:date>2013-04-16T08:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Memory corruption</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259741#M11700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Overwrites the memory". I assume you're meaning the USB is overwriting the last 4k that you're using for something else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you sure you're following the "The BDT resides on a 512 byte boundary in system memory" rules?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try configuring a smaller USB buffer size.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try configuring the USB from 4k to 64k and put your other memory at the BOTTOM. That may give a different error that lets you keep investigating.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You had an incorrectly set up PACR causing you trouble, so check the rest of them and also check the MPR register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 12:41:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259741#M11700</guid>
      <dc:creator>TomE</dc:creator>
      <dc:date>2013-04-16T12:41:20Z</dc:date>
    </item>
    <item>
      <title>Re: Memory corruption</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259742#M11701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Salman, is that working for you?&lt;/P&gt;&lt;P&gt;Please keep us posted, we'd like to know :smileywink:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Monica&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2013 22:39:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Memory-corruption/m-p/259742#M11701</guid>
      <dc:creator>Monica</dc:creator>
      <dc:date>2013-04-24T22:39:09Z</dc:date>
    </item>
  </channel>
</rss>

