<?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 Problem when erasing boot flash. in Classic/Legacy CodeWarrior</title>
    <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176088#M3779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello guys,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm working with 56F8346 and CodeWarrior 5.6.1.1658.&amp;nbsp; I'm using the processor expert bean IntFlash and&amp;nbsp;when I&amp;nbsp;try to erase boot flash&amp;nbsp;occurs problems. I debug the code and discover that&amp;nbsp;two flags (PVIOL and ACCERR) of the FMUSTAT register are set when the process of erase boot flash&amp;nbsp;finishes. The code&amp;nbsp;is write below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;BootFlash_SetGlobalProtection(FALSE);&lt;BR /&gt;&amp;nbsp; if(BootFlash_EraseFlash(BOOT_FLASH_BLOCK) != ERR_OK);&lt;BR /&gt;&amp;nbsp; bootError(INDICATE_ERROR_FLASH);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;bootError was created to report errors. But the two first methods&amp;nbsp;belongs to IntFlash. I don't understand why these flags are set, because I disable the boot area&amp;nbsp;protection. The mass erase command (0x41) is also&amp;nbsp;being write in the FMCMD register. Does anyoney already passed&amp;nbsp;through this situation?&amp;nbsp;Is there any properties that has to be configured in the IntFlash bean ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;João Paulo.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Jul 2008 20:26:39 GMT</pubDate>
    <dc:creator>jeypi</dc:creator>
    <dc:date>2008-07-28T20:26:39Z</dc:date>
    <item>
      <title>Problem when erasing boot flash.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176088#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hello guys,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I'm working with 56F8346 and CodeWarrior 5.6.1.1658.&amp;nbsp; I'm using the processor expert bean IntFlash and&amp;nbsp;when I&amp;nbsp;try to erase boot flash&amp;nbsp;occurs problems. I debug the code and discover that&amp;nbsp;two flags (PVIOL and ACCERR) of the FMUSTAT register are set when the process of erase boot flash&amp;nbsp;finishes. The code&amp;nbsp;is write below:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;BootFlash_SetGlobalProtection(FALSE);&lt;BR /&gt;&amp;nbsp; if(BootFlash_EraseFlash(BOOT_FLASH_BLOCK) != ERR_OK);&lt;BR /&gt;&amp;nbsp; bootError(INDICATE_ERROR_FLASH);&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;bootError was created to report errors. But the two first methods&amp;nbsp;belongs to IntFlash. I don't understand why these flags are set, because I disable the boot area&amp;nbsp;protection. The mass erase command (0x41) is also&amp;nbsp;being write in the FMCMD register. Does anyoney already passed&amp;nbsp;through this situation?&amp;nbsp;Is there any properties that has to be configured in the IntFlash bean ?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;João Paulo.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Jul 2008 20:26:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176088#M3779</guid>
      <dc:creator>jeypi</dc:creator>
      <dc:date>2008-07-28T20:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when erasing boot flash.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176089#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Your code is not executing in bootflash when it attempts to erase it, is it ?&amp;nbsp;&amp;nbsp; If so, you will&lt;BR /&gt;see an error occur .&amp;nbsp;&amp;nbsp; One cannot reliably erase a section of flash while one is executing from it.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jul 2008 10:18:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176089#M3780</guid>
      <dc:creator>FTSolutions</dc:creator>
      <dc:date>2008-07-29T10:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when erasing boot flash.</title>
      <link>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176090#M3781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;Thanks guy,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I figured out to erase the boot&amp;nbsp;flash.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks,&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;João Paulo.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Aug 2008 18:18:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Classic-Legacy-CodeWarrior/Problem-when-erasing-boot-flash/m-p/176090#M3781</guid>
      <dc:creator>jeypi</dc:creator>
      <dc:date>2008-08-01T18:18:38Z</dc:date>
    </item>
  </channel>
</rss>

