<?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のトピックS12G Flash Secure</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-Flash-Secure/m-p/1059753#M17229</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Target MCU: MC9S12G128&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi gays. I was&amp;nbsp; trying to set up a bootloader with AN4258 and I want the p-Flash secured. So I intened to set value of @0xFF0F to 0xFF.&lt;/P&gt;&lt;P&gt;But after the s19 file downloaded to the mcu with USBDM. The value @0x0xFF0F&amp;nbsp;could be viewed and it is&amp;nbsp;0xFE, not 0xFF.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In fact,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;all the data in the flash could be&amp;nbsp;viewed. What did I miss?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified an element of const array flash_array as shown in below pic.&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/101388i0A3803FB2D2C63CE/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;When mcu connected to the USBDM, here we saw&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104066i19AB509168FE30A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I modified the last element to 0x0F, we will get a ox0E in the memory. It's not secured.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 04 Apr 2020 08:56:35 GMT</pubDate>
    <dc:creator>bloom_you</dc:creator>
    <dc:date>2020-04-04T08:56:35Z</dc:date>
    <item>
      <title>S12G Flash Secure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-Flash-Secure/m-p/1059753#M17229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Target MCU: MC9S12G128&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi gays. I was&amp;nbsp; trying to set up a bootloader with AN4258 and I want the p-Flash secured. So I intened to set value of @0xFF0F to 0xFF.&lt;/P&gt;&lt;P&gt;But after the s19 file downloaded to the mcu with USBDM. The value @0x0xFF0F&amp;nbsp;could be viewed and it is&amp;nbsp;0xFE, not 0xFF.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;In fact,&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;all the data in the flash could be&amp;nbsp;viewed. What did I miss?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is what I did.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I modified an element of const array flash_array as shown in below pic.&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/101388i0A3803FB2D2C63CE/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;When mcu connected to the USBDM, here we saw&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_3.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104066i19AB509168FE30A4/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if I modified the last element to 0x0F, we will get a ox0E in the memory. It's not secured.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Apr 2020 08:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-Flash-Secure/m-p/1059753#M17229</guid>
      <dc:creator>bloom_you</dc:creator>
      <dc:date>2020-04-04T08:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: S12G Flash Secure</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-Flash-Secure/m-p/1059754#M17230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A couple days ago, I got a reply through the email.And my problem was precisly pointed out. It's the "FLASH NOUNSECURE" problem. I put it to the wrong place.&lt;/P&gt;&lt;P&gt;Strange thing is that the reply and email is dispeared. And I think this is not the first time that this kind of things happened.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to thank the one who responsed to my question. Thank you, whoever you are.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2020 10:31:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/S12G-Flash-Secure/m-p/1059754#M17230</guid>
      <dc:creator>bloom_you</dc:creator>
      <dc:date>2020-04-10T10:31:02Z</dc:date>
    </item>
  </channel>
</rss>

