<?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 Setting Security for MC9S98GB60 in CodeWarrior for MCU</title>
    <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137917#M2107</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using CW IDE 5.7.0 with a PnE Multilink USB adapter, and I need to set the security bits to lock the flash. I would like to do this when the code is loaded into the processor. However, I can't figure out how to have the programmer set the security bits. Any suggestions are appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 Jun 2006 19:46:35 GMT</pubDate>
    <dc:creator>fef</dc:creator>
    <dc:date>2006-06-01T19:46:35Z</dc:date>
    <item>
      <title>Setting Security for MC9S98GB60</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137917#M2107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am using CW IDE 5.7.0 with a PnE Multilink USB adapter, and I need to set the security bits to lock the flash. I would like to do this when the code is loaded into the processor. However, I can't figure out how to have the programmer set the security bits. Any suggestions are appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 19:46:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137917#M2107</guid>
      <dc:creator>fef</dc:creator>
      <dc:date>2006-06-01T19:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Security for MC9S98GB60</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137918#M2108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Welcome to the forum!&lt;/P&gt;&lt;P&gt;The erased state of the SEC01&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" id="smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;EC00 bits is secured (1:1). The only unsecure combination is 1:0. So you can just leave them alone and the flash will be secured after a reset.&lt;/P&gt;&lt;P&gt;CodeWarrior and the Multilink don't provide an automatic method to set security (or any of the other flash-based registers). You need to do this in your code. In assembly, I do it like this (unsecuring it in this case):&lt;/P&gt;&lt;P&gt;;Configure Security&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORG&amp;nbsp; NVOPT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; $FFBF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DC.B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $02&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; not secure&lt;/P&gt;&lt;P&gt;- Rocky&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Jun 2006 21:51:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137918#M2108</guid>
      <dc:creator>RockyRoad</dc:creator>
      <dc:date>2006-06-01T21:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Security for MC9S98GB60</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137919#M2109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;I have to correct my answer. A colleague of mine challenged my answer to this. Here's what I've learned since my previous post.&lt;/P&gt;&lt;P&gt;CodeWarrior and the Multilink program NVPROT to $FE (unsecured). This is how you can still see flash and debug after programming. (This should have been obvious, but I've missed it all this time.)&lt;/P&gt;&lt;P&gt;Some new important information that I've also learned is that since SEC01&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" id="smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;EC00 is already programmed to 1:0, then the only secure combination that you can use is 0:0. This is because this programming takes place without erasing and you can only change the 1 to a 0. (You get an Error 18 during the programming if for example you try 1:1.)&lt;/P&gt;&lt;P&gt;So a better example of the code fragment to include in your source code that shows&amp;nbsp;actually setting security would be:&lt;/P&gt;&lt;P&gt;;Configure Security&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ORG&amp;nbsp; NVOPT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; $FFBF&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DC.B&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; $00&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; secure, no backdoor key, no vector redirection&lt;/P&gt;&lt;P&gt;My apologies for my incorrect original posting.&lt;/P&gt;&lt;P&gt;- Rocky&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2006 03:09:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137919#M2109</guid>
      <dc:creator>RockyRoad</dc:creator>
      <dc:date>2006-06-02T03:09:24Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Security for MC9S98GB60</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137920#M2110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The inability to secure a device is purely a Codewarrior limitation!&lt;/P&gt;&lt;P&gt;It is fully supported by the Multilink and the P&amp;amp;E software.&lt;/P&gt;&lt;P&gt;If you use expert programmer mode you can do it from there.&lt;/P&gt;&lt;P&gt;It could be done automatically through the commandline programmer too if the facility to generate the required command in the script was provided within hiwave/codewarrior.&lt;/P&gt;&lt;P&gt;Regards David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Jun 2006 06:24:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137920#M2110</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-06-03T06:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Security for MC9S98GB60</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137921#M2111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;It does seem a bit unusual that CW does not support FLASH security control, but thanks to the suggestions from Rocky, I seem to have accomplished the desired goal. However, I believe the value $40 should be used for NVOPT to disable vector redirection. Thanks for the help.&lt;BR /&gt;&lt;BR /&gt;fef&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 00:32:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137921#M2111</guid>
      <dc:creator>fef</dc:creator>
      <dc:date>2006-06-04T00:32:20Z</dc:date>
    </item>
    <item>
      <title>Re: Setting Security for MC9S98GB60</title>
      <link>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137922#M2112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Well, it appears RockyRoad has hit a bit of a rough patch (get it?). Still 1 out 4 is better than none!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;BLOCKQUOTE&gt;&lt;FONT face="Times-Roman"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;STRONG&gt;KEYEN — Backdoor Key Mechanism Enable&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;When this bit is 0, the backdoor key mechanism cannot be used to disengage security. The backdoor&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;key mechanism is accessible only from user (secured) firmware. BDM commands cannot be used to&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;write key comparison values that would unlock the backdoor key. For more detailed information about&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;the backdoor key mechanism, refer to &lt;FONT color="#0000C3" face="Times-Roman"&gt;Section 4.5, “Security&lt;/FONT&gt;&lt;FONT face="Times-Roman"&gt;.”&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;1 = If user firmware writes an 8-byte value that matches the nonvolatile backdoor key&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;(NVBACKKEY through NVBACKKEY+7, in that order), security is temporarily disengaged&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;until the next MCU reset.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;0 = No backdoor key access allowed.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;STRONG&gt;FNORED — Vector Redirection Disable&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;When this bit is 1, vector redirection is disabled.&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;FONT color="#ff0000"&gt;1 = Vector redirection disabled.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;0 = Vector redirection enabled.&lt;/FONT&gt;&lt;/P&gt;&lt;FONT face="Times-Roman"&gt;&lt;/FONT&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;STRONG&gt;SEC01&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" id="smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;EC00 — Security State Code&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;This 2-bit field determines the security state of the MCU as shown in &lt;FONT color="#0000C3" face="Times-Roman"&gt;Table 4-7&lt;/FONT&gt;&lt;FONT face="Times-Roman"&gt;. When the MCU is&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;secure, the contents of RAM and FLASH memory cannot be accessed by instructions from any&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;unsecured source including the background debug interface. For more detailed information about&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;security, refer to &lt;FONT color="#0000C3" face="Times-Roman"&gt;Section 4.5, “Security&lt;/FONT&gt;&lt;FONT face="Times-Roman"&gt;.”&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;FONT face="Times-Roman"&gt;0:0&amp;nbsp;&amp;nbsp; secure&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;FONT face="Times-Roman"&gt;0:1&amp;nbsp;&amp;nbsp; secure&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;FONT face="Times-Roman"&gt;1:0&amp;nbsp;&amp;nbsp; unsecure&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;&lt;FONT face="Times-Roman"&gt;1:1&amp;nbsp;&amp;nbsp; secure&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P align="left"&gt;&lt;FONT face="Times-Roman"&gt;SEC01&lt;IMG alt=":smileyfrustrated:" class="emoticon emoticon-smileyfrustrated" id="smileyfrustrated" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-frustrated.gif" title="Smiley Frustrated" /&gt;EC00 changes to 1:0 after successful backdoor key entry or a successful blank check of FLASH.&lt;/FONT&gt;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;Regards David&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Message Edited by peg on &lt;SPAN class="date_text"&gt;06-04-2006&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;09:22 AM&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Jun 2006 06:20:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/CodeWarrior-for-MCU/Setting-Security-for-MC9S98GB60/m-p/137922#M2112</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2006-06-04T06:20:56Z</dc:date>
    </item>
  </channel>
</rss>

