<?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 MicrocontrollersのトピックRe: NXP MKV30F128xxx10 芯片RAM运行工程 擦除FLASH 扇区不成功</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008570#M56042</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;多谢回复！&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 目前问题定位到，之所以擦除时出现&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ACCERR，是因为芯片处于HSRUN模式，此时Flash操作不生效，更改为RUN模式后擦除正常。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;另外还有一个问题没有理解：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; FTFA_FSEC寄存器的值是上电后从Flash地址0x40C中读出来的，默认情况下这个地址的值在工程中设置为0xFE，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;如果在工程里面将配置值改为0xEC，即MEEN位是0b10，SEC位是0b00，当这个程序下载进入芯片后，是不是意味着&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;程序再也无法正常启动了。在启动文件startup_mkv30f12810.c中配置如下所示：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100495i2C83BB70E767FB1F/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 02 Feb 2020 14:53:46 GMT</pubDate>
    <dc:creator>yaoXin</dc:creator>
    <dc:date>2020-02-02T14:53:46Z</dc:date>
    <item>
      <title>NXP MKV30F128xxx10 芯片RAM运行工程 擦除FLASH 扇区不成功</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008568#M56040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;您好，第一次使用NXP MKV30F128xxx10芯片，模仿pflash例程编写一个简单工程，&lt;SPAN&gt;pflash例程readme.txt文档如下：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99715iE3487033472067B1/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;工程在RAM中执行，使用IAR软件编译，ICF配置如下：&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99781iF9ECDAECC1AF0E66/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;工程使用UART外设，自定义协议，&lt;SPAN&gt;UART通讯正常。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;扇区擦除代码如下：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/99809i96E90E47178E19D8/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_3.png" alt="pastedImage_3.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;StartAddr地址设置过0x00000000,&amp;nbsp;&lt;SPAN&gt;0x00004000&lt;/SPAN&gt;&amp;nbsp;，FLASH_Erase函数 反馈均为错误。&lt;/P&gt;&lt;P&gt;查看FTFA_FSTAT寄存器，&lt;SPAN&gt;FLASH_Erase&lt;/SPAN&gt;函数调用前为0x80，&lt;SPAN&gt;FLASH_Erase&lt;/SPAN&gt;函数调用后为0xA0，位ACCERR变成1，&lt;/P&gt;&lt;P&gt;请帮忙分析一下原因，谢谢&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Jan 2020 07:04:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008568#M56040</guid>
      <dc:creator>yaoXin</dc:creator>
      <dc:date>2020-01-28T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MKV30F128xxx10 芯片RAM运行工程 擦除FLASH 扇区不成功</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008569#M56041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Hope you are doing well. From my understanding , you are having trouble executing the flash erase command. Is this correct?&lt;/P&gt;&lt;P&gt;Could you confirm if you are able to execute the example without any modifications.&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Sabina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jan 2020 20:42:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008569#M56041</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-01-30T20:42:18Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MKV30F128xxx10 芯片RAM运行工程 擦除FLASH 扇区不成功</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008570#M56042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;多谢回复！&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 目前问题定位到，之所以擦除时出现&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;ACCERR，是因为芯片处于HSRUN模式，此时Flash操作不生效，更改为RUN模式后擦除正常。&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;另外还有一个问题没有理解：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp; &amp;nbsp; FTFA_FSEC寄存器的值是上电后从Flash地址0x40C中读出来的，默认情况下这个地址的值在工程中设置为0xFE，&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;如果在工程里面将配置值改为0xEC，即MEEN位是0b10，SEC位是0b00，当这个程序下载进入芯片后，是不是意味着&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;程序再也无法正常启动了。在启动文件startup_mkv30f12810.c中配置如下所示：&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/100495i2C83BB70E767FB1F/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 02 Feb 2020 14:53:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008570#M56042</guid>
      <dc:creator>yaoXin</dc:creator>
      <dc:date>2020-02-02T14:53:46Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MKV30F128xxx10 芯片RAM运行工程 擦除FLASH 扇区不成功</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008571#M56043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 另外在芯片地址0x400~0x40F中，如果原来这16个字节全部为0xFF，或者为其它任意值，但还允许Mass Erase，当更改启动文件Flash_Config中的值后，通过Jtag下载程序到芯片中后，能将地址0x400~0x40F中的配置值更新吗，如果不能更新，会是什么原因？&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Feb 2020 11:05:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008571#M56043</guid>
      <dc:creator>yaoXin</dc:creator>
      <dc:date>2020-02-04T11:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: NXP MKV30F128xxx10 芯片RAM运行工程 擦除FLASH 扇区不成功</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008572#M56044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;First, any attempts to execute a flash command while in HSRUN mode it will be trapped with the ACCERR bit. Please refer to section&amp;nbsp;28.4.9.1 of the &lt;A href="https://www.nxp.com/webapp/Download?colCode=KV30P64M100SFARM"&gt;reference manual&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;The original startup configuration is &lt;STRONG&gt;FE&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/102087iAB27E4DF437C4A85/image-size/large?v=v2&amp;amp;px=999" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;This means&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MCU security status is unsecure (The standard shipping condition of the flash memory module is unsecure)&lt;/LI&gt;&lt;LI&gt;NXP factory access granted&lt;/LI&gt;&lt;LI&gt;Mass erase is enabled&lt;/LI&gt;&lt;LI&gt;Backdoor key access disabled&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;If you change it to &lt;STRONG&gt;EC&lt;/STRONG&gt;, then&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;MCU security status is secure&lt;/LI&gt;&lt;LI&gt;NXP factory access granted&lt;/LI&gt;&lt;LI&gt;Mass erase is disabled&lt;/LI&gt;&lt;LI&gt;Backdoor key access disabled&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;During the reset sequence, the register is loaded with the contents of the flash security byte in the Flash Configuration Field located in program flash memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2020 18:14:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/NXP-MKV30F128xxx10-%E8%8A%AF%E7%89%87RAM%E8%BF%90%E8%A1%8C%E5%B7%A5%E7%A8%8B-%E6%93%A6%E9%99%A4FLASH-%E6%89%87%E5%8C%BA%E4%B8%8D%E6%88%90%E5%8A%9F/m-p/1008572#M56044</guid>
      <dc:creator>Sabina_Bruce</dc:creator>
      <dc:date>2020-02-06T18:14:15Z</dc:date>
    </item>
  </channel>
</rss>

