<?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 NOR Flash Program fails in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151421#M3650</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;We are using MPC8321 freescale microprocessor in one our boards. We are using NOR Flash M29DW323DT, from Numonyx (now Micron) as the boot flash. We are using Code warrior utility to program/access the flash. We are stuck at the first step of programming flash. Flash is not getting accessed properly.&lt;BR /&gt;&lt;BR /&gt;As you may be aware that most of the flashes use CFI (Common Flash Interface) commands for various processes like program, erase, etc. A command consists of a sequence of writes including one or more steps. e.g in M29DW323DT, to put the flash in CFI Query mode the command is&lt;BR /&gt;Write Memory XXXX0055 with 0x00000098; this includes only one step of writing.&lt;BR /&gt;&lt;BR /&gt;In contrary, programming/erase processes include three successive writes to put the flash in Programming/Erase mode.&lt;BR /&gt;&lt;BR /&gt;It is observed that in our board, the flash is not able to take back to back writes. So for the commands which include only one write cycle, e.g Putting it in CFI query mode, it works and gives satisfactory outputs. But for commands like Program which includes 3 successive writes, it is failing.&lt;BR /&gt;&lt;BR /&gt;Please suggest what could be the reason?&lt;BR /&gt;&lt;BR /&gt;We have downloaded the flash driver from its respective website and executing the program source code through Code Warrior Debug Utility.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Sep 2010 15:26:11 GMT</pubDate>
    <dc:creator>Apurva</dc:creator>
    <dc:date>2010-09-27T15:26:11Z</dc:date>
    <item>
      <title>NOR Flash Program fails</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151421#M3650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;We are using MPC8321 freescale microprocessor in one our boards. We are using NOR Flash M29DW323DT, from Numonyx (now Micron) as the boot flash. We are using Code warrior utility to program/access the flash. We are stuck at the first step of programming flash. Flash is not getting accessed properly.&lt;BR /&gt;&lt;BR /&gt;As you may be aware that most of the flashes use CFI (Common Flash Interface) commands for various processes like program, erase, etc. A command consists of a sequence of writes including one or more steps. e.g in M29DW323DT, to put the flash in CFI Query mode the command is&lt;BR /&gt;Write Memory XXXX0055 with 0x00000098; this includes only one step of writing.&lt;BR /&gt;&lt;BR /&gt;In contrary, programming/erase processes include three successive writes to put the flash in Programming/Erase mode.&lt;BR /&gt;&lt;BR /&gt;It is observed that in our board, the flash is not able to take back to back writes. So for the commands which include only one write cycle, e.g Putting it in CFI query mode, it works and gives satisfactory outputs. But for commands like Program which includes 3 successive writes, it is failing.&lt;BR /&gt;&lt;BR /&gt;Please suggest what could be the reason?&lt;BR /&gt;&lt;BR /&gt;We have downloaded the flash driver from its respective website and executing the program source code through Code Warrior Debug Utility.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 15:26:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151421#M3650</guid>
      <dc:creator>Apurva</dc:creator>
      <dc:date>2010-09-27T15:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: NOR Flash Program fails</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151422#M3651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm not familar with this device, but writing does take more time, so are you checking the "busy/ready" pin before sending another write command?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Sep 2010 23:49:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151422#M3651</guid>
      <dc:creator>Witztronics</dc:creator>
      <dc:date>2010-09-27T23:49:06Z</dc:date>
    </item>
    <item>
      <title>Re: NOR Flash Program fails</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151423#M3652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I don't check the Ready/Busy pin. This pin has differnt meaning for this device. It is asserted only when the flash is getting Programmed/Erased. This pin never gets asserted. So flash never actually enters these modes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Sep 2010 12:37:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151423#M3652</guid>
      <dc:creator>Apurva</dc:creator>
      <dc:date>2010-09-28T12:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: NOR Flash Program fails</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151424#M3653</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Apurva,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We have a similiar problem with the &lt;STRONG&gt;Flash Command Sequences.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;We're using a MCF53017 Freescale Microprocessor and a S29WS128P NOR Flash Spansion.&lt;/P&gt;&lt;P&gt;For debug, we're using Code Warrior 7.2 to program/access the &lt;SPAN&gt;flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The system desing &lt;STRONG&gt;works&lt;/STRONG&gt; succesfully &lt;STRONG&gt;with the CFI Command&lt;/STRONG&gt;, but it &lt;STRONG&gt;doesn't work with&lt;/STRONG&gt; other command sequences like &lt;STRONG&gt;Autoselect, Program, Erase&lt;/STRONG&gt;, ....&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And example with commands and results obtained are following:&lt;/P&gt;&lt;P&gt;=============================================================&lt;/P&gt;&lt;P&gt;/* Write CFI Entry command */&lt;/P&gt;&lt;P&gt;*(baseaddress + 0x555) = (unsigned short)0x98; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Get CFI Query */&lt;/P&gt;&lt;P&gt;query_1 = *(baseaddress + 0x10);&lt;/P&gt;&lt;P&gt;query_2 = *(baseaddress + 0x11);&lt;/P&gt;&lt;P&gt;query_3 = *(baseaddress + 0x12);&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* Write CFI Exit command */&lt;/P&gt;&lt;P&gt;*(baseaddress) = (unsigned short)0xF0; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* setup for Get Manufactured ID and Device ID */&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;*(baseaddress + 0x555) = (unsigned short)0xAA;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;*(baseaddress + 0x2AA) = (unsigned short)0x55;&amp;nbsp; *(baseaddress + 0x555) = (unsigned short)0x90;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/* get id */&lt;/P&gt;&lt;P&gt;mf_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = *(baseaddress);&amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;part_id&amp;nbsp;&amp;nbsp; = *(baseaddress + 1);&lt;/P&gt;&lt;P&gt;=============================================================&lt;/P&gt;&lt;P&gt;RESULTS:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Variables&amp;nbsp;&amp;nbsp; Value&lt;/P&gt;&lt;P&gt;&amp;nbsp;query_1&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0051 --&amp;gt; 'Q' ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;query_2&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0052 --&amp;gt; 'R' ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;query_3&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0059 --&amp;gt; 'Y' ok&lt;/P&gt;&lt;P&gt;&amp;nbsp;mf_id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0011 --&amp;gt; Bad Result. Correct it should be 0x0001&lt;/P&gt;&lt;P&gt;&amp;nbsp;part_id&amp;nbsp; &amp;nbsp; &amp;nbsp; 0xEA00 --&amp;gt; Bad Result. Correct it should be 0x227E&lt;/P&gt;&lt;P&gt;=============================================================&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've attached an image of a screenshot of CodeWarrior IDE with the result (&lt;/SPAN&gt;CodeWarrior Screen1.JPG)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;I don't understand why the device entry into CFI Query Mode correctly but it doesn't works with others command sequence.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Could you resolve this problem?&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Francisco José Arroyo&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Nov 2010 00:10:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151424#M3653</guid>
      <dc:creator>Fran</dc:creator>
      <dc:date>2010-11-17T00:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: NOR Flash Program fails</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151425#M3654</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are having the exact same problem...did either of you 2 figure this out?&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;-- Dave&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Dec 2011 07:24:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/NOR-Flash-Program-fails/m-p/151425#M3654</guid>
      <dc:creator>Daveoman</dc:creator>
      <dc:date>2011-12-02T07:24:16Z</dc:date>
    </item>
  </channel>
</rss>

