<?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>Kinetis Design Studio中的主题 Re: Flash Memory Protection/Violation</title>
    <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703958#M9205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Alice.&amp;nbsp; Unfortunately, it looks like this problem is actually not solvable remotely.&amp;nbsp; I am confusing memory Protection with Memory Security.&amp;nbsp; Memory security could be overridden with a backdoor key, however, memory protection could only be expanded, not reduce. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memory Protection is used to protect memory from accidental write while Memory Security is used for protection of IP on flash memory.&amp;nbsp; Our attempt at protecting the bootloader from accidental write practically made it un-updatable remotely. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All new unit will have their memory protection for the bootloader partition removed, but our existing unit will continue to have a locked bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Memory Protection configuration on Processor Expert can be found at:&lt;/P&gt;&lt;P&gt;Processor: CPU: Common settings: Flash configuration field: Protection regions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 10 Oct 2017 15:57:18 GMT</pubDate>
    <dc:creator>thanhtruong</dc:creator>
    <dc:date>2017-10-10T15:57:18Z</dc:date>
    <item>
      <title>Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703952#M9199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How are protected memory configured in KDS?&amp;nbsp; I am trying to update my bootloader and I notice that I am unable to write to internal flash memory from 0x00000000 to 0x00004000.&amp;nbsp; I look at the linker file and .map file to see where this is configure with no luck.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please point me to the right direction?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Much Appreciated,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Aug 2017 22:17:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703952#M9199</guid>
      <dc:creator>thanhtruong</dc:creator>
      <dc:date>2017-08-22T22:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703953#M9200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Thanh,&lt;/P&gt;&lt;P&gt;About the Flash protection code on KDS, there is a DOC I attached it ,please check&lt;/P&gt;&lt;P&gt;the part of "3.3.6. Flash Protection" .&lt;/P&gt;&lt;P&gt;And it is download from &lt;A href="https://community.nxp.com/docs/DOC-328365"&gt;Kinetis Bootloader to Update Multiple Devices in a Network for Cortex-M4&lt;/A&gt;&amp;nbsp; ,&lt;/P&gt;&lt;P&gt;you can find the code this DOC mentioned from this URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 03:47:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703953#M9200</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-08-23T03:47:51Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703954#M9201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Alice, following the documentation that you provided I am able to figure out how memory is protected on my M0+.&amp;nbsp; Its different than the M0+ you worked with, but similar enough that I know where to look in the processor documentation.&amp;nbsp; Unfortunately, as it is documented for my processor, the memory protection area can only be expanded, not remove (or reduce).&amp;nbsp; The documentation also mention that you can use an 8 bytes backdoor key to remove the lock, however, Processor Expert configuration for the flash memory API currently does not allow me to select the implementation of this method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's a little confusing since this key is configured in the CPU part of the configuration, while the implementation/use of this key is configured in the "flash memory" component of Processor Expert.&amp;nbsp; I tried making several changes in hope that Processor Expert would allow me to enable the creation of the flash memory "SetKeys" method with no luck.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Outside of reading all the documentation and figuring out how to write the 8 bytes key myself, would you happen to know what is needed for Processor Expert to enable the "SetKeys" method for the "flash memory" component?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 22:40:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703954#M9201</guid>
      <dc:creator>thanhtruong</dc:creator>
      <dc:date>2017-08-23T22:40:09Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703955#M9202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanh,&lt;/P&gt;&lt;P&gt;About the Processor Expert project on KDS, you can enable and configure the backdoor in the "Security setting" field :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27076i0106D5E404AD25D9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 04:18:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703955#M9202</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-08-24T04:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703956#M9203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Alice, I am aware of where to set the backdoor key, it the how to the make use of it that I am unable to find out.&amp;nbsp; It looks like the PE Internal Flash component is where you'll make use of the key.&amp;nbsp; However, as you can see below, it is grayed out so I can't tell PE to implement this method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27029iAF89D1DA9DD0D977/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this method to be enabled, is there a other requirements that I am unaware of?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Aug 2017 21:43:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703956#M9203</guid>
      <dc:creator>thanhtruong</dc:creator>
      <dc:date>2017-08-24T21:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703957#M9204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thanh,&lt;/P&gt;&lt;P&gt;I think maybe this Method "SetKeys" is not support for your chip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After configure the backdoor in the cpu component,&amp;nbsp; you need do nothing,&amp;nbsp; the generated code&lt;/P&gt;&lt;P&gt;will be on Cpu.c file , and when download project, the flash configuration field code will be flashed into&lt;/P&gt;&lt;P&gt;.cfmconfig section, please check below picture:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27235i27E4C46880FFEC8B/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And from the linker file you can see, the .cfmconfig section placed on 0x400-0x40F.&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/27044i9C96E43F7BC88ECE/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;&lt;/P&gt;&lt;P&gt;Check reference manual :&lt;/P&gt;&lt;P&gt;&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/27087i5556E259F39C4730/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;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Aug 2017 07:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703957#M9204</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2017-08-25T07:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Memory Protection/Violation</title>
      <link>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703958#M9205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Alice.&amp;nbsp; Unfortunately, it looks like this problem is actually not solvable remotely.&amp;nbsp; I am confusing memory Protection with Memory Security.&amp;nbsp; Memory security could be overridden with a backdoor key, however, memory protection could only be expanded, not reduce. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Memory Protection is used to protect memory from accidental write while Memory Security is used for protection of IP on flash memory.&amp;nbsp; Our attempt at protecting the bootloader from accidental write practically made it un-updatable remotely. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All new unit will have their memory protection for the bootloader partition removed, but our existing unit will continue to have a locked bootloader.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Memory Protection configuration on Processor Expert can be found at:&lt;/P&gt;&lt;P&gt;Processor: CPU: Common settings: Flash configuration field: Protection regions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Oct 2017 15:57:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Design-Studio/Flash-Memory-Protection-Violation/m-p/703958#M9205</guid>
      <dc:creator>thanhtruong</dc:creator>
      <dc:date>2017-10-10T15:57:18Z</dc:date>
    </item>
  </channel>
</rss>

