<?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のトピックCircuit design error, looking for a workaround</title>
    <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192407#M8416</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have developed a little custom board, with a MCF5307, a 16x2MB (word programmable) parallel flash (SST39VF3201B), a 16MegB. SDRAM and some other peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, since this is one of my first quite big embedded circuit development, i connected for error the flash memory address bus with A0 -&amp;gt; A0 of the micro, A1-&amp;gt;A1, A2-&amp;gt;A2 ... instead of A0 to A1, A1-&amp;gt;A2 etc.&lt;/P&gt;&lt;P&gt;Running through codewarrior/BDM from internal ram i can read and write it anyway using some C cast + byte swap, like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
volatile unsigned char* baseaddress = 0xFFC0;

unsigned short test = *(unsigned short*)(baseaddress);

// test then need to be swapped to read the correct value
.....
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, i am quite sure that, even if i program the flash, the MCF5307 will not be able to boot reading from the flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The board is just a prototype, but anyway, if someone know of some trick for the boot, this is really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by spectrum on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-06-22&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:14 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by spectrum on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-06-22&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:14 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2020 09:44:55 GMT</pubDate>
    <dc:creator>angelo_d</dc:creator>
    <dc:date>2020-10-29T09:44:55Z</dc:date>
    <item>
      <title>Circuit design error, looking for a workaround</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192407#M8416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have developed a little custom board, with a MCF5307, a 16x2MB (word programmable) parallel flash (SST39VF3201B), a 16MegB. SDRAM and some other peripheral.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, since this is one of my first quite big embedded circuit development, i connected for error the flash memory address bus with A0 -&amp;gt; A0 of the micro, A1-&amp;gt;A1, A2-&amp;gt;A2 ... instead of A0 to A1, A1-&amp;gt;A2 etc.&lt;/P&gt;&lt;P&gt;Running through codewarrior/BDM from internal ram i can read and write it anyway using some C cast + byte swap, like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;
volatile unsigned char* baseaddress = 0xFFC0;

unsigned short test = *(unsigned short*)(baseaddress);

// test then need to be swapped to read the correct value
.....
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, i am quite sure that, even if i program the flash, the MCF5307 will not be able to boot reading from the flash.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The board is just a prototype, but anyway, if someone know of some trick for the boot, this is really appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks in advance,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by spectrum on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-06-22&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:14 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by spectrum on&lt;/SPAN&gt; &lt;SPAN class="local-date"&gt;2009-06-22&lt;/SPAN&gt; &lt;SPAN class="local-time"&gt;08:14 AM&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2020 09:44:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192407#M8416</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2020-10-29T09:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Circuit design error, looking for a workaround</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192408#M8417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are just looking to boot, I think what you need to do is to program each word at two locations.&amp;nbsp; Put the first word at word address: 0x00000000 and 0x00000001, the second at: 0x00000002 and 0x00000003, and so on.&amp;nbsp; In this way the FLASH essentially ignores the A0 (byte address) that you have connected to the lowest address lead.&amp;nbsp; Of course you will waste half the flash since each word will have to appear twice, but it should at least run.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dave&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 21:07:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192408#M8417</guid>
      <dc:creator>Dave_at_Mot</dc:creator>
      <dc:date>2009-06-22T21:07:04Z</dc:date>
    </item>
    <item>
      <title>Re: Circuit design error, looking for a workaround</title>
      <link>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192409#M8418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Dave,&lt;/P&gt;&lt;P&gt;thats seems to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Anyway, i still need some help:&lt;/P&gt;&lt;P&gt;tha flash memory is programmed correctly but the device sometime start the boot (i see this with some leds), but mostly not.&lt;/P&gt;&lt;P&gt;Seems some wait states or bus clock issue.&lt;/P&gt;&lt;P&gt;I have the following CS0 hard reset pullup/down config:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Crystal is 40 Mhz.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;D0 -&amp;gt;0; D1 -&amp;gt;1&amp;nbsp; : Input 40Mhz -&amp;gt; CPU to 80 -&amp;gt;Bus Cloc -&amp;gt; 40&lt;/P&gt;&lt;P&gt;D2-&amp;gt;0; D3 -&amp;gt; 1: PLL between 39 and 45&lt;/P&gt;&lt;P&gt;D5 -&amp;gt;1; D6-&amp;gt;1 D7-&amp;gt;0 : 15WS, 16BIT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The flash memory i am using is a 70ns, so 3WS should be enough.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If any help,&lt;/P&gt;&lt;P&gt;many thanks,&lt;/P&gt;&lt;P&gt;Angelo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jul 2009 14:42:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/ColdFire-68K-Microcontrollers/Circuit-design-error-looking-for-a-workaround/m-p/192409#M8418</guid>
      <dc:creator>angelo_d</dc:creator>
      <dc:date>2009-07-02T14:42:09Z</dc:date>
    </item>
  </channel>
</rss>

