<?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のトピックMC9S12DT128 - Flash security</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132946#M1777</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hey All&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am working on hcs12(MC9S12DT128) and i am using cosmic compiler and zap debugger.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From the datasheet i understood that setting the value 0xff or 0xfd or oxfc at address FFOE will secure my controller.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But whats happenening is by default the debugger is placing 0xFE(Unsecured mode) and when through program when i try to change this byte its giving me an error "error while programming the memory location 0x3fbf0e" .And when i try to program the controller again its not happening.&lt;/DIV&gt;&lt;DIV&gt;I have to unsecure the device and then i have to program&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i gone thruogh&amp;nbsp;all the posts in this forum there are few people who faced similar type of problem but&amp;nbsp;it seems that there problem was solved by writing FC instead of FF&amp;nbsp;and&amp;nbsp;i too&amp;nbsp;tried all the ways still not able to solve the problem.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;BR /&gt;--&lt;BR /&gt;Alban Edit: part number to be shwon in subject line&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-05-07&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;10:20 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 May 2007 15:00:29 GMT</pubDate>
    <dc:creator>ramabh</dc:creator>
    <dc:date>2007-05-07T15:00:29Z</dc:date>
    <item>
      <title>MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132946#M1777</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;Hey All&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am working on hcs12(MC9S12DT128) and i am using cosmic compiler and zap debugger.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;From the datasheet i understood that setting the value 0xff or 0xfd or oxfc at address FFOE will secure my controller.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;But whats happenening is by default the debugger is placing 0xFE(Unsecured mode) and when through program when i try to change this byte its giving me an error "error while programming the memory location 0x3fbf0e" .And when i try to program the controller again its not happening.&lt;/DIV&gt;&lt;DIV&gt;I have to unsecure the device and then i have to program&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;i gone thruogh&amp;nbsp;all the posts in this forum there are few people who faced similar type of problem but&amp;nbsp;it seems that there problem was solved by writing FC instead of FF&amp;nbsp;and&amp;nbsp;i too&amp;nbsp;tried all the ways still not able to solve the problem.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;BR /&gt;--&lt;BR /&gt;Alban Edit: part number to be shwon in subject line&lt;BR /&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Message Edited by Alban on &lt;/SPAN&gt;&lt;SPAN class="date_text"&gt;2007-05-07&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN class="time_text"&gt;10:20 AM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 15:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132946#M1777</guid>
      <dc:creator>ramabh</dc:creator>
      <dc:date>2007-05-07T15:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132947#M1778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;The best way is to use the default when you are debugging and then integrate the security in your software so it is programmed in the same time as the rest of the software.&lt;BR /&gt;If it is in the S-Record you program, the debugger default will not apply.&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN class="msg_source_code"&gt;&lt;SPAN class="text_smallest"&gt;Code:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;PRE&gt;const tU08 FlashSecure @ 0xFF0E = 0x00; &lt;/PRE&gt;&lt;BR /&gt;Up to you to translate this to COSMIC, I don't use it.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 16:25:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132947#M1778</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-05-07T16:25:09Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132948#M1779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hey Alban&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am doing the same thing what u mentioned.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;while programming that memory location only i am getting that error"error while programming ".&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>Mon, 07 May 2007 17:16:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132948#M1779</guid>
      <dc:creator>ramabh</dc:creator>
      <dc:date>2007-05-07T17:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132949#M1780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;In this case, I would cross check with another device.&lt;BR /&gt;And also check that the right device is selected from the list.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 17:52:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132949#M1780</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-05-07T17:52:26Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132950#M1781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi. I just finished porting my HC11 assembly code to the MC9S12C32. I'm using CW12 V3.1 with P&amp;amp;E USB BDM pod. To secure the processor, do I add an equate to my assembly code, like: FSEC EQU $FC Thanks&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 18:32:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132950#M1781</guid>
      <dc:creator>JohnnyP</dc:creator>
      <dc:date>2007-05-07T18:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132951#M1782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;Hi alban&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;the same code that i am using for HCS12 i checked with hcs08.For Hcs08 its working as expected but for hcs12 only i am facing this problem.&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>Mon, 07 May 2007 18:36:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132951#M1782</guid>
      <dc:creator>ramabh</dc:creator>
      <dc:date>2007-05-07T18:36:09Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132952#M1783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;The equates should be OK as it would create the equivalent of the "const", I would think.&lt;BR /&gt;You can check that it does the good linking by looking at your generated S-Record.&lt;BR /&gt;You would be able to read 0xFC at the address $FSEC.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 19:57:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132952#M1783</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-05-07T19:57:54Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132953#M1784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;S08 and S12 are different.&lt;BR /&gt;If the code was written for S08, you need to modify it to run on S12.&lt;BR /&gt;&lt;BR /&gt;Memory map and/or flash programing algorithm are probably wrong, explaining why it cannot program what it wants where it wants.&lt;BR /&gt;&lt;BR /&gt;Change the software to fit S12 memory map,&lt;BR /&gt;Change the compiler and linker to use S12 map and instructions,&lt;BR /&gt;Use a debugger able to program S12.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:00:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132953#M1784</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-05-07T20:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132954#M1785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I am using both HCS12 and Hcs08 and i know what to change in memory and in linker files and i changed all the required minor changes and even in s19 files tha data is there......&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132954#M1785</guid>
      <dc:creator>ramabh</dc:creator>
      <dc:date>2007-05-07T20:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132955#M1786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;hi&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;we cannot eauate a value to FSEC.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;After every reset this FSEC register takes the value from memory location FFOF and so writing to FSEC makes no sense and even its not allowed only .check the datasheet&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:23:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132955#M1786</guid>
      <dc:creator>ramabh</dc:creator>
      <dc:date>2007-05-07T20:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132956#M1787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Yes, FSEC should be declared as being at $FFOF for this to work.&lt;BR /&gt;or if FSEC is not an existing declaration.&lt;BR /&gt;You can declare a byte start (Org $FFOF).&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:34:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132956#M1787</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-05-07T20:34:41Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132957#M1788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Alban:&lt;BR /&gt;&lt;BR /&gt;I don't know the format.&lt;BR /&gt;&lt;BR /&gt;I tried:&lt;BR /&gt;&lt;BR /&gt;ORG $101 ; FSEC register here&lt;BR /&gt;Secure EQU $FC ; Secure the flash&lt;BR /&gt;FDB Secure&lt;BR /&gt;&lt;BR /&gt;This compiles, but the loader times out part way through.&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:42:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132957#M1788</guid>
      <dc:creator>JohnnyP</dc:creator>
      <dc:date>2007-05-07T20:42:29Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132958#M1789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;As Ramabh says you cannot work from $0101. It is a copy from $FF0F.&lt;BR /&gt;Change the "org" to declare your value in the Flash $FF0F, instead of the register area.&lt;BR /&gt;&lt;BR /&gt;Alban.&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 20:51:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132958#M1789</guid>
      <dc:creator>Alban</dc:creator>
      <dc:date>2007-05-07T20:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132959#M1790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hooray:&lt;BR /&gt;&lt;BR /&gt;ORG $FFOF ; FSEC register loads from here&lt;BR /&gt;Secure EQU $FC ; Secure the flash&lt;BR /&gt;FDB Secure&lt;BR /&gt;&lt;BR /&gt;TrueTime loads this. After reset, TrueTime debugger fails to load, giving a BDM speed warning, saying processor may be secure.&lt;BR /&gt;&lt;BR /&gt;Had a scare with the P&amp;amp;E Unsecure 12, though. It wouldn't communicate the first time. Second time, it went through the unsecure process.&lt;BR /&gt;&lt;BR /&gt;Thanks for the help guys.&lt;BR /&gt;&lt;BR /&gt;See my project here (scroll down for pic):&lt;BR /&gt;&lt;A href="http://www.jandssafeguard.com/8ChannelVampire/J&amp;amp;S_Vampire_Brochure.html" target="test_blank"&gt;http://www.jandssafeguard.com/8ChannelVampire/J&amp;amp;S_Vampire_Brochure.html&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 May 2007 21:02:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132959#M1790</guid>
      <dc:creator>JohnnyP</dc:creator>
      <dc:date>2007-05-07T21:02:00Z</dc:date>
    </item>
    <item>
      <title>Re: MC9S12DT128 - Flash security</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132960#M1791</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;FONT color="navy" face="Arial" size="2"&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="navy" face="Arial" size="2"&gt;&lt;SPAN&gt;this message is for the people who are using cosmic and zap debugger.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="navy" face="Arial" size="2"&gt;&lt;SPAN&gt;Zap prevents writting&amp;nbsp;0xFF at location FFOF&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="navy" face="Arial" size="2"&gt;&lt;SPAN&gt;we can restrict ZAP not to do this by overwriting the contents of file "pflash.sr" with contents of "PFLASH_BDM_Lock_Allowed.sr" when we donot want this we just have to over write the contents with PFLASH_default.sr&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 May 2007 13:11:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/MC9S12DT128-Flash-security/m-p/132960#M1791</guid>
      <dc:creator>ramabh</dc:creator>
      <dc:date>2007-05-08T13:11:41Z</dc:date>
    </item>
  </channel>
</rss>

