<?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>S12 / MagniV MicrocontrollersのトピックRe: HC12A512 Mass Erase</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198235#M7945</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I've got it to work! Simple in hindsight!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I did the BDM&amp;nbsp;version a couple of years time ago, just followed a procedure from an app note - worked...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So, to do it from a bootloader - just do the same thing - doesn't work...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The bootloader version MUST do a 16 bit write to the flash block for it to actually erase something. The fact that it didn't complain, and reported it as 'blank' had me looking in all the wrong places...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This extra operation is a real pain! I've only got a very small patch of RAM to safely work in, and I want it work for a several HC12 sizes A128... A512...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 09:16:27 GMT</pubDate>
    <dc:creator>GreenCode</dc:creator>
    <dc:date>2008-10-31T09:16:27Z</dc:date>
    <item>
      <title>HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198230#M7940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi, I'm using the Mass Erase command on the Flash from a bootloader running in RAM. There are no errors reported, and the Erase Verify command also gives the appropriate 'Erased' feedback. However, the Flash content remains unchanged!?!?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If I use the same sequence of instructions via the BDM, it works as it should. Are there timing issues that are not listed in the data sheets?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 19:52:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198230#M7940</guid>
      <dc:creator>GreenCode</dc:creator>
      <dc:date>2008-10-29T19:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198231#M7941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Are you using write protection? Mass erase won't work if there are write protected regions. You can mass erase all memory banks (not pages, but banks), except one where you have your bootloader.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Did you do Erase Verify on all memory banks, or just one? S12A512 has 4 memory banks, I think.&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Oct 2008 21:08:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198231#M7941</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-10-29T21:08:34Z</dc:date>
    </item>
    <item>
      <title>Re: HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198232#M7942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I erase and erase verify each block in the order of&amp;nbsp;(3, 2, 1, 0). Both protection and security are disabled for each block.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;When I do it via the BDM, reading the FSTAT reg when the CBEIE if set following the erase verify command it returns $C0, then I read the FSTAT again and it returns $C5 (I would expect $C4)... There is about a 10mS dwell between the two reads.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I had to put a similar deadwait in my bootloader code too...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Are there any timing issues not documented?&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 05:22:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198232#M7942</guid>
      <dc:creator>GreenCode</dc:creator>
      <dc:date>2008-10-30T05:22:10Z</dc:date>
    </item>
    <item>
      <title>Re: HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198233#M7943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hm, how do you determine that flash contents remains unchanged? Hiwave debugger caches flash contents! Are you sure&amp;nbsp;debugger isn't fooling you?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 17:35:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198233#M7943</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2008-10-30T17:35:45Z</dc:date>
    </item>
    <item>
      <title>Re: HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198234#M7944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;But if the Hiwave BDM debugger cached FLASH contents that would have made it appear as if the erase did NOT work on the debugger, the opposite of what is observed.&lt;BR /&gt;&lt;BR /&gt;I am having similar problem trying to unlock an NE64. It works perfectly page by page on the BDM but only the unlocked pages outside of 0xf800.ffff when running off the BDM.&lt;BR /&gt;&lt;BR /&gt;Am afraid that I have read somewhere the trivial backdoor key of all 0xff was disallowed in newer S12's, and that might apply to me as well.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Oct 2008 20:42:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198234#M7944</guid>
      <dc:creator>dkelly</dc:creator>
      <dc:date>2008-10-30T20:42:00Z</dc:date>
    </item>
    <item>
      <title>Re: HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198235#M7945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I've got it to work! Simple in hindsight!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I did the BDM&amp;nbsp;version a couple of years time ago, just followed a procedure from an app note - worked...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So, to do it from a bootloader - just do the same thing - doesn't work...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The bootloader version MUST do a 16 bit write to the flash block for it to actually erase something. The fact that it didn't complain, and reported it as 'blank' had me looking in all the wrong places...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;This extra operation is a real pain! I've only got a very small patch of RAM to safely work in, and I want it work for a several HC12 sizes A128... A512...&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Thanks for your help&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 09:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198235#M7945</guid>
      <dc:creator>GreenCode</dc:creator>
      <dc:date>2008-10-31T09:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: HC12A512 Mass Erase</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198236#M7946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="3"&gt;... about the unlocking... I read in one of the Mask Set Errata thingys from Freescale&amp;nbsp;of&amp;nbsp;issues in that area. I've not had an issue with the unlocking with the HC12Axxx, but I've always had a meaningfull value in the 'backdoor'...&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Nov 2008 11:14:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/HC12A512-Mass-Erase/m-p/198236#M7946</guid>
      <dc:creator>GreenCode</dc:creator>
      <dc:date>2008-11-02T11:14:59Z</dc:date>
    </item>
  </channel>
</rss>

