<?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>Classic/Legacy CodeWarrior中的主题 Bean based flash erase and events</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Bean-based-flash-erase-and-events/m-p/197899#M5227</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running CW 8.1.1a. developing for a 56F8323.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have enabled events, (NV_RAM_EnableEvent()&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and I am trying to do a sector erase (err = NV_RAM_EraseSector(NVRAM_ADDR + (i * DATA_FLASH_SECTOR_SIZE))&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would I expect an "OnWriteEnd" event at the end of that erase or is the return an indication it is finish?&amp;nbsp; If not, what gives me the finished go-ahead to use an erased sector?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Oct 2008 04:38:08 GMT</pubDate>
    <dc:creator>bob_s</dc:creator>
    <dc:date>2008-10-29T04:38:08Z</dc:date>
    <item>
      <title>Bean based flash erase and events</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Bean-based-flash-erase-and-events/m-p/197899#M5227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I'm running CW 8.1.1a. developing for a 56F8323.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have enabled events, (NV_RAM_EnableEvent()&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp; and I am trying to do a sector erase (err = NV_RAM_EraseSector(NVRAM_ADDR + (i * DATA_FLASH_SECTOR_SIZE))&lt;/SPAN&gt;&lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif"&gt;&lt;IMG alt=":smileywink:" class="emoticon emoticon-smileywink" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-wink.gif" title="Smiley Wink" /&gt;&lt;/A&gt;&lt;SPAN&gt;.&amp;nbsp;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Would I expect an "OnWriteEnd" event at the end of that erase or is the return an indication it is finish?&amp;nbsp; If not, what gives me the finished go-ahead to use an erased sector?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Bob&lt;/SPAN&gt;&lt;BR /&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 04:38:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Bean-based-flash-erase-and-events/m-p/197899#M5227</guid>
      <dc:creator>bob_s</dc:creator>
      <dc:date>2008-10-29T04:38:08Z</dc:date>
    </item>
    <item>
      <title>Re: Bean based flash erase and events</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Bean-based-flash-erase-and-events/m-p/197900#M5228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;The description of the methods and events including typical usage can be found in the help (pop-up menu) of the IntFlash bean. The OnWriteEnd event is not called within EraseSector method. The EraseSector method waits to erase command complete. You are informed about the result of the EraseSector method through the return value of this method.&lt;BR /&gt;&lt;BR /&gt;In the documentation of the bean you could find (page Methods):&lt;BR /&gt;&lt;BR /&gt;&lt;B&gt;EraseSector&lt;/B&gt; - Erases the sector to which address Addr belongs.&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ANSIC prototype: byte EraseSector(BeanName_TAddress Addr)&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Addr:BeanName_TAddress - Address in FLASH.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;I&gt;Version specific information for 56800 derivatives&lt;/I&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The value of this parameter is address of a 16 bit word location in the selected memory space.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The memory space depends on the selected flash memory device.&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;B&gt;Return value:byte - Error code, possible codes:&lt;/B&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_OK - OK&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_NOTAVAIL - Desired program/erase operation is not available&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_RANGE - Address is out of range&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_SPEED - This device does not work in the active speed mode&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_BUSY - Device is busy&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_PROTECT - Flash is write protect&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; o ERR_VALUE - Flash sector erase was not successful&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 20:37:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Bean-based-flash-erase-and-events/m-p/197900#M5228</guid>
      <dc:creator>ProcessorExpert</dc:creator>
      <dc:date>2008-11-11T20:37:58Z</dc:date>
    </item>
  </channel>
</rss>

