<?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のトピックRe: mcf5329 cache or SDRAM problem ?</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5329-cache-or-SDRAM-problem/m-p/162478#M5261</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we might have found the problem:&lt;/P&gt;&lt;P&gt;at initialization of the SDRAM, we did:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp;&amp;nbsp; (a1)+,#0x008B0000 &amp;nbsp;&amp;nbsp; // Issue LMR&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp;&amp;nbsp; (a1)+,#0x40130000 &amp;nbsp;&amp;nbsp; // Lock SDMR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second command is the problem, it seems to apply to an 'extended mode register',&lt;/P&gt;&lt;P&gt;but our SDRAM does not have such a register. Removing this command solves the problem.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Does anybody know something about this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfram&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Dec 2009 20:10:58 GMT</pubDate>
    <dc:creator>schranzo</dc:creator>
    <dc:date>2009-12-17T20:10:58Z</dc:date>
    <item>
      <title>mcf5329 cache or SDRAM problem ?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5329-cache-or-SDRAM-problem/m-p/162477#M5260</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;&lt;/P&gt;&lt;P&gt;we have a weird problem on a MCF5329-based board (16 MB SDRAM, 16 MB NOR-Flash).&lt;/P&gt;&lt;P&gt;On bootup (assembler), we first invalidate the cache completely:&lt;/P&gt;&lt;P&gt;&amp;nbsp; move.l&amp;nbsp; #CACR_CINVA|CACR_ESB|CACR_DNFB,d0&lt;BR /&gt;&amp;nbsp; movec&amp;nbsp;&amp;nbsp; d0,cacr&lt;/P&gt;&lt;P&gt;&amp;nbsp; nop&lt;/P&gt;&lt;P&gt;After initializing some stuff, among them the SDRAMC, the cache is enabled with:&lt;/P&gt;&lt;P&gt;&amp;nbsp; move.l&amp;nbsp; #CACR_EC|CACR_ESB|CACR_DNFB|CACR_DCM_CIP,d0&lt;BR /&gt;&amp;nbsp; movec&amp;nbsp;&amp;nbsp; d0,cacr&lt;/P&gt;&lt;P&gt;&amp;nbsp; nop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looking at the memory with the debugger (winIDEA using BDM) when&lt;/P&gt;&lt;P&gt;single-stepping the enabling 'movec&amp;nbsp;&amp;nbsp; d0,cacr', the memory content of the SDRAM starting&lt;/P&gt;&lt;P&gt;at 0x40000000 (cache off):&lt;/P&gt;&lt;P&gt;00 11 22 33 44 55 66 77 88 99 aa bb cc dd ee ff&amp;nbsp;&lt;/P&gt;&lt;P&gt;01 12 23 34 45 56 67 78 89 9a ab bc cd de ef f0&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;changes in this way (cache on):&lt;/P&gt;&lt;P&gt;00 11 22 33 44 55 66 77 &lt;STRONG&gt;00 11 22 33 44 55 66 77&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;01 12 23 34 45 56 67 78 &lt;STRONG&gt;01 12 23 34 45 56 67 78&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is, every 8 bytes are mirrored onto the following 8 bytes.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Disabling the cache restores the old, correct memory content.&lt;/P&gt;&lt;P&gt;This problem does _not_ occur when the cache is enabled on&lt;/P&gt;&lt;P&gt;the NOR-flash, so it seems to be related to the SDRAM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am suspecting that it could somehow be related to the SDRAM-bursts,&lt;/P&gt;&lt;P&gt;because the cache can, as far as i know, initiate burst transfers.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have an older board which does not have this problem. We triple-checked&lt;/P&gt;&lt;P&gt;the schematics, but it seems ok. But layout changed a bit between the boards,&lt;/P&gt;&lt;P&gt;so the problem could also be timing-related.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone have any idea ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is very appreciated !&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 18:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5329-cache-or-SDRAM-problem/m-p/162477#M5260</guid>
      <dc:creator>schranzo</dc:creator>
      <dc:date>2009-12-17T18:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: mcf5329 cache or SDRAM problem ?</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5329-cache-or-SDRAM-problem/m-p/162478#M5261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Update:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we might have found the problem:&lt;/P&gt;&lt;P&gt;at initialization of the SDRAM, we did:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp;&amp;nbsp; (a1)+,#0x008B0000 &amp;nbsp;&amp;nbsp; // Issue LMR&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; move.l&amp;nbsp;&amp;nbsp;&amp;nbsp; (a1)+,#0x40130000 &amp;nbsp;&amp;nbsp; // Lock SDMR&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second command is the problem, it seems to apply to an 'extended mode register',&lt;/P&gt;&lt;P&gt;but our SDRAM does not have such a register. Removing this command solves the problem.&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Does anybody know something about this ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Wolfram&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 20:10:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/mcf5329-cache-or-SDRAM-problem/m-p/162478#M5261</guid>
      <dc:creator>schranzo</dc:creator>
      <dc:date>2009-12-17T20:10:58Z</dc:date>
    </item>
  </channel>
</rss>

