<?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: How to use BootLoader with security feature?(HCS12)</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700363#M14536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you use standard download and your code contains a constant array at FSEC address, the CW10.7 will not unsecure the device. This is done automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you program the MCU with tasks in Flash programmer, you have the choice to select the option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/740i079FCCD53A630705/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 12:41:41 GMT</pubDate>
    <dc:creator>danielmartynek</dc:creator>
    <dc:date>2017-10-20T12:41:41Z</dc:date>
    <item>
      <title>How to use BootLoader with security feature?(HCS12)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700359#M14532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;Hello everyone :&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;I know how to use bootloader according to&amp;nbsp;AN3275 and&amp;nbsp;AN4258.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;I know how to secure the mcu (by writing 'const&amp;nbsp;&lt;/SPAN&gt;char&amp;nbsp;Set_key&amp;nbsp;@0xFF0F&amp;nbsp;=&amp;nbsp;0X80;' )&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;but how to do them at the same time?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;As usual I tried to write&amp;nbsp;'const&amp;nbsp;&lt;/SPAN&gt;char&amp;nbsp;Set_key&amp;nbsp;@0xFF0F&amp;nbsp;=&amp;nbsp;0X80;'but when I try to download my code to MCU by using BootLoader, it doesn't work. Maybe it’s because ‘the area 0xF000&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;–&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;0xFFFF is occupied by the bootloader’ according to AN4258.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;And AN4258 said:&amp;nbsp;By using the different menus of the bootloader, the user can&amp;nbsp;set the backdoor keys and secure the microcontroller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;I&amp;nbsp;found a menu which can set 'keys', but didn't find any menu to secure the microcontroller.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #51626f; background: white;"&gt;What can I do?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 03:25:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700359#M14532</guid>
      <dc:creator>niyin</dc:creator>
      <dc:date>2017-09-12T03:25:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BootLoader with security feature?(HCS12)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700360#M14533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes, the area is occupied by the bootloader.&lt;/P&gt;&lt;P&gt;It would require to erase the whole sector, change the FSEC byte and program the sector back.&lt;/P&gt;&lt;P&gt;Which is not recommended.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The solution is to secure the MCU in the code of the bootloader.&lt;/P&gt;&lt;P&gt;Below is a screenshot of main.c file of AN4258, Bootloader_S12&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="Bootloader_FSEC.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/28867i2800632DFBA78AEF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Bootloader_FSEC.png" alt="Bootloader_FSEC.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 12:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700360#M14533</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-09-13T12:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BootLoader with security feature?(HCS12)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700361#M14534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank&amp;nbsp;you vey much! I found the solution by myself yesterday and it was exactly same to the solution you provide. What you provide makes sure what I have done is right!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Sep 2017 14:31:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700361#M14534</guid>
      <dc:creator>niyin</dc:creator>
      <dc:date>2017-09-13T14:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BootLoader with security feature?(HCS12)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700362#M14535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,How can i use this" &lt;SPAN class=""&gt;FLASH NOUNSECURE&lt;/SPAN&gt;&amp;nbsp;" in CodeWorr 10.7 ?&lt;/P&gt;&lt;P&gt;,the project is based on Processor Expert&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 06:08:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700362#M14535</guid>
      <dc:creator>wangjiajie</dc:creator>
      <dc:date>2017-10-18T06:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to use BootLoader with security feature?(HCS12)</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700363#M14536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;If you use standard download and your code contains a constant array at FSEC address, the CW10.7 will not unsecure the device. This is done automatically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you program the MCU with tasks in Flash programmer, you have the choice to select the option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/740i079FCCD53A630705/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:41:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/How-to-use-BootLoader-with-security-feature-HCS12/m-p/700363#M14536</guid>
      <dc:creator>danielmartynek</dc:creator>
      <dc:date>2017-10-20T12:41:41Z</dc:date>
    </item>
  </channel>
</rss>

