<?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 Can't reprogram HC12X chip in S12 / MagniV Microcontrollers</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-reprogram-HC12X-chip/m-p/165867#M5378</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While working on an HC12XDP512 using CW 4.6, I've noticed that my controller can't be reprogrammed anymore. I've been debugging for a little while using&amp;nbsp;HighWave and at some point, I've&amp;nbsp;seen the following errors occurring :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;FP: FLASH_4000 flash module is bad or protected.&lt;BR /&gt;&amp;lt;Timeout&amp;gt; (&amp;gt; 5000 ms)&lt;BR /&gt;Program counter: 0x0000F5D2&lt;BR /&gt;Executing .\cmd\P&amp;amp;E_Multilink_CyclonePro_vppoff.cmd&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the chip is being burned, sometimes I can see a message like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Error: Can't write EE00..FF00&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use the Unsecure12 program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Interface Cable Detected&lt;BR /&gt;Searching for Interface Speed .&lt;BR /&gt;Interface Speed Determined&lt;BR /&gt;Inital Flash Securituy Register, FSEC = $FE&lt;BR /&gt;WHAT? - Device is Already Unsecured&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm currently using the P&amp;amp;E USB&amp;nbsp;HC8/HC12 Multilink device to program my board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please note that no changes were done on the mapping. This is plain "compile -&amp;gt; link -&amp;gt; program -&amp;gt; debug" operations I've been doing. The device is unsecured but can't accept a new firmware.&lt;/SPAN&gt; &lt;SPAN&gt;I've been able to reproduce this issue on different boards and they show this behaviour after a while.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anybody know a quick&amp;nbsp;workaround for this issue? What might be the root cause of this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you need further details, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jun 2008 21:15:22 GMT</pubDate>
    <dc:creator>sbelanger</dc:creator>
    <dc:date>2008-06-19T21:15:22Z</dc:date>
    <item>
      <title>Can't reprogram HC12X chip</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-reprogram-HC12X-chip/m-p/165867#M5378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;While working on an HC12XDP512 using CW 4.6, I've noticed that my controller can't be reprogrammed anymore. I've been debugging for a little while using&amp;nbsp;HighWave and at some point, I've&amp;nbsp;seen the following errors occurring :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;EM&gt;FP: FLASH_4000 flash module is bad or protected.&lt;BR /&gt;&amp;lt;Timeout&amp;gt; (&amp;gt; 5000 ms)&lt;BR /&gt;Program counter: 0x0000F5D2&lt;BR /&gt;Executing .\cmd\P&amp;amp;E_Multilink_CyclonePro_vppoff.cmd&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When the chip is being burned, sometimes I can see a message like the following:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Error: Can't write EE00..FF00&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If I use the Unsecure12 program:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;EM&gt;Interface Cable Detected&lt;BR /&gt;Searching for Interface Speed .&lt;BR /&gt;Interface Speed Determined&lt;BR /&gt;Inital Flash Securituy Register, FSEC = $FE&lt;BR /&gt;WHAT? - Device is Already Unsecured&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I'm currently using the P&amp;amp;E USB&amp;nbsp;HC8/HC12 Multilink device to program my board.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please note that no changes were done on the mapping. This is plain "compile -&amp;gt; link -&amp;gt; program -&amp;gt; debug" operations I've been doing. The device is unsecured but can't accept a new firmware.&lt;/SPAN&gt; &lt;SPAN&gt;I've been able to reproduce this issue on different boards and they show this behaviour after a while.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Does anybody know a quick&amp;nbsp;workaround for this issue? What might be the root cause of this problem?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you need further details, please let me know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 21:15:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-reprogram-HC12X-chip/m-p/165867#M5378</guid>
      <dc:creator>sbelanger</dc:creator>
      <dc:date>2008-06-19T21:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Can't reprogram HC12X chip</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-reprogram-HC12X-chip/m-p/165868#M5379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;I've finally found it!&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The issue was caused by 2 factors:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1- The device had&amp;nbsp;a mapping for EEPROM and Flash different from the new firmware to be uploaded.&lt;/DIV&gt;&lt;DIV&gt;2- The BDM wasn't in full control of the reset line due to an external watchdog circuit.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;So the final solution was :&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;1-&amp;nbsp;Disable the external watchdog.&lt;/DIV&gt;&lt;DIV&gt;2-&amp;nbsp;Mass erase the HC12X chip.&lt;/DIV&gt;&lt;DIV&gt;3- Reprogram.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I hope this might help someone&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 21 Jun 2008 02:42:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/Can-t-reprogram-HC12X-chip/m-p/165868#M5379</guid>
      <dc:creator>sbelanger</dc:creator>
      <dc:date>2008-06-21T02:42:23Z</dc:date>
    </item>
  </channel>
</rss>

