<?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 Re: FRDM-k64F | Device FTMRH_PFlash64RAM4 is protected in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-k64F-Device-FTMRH-PFlash64RAM4-is-protected/m-p/1981260#M66874</link>
    <description>&lt;P&gt;Hi HariHaran4274,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the on chip flash is secured. Thus any other debug interface can not access it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest you check your source code if Flash Security Register is set by accident. You may create a brand new project to test if you experience the same problem with it while debugging.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are several flash secure levels. &lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;If the flash is secured by FSEC[SEC] bit only, user can unsecure the device by J-Link commander. Go to &lt;A href="https://www.segger.com/" target="_blank"&gt;https://www.segger.com/&lt;/A&gt; to download J-Link Commander. See attached video of how to use J-Link commander&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If the flash is secured by SEC secure + MEEN(FSEC[MEEN] = 10) disable, attempts to mass erase via the debug interface are blocked. debugger interface can no longer unsecure flash by mass erase. Thus the chip can no longer be reprogrammed and revised. The flash can be only read by returning to the NXP factory.&amp;nbsp; I have many customer experienced this problem because MEEN is disabled.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If the flash is secured by SEC secure + FSLACC denied. It is similar like level 2 above, but even NXP factory cannot unsecure it. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 13:01:15 GMT</pubDate>
    <dc:creator>ZhangJennie</dc:creator>
    <dc:date>2024-10-24T13:01:15Z</dc:date>
    <item>
      <title>FRDM-k64F | Device FTMRH_PFlash64RAM4 is protected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-k64F-Device-FTMRH-PFlash64RAM4-is-protected/m-p/1980033#M66872</link>
      <description>&lt;P&gt;Hi Community,&lt;/P&gt;&lt;P&gt;I am using FRDM-K64 board for past few months.&lt;BR /&gt;Unexpectedly when i try to flash that controller , it enumerates the following in the console.&lt;/P&gt;&lt;P&gt;fl::target -lc "yes"&lt;BR /&gt;fl::target -b 0x1ffffc00 0x1000&lt;BR /&gt;fl::target -v on -l off&lt;BR /&gt;cmdwin::fl::device -d "FTMRH_DFlash256S1RAM4" -o "256x32x1" -a 0x10000000 0x100000ff&lt;BR /&gt;cmdwin::fl::erase all&lt;BR /&gt;Beginning Operation ...&lt;BR /&gt;-------------------------&lt;BR /&gt;Performing target initialization ...&lt;BR /&gt;Device FTMRH_DFlash256S1RAM4 is protected&lt;BR /&gt;Erasing .............&lt;BR /&gt;Erase Command Succeeded.&lt;BR /&gt;Device FTMRH_DFlash256S1RAM4 is protected&lt;BR /&gt;cmdwin::fl::device -d "FTMRH_PFlash64RAM4" -o "16kx32x1" -a 0x0 0xffff&lt;BR /&gt;cmdwin::fl::image -f "C:\\Users\\vvsa\\Downloads\\gpio.bin" -t "Auto Detect" -re on -r 0x0 0xffff -oe off&lt;BR /&gt;cmdwin::fl::erase image&lt;BR /&gt;Beginning Operation ...&lt;BR /&gt;-------------------------&lt;BR /&gt;Auto-detection is successful.&lt;BR /&gt;File is of type Binary/Raw Format.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Device FTMRH_PFlash64RAM4 is protected &lt;/STRONG&gt;&lt;BR /&gt;Erasing ..............&lt;BR /&gt;Erase Command Succeeded.&lt;BR /&gt;&lt;STRONG&gt;Device FTMRH_PFlash64RAM4 is protected &lt;/STRONG&gt;&lt;BR /&gt;cmdwin::fl::write&lt;BR /&gt;-------------------------&lt;BR /&gt;Flash Operation. ...&lt;BR /&gt;Auto-detection is successful.&lt;BR /&gt;File is of type Binary/Raw Format.&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;Device FTMRH_PFlash64RAM4 is protected &lt;/STRONG&gt;&lt;BR /&gt;Programming ....&lt;BR /&gt;&lt;STRONG&gt;Device FTMRH_PFlash64RAM4 is protected &lt;/STRONG&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Error: Program Command Failed.&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;Error: Program Command Failed.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Please suggest me a solution.&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks in Advance!!&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 23 Oct 2024 08:57:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-k64F-Device-FTMRH-PFlash64RAM4-is-protected/m-p/1980033#M66872</guid>
      <dc:creator>HariHaran4274</dc:creator>
      <dc:date>2024-10-23T08:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-k64F | Device FTMRH_PFlash64RAM4 is protected</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-k64F-Device-FTMRH-PFlash64RAM4-is-protected/m-p/1981260#M66874</link>
      <description>&lt;P&gt;Hi HariHaran4274,&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If the on chip flash is secured. Thus any other debug interface can not access it.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest you check your source code if Flash Security Register is set by accident. You may create a brand new project to test if you experience the same problem with it while debugging.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;There are several flash secure levels. &lt;/SPAN&gt;&lt;/P&gt;
&lt;OL&gt;
&lt;LI&gt;&lt;SPAN&gt;If the flash is secured by FSEC[SEC] bit only, user can unsecure the device by J-Link commander. Go to &lt;A href="https://www.segger.com/" target="_blank"&gt;https://www.segger.com/&lt;/A&gt; to download J-Link Commander. See attached video of how to use J-Link commander&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If the flash is secured by SEC secure + MEEN(FSEC[MEEN] = 10) disable, attempts to mass erase via the debug interface are blocked. debugger interface can no longer unsecure flash by mass erase. Thus the chip can no longer be reprogrammed and revised. The flash can be only read by returning to the NXP factory.&amp;nbsp; I have many customer experienced this problem because MEEN is disabled.&lt;/SPAN&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;SPAN&gt;If the flash is secured by SEC secure + FSLACC denied. It is similar like level 2 above, but even NXP factory cannot unsecure it. &lt;/SPAN&gt;&lt;/LI&gt;
&lt;/OL&gt;
&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Jun Zhang&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 13:01:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-k64F-Device-FTMRH-PFlash64RAM4-is-protected/m-p/1981260#M66874</guid>
      <dc:creator>ZhangJennie</dc:creator>
      <dc:date>2024-10-24T13:01:15Z</dc:date>
    </item>
  </channel>
</rss>

