<?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中的主题 XET256 Flash protect and security problem</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XET256-Flash-protect-and-security-problem/m-p/555033#M12754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have set the flash configuration to protect high address 4K range and no security,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static const UINT8 NV_PROTECT_INIT @0xFF0C = 0xCF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static const UINT8 NVFSEC_INIT @0xFF0F = 0xFE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;but after download program into mcu, i found the mcu enter security status, BDM debug was not available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I wrote a program to read the value from address at 0xFF0C and 0xFF0F, and the register FPROT and FSEC, and send out those 4 values, here was the 4 values:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt; 0xFF0C&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;FPROT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF0F&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;FSEC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt; 0xCF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x7F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I'm very confused about this, what happened to mcu? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 31 Jul 2016 13:10:11 GMT</pubDate>
    <dc:creator>lognight</dc:creator>
    <dc:date>2016-07-31T13:10:11Z</dc:date>
    <item>
      <title>XET256 Flash protect and security problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XET256-Flash-protect-and-security-problem/m-p/555033#M12754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; I have set the flash configuration to protect high address 4K range and no security,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static const UINT8 NV_PROTECT_INIT @0xFF0C = 0xCF;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #e23d39;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; static const UINT8 NVFSEC_INIT @0xFF0F = 0xFE;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;but after download program into mcu, i found the mcu enter security status, BDM debug was not available.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I wrote a program to read the value from address at 0xFF0C and 0xFF0F, and the register FPROT and FSEC, and send out those 4 values, here was the 4 values:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt; 0xFF0C&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;FPROT&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF0F&amp;nbsp; &lt;SPAN style="color: #303030;"&gt;FSEC&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt; 0xCF&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x7F&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0xFF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #303030;"&gt;I'm very confused about this, what happened to mcu? &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Jul 2016 13:10:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XET256-Flash-protect-and-security-problem/m-p/555033#M12754</guid>
      <dc:creator>lognight</dc:creator>
      <dc:date>2016-07-31T13:10:11Z</dc:date>
    </item>
    <item>
      <title>Re: XET256 Flash protect and security problem</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XET256-Flash-protect-and-security-problem/m-p/555034#M12755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try looking for FLASH NOUNSECURE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-93803"&gt;S12(X) MCU Security&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that flash on S12XE is ECC protected, you can't write more bits without erase, else ECC check fails. Since CW on every download writes NVSEC with 0xFE, no matter do you specify it in your code or not, ECC for this flash phrase at 0xFF00-0xFF07 fails and MCU automatically engages security. NOUNSECURE will make CW not writing security bits, unless you specify them in your code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Aug 2016 06:44:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/XET256-Flash-protect-and-security-problem/m-p/555034#M12755</guid>
      <dc:creator>kef2</dc:creator>
      <dc:date>2016-08-01T06:44:22Z</dc:date>
    </item>
  </channel>
</rss>

