<?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のトピックFRDM-K28F pflash sample fails in own project</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K28F-pflash-sample-fails-in-own-project/m-p/881688#M52294</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement a bootloader and therefore want to erase and reprogram flash areas. I ran the frdmk28f_pflash sample and it worked as expected. If I take the same code out of the main method and add it to my own project, the call to FLASH_Erase fails, because callFtfxRunCommand sets the FTFx_FSTAT_ACCERR_MASK flag in the FTFx-&amp;gt;FSTAT register.&lt;/P&gt;&lt;P&gt;I tried to find out what the difference are there (preprocessor defines or differences in linker script). I couldn't find anything that seems to be the reason for this different behaviour.&lt;/P&gt;&lt;P&gt;Could anyone please point me in the right direction what I am doing wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated. Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Feb 2019 11:43:27 GMT</pubDate>
    <dc:creator>abaur</dc:creator>
    <dc:date>2019-02-04T11:43:27Z</dc:date>
    <item>
      <title>FRDM-K28F pflash sample fails in own project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K28F-pflash-sample-fails-in-own-project/m-p/881688#M52294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to implement a bootloader and therefore want to erase and reprogram flash areas. I ran the frdmk28f_pflash sample and it worked as expected. If I take the same code out of the main method and add it to my own project, the call to FLASH_Erase fails, because callFtfxRunCommand sets the FTFx_FSTAT_ACCERR_MASK flag in the FTFx-&amp;gt;FSTAT register.&lt;/P&gt;&lt;P&gt;I tried to find out what the difference are there (preprocessor defines or differences in linker script). I couldn't find anything that seems to be the reason for this different behaviour.&lt;/P&gt;&lt;P&gt;Could anyone please point me in the right direction what I am doing wrong here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help is highly appreciated. Many thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Feb 2019 11:43:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K28F-pflash-sample-fails-in-own-project/m-p/881688#M52294</guid>
      <dc:creator>abaur</dc:creator>
      <dc:date>2019-02-04T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: FRDM-K28F pflash sample fails in own project</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K28F-pflash-sample-fails-in-own-project/m-p/881689#M52295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aaron Baur,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Two points you need to note:&lt;/P&gt;&lt;P&gt;1. Put the flash launch commander function in the RAM&lt;/P&gt;&lt;P&gt;2. Before you do the flash operation, please disable the global interrupt, after you finish the flash operation, you can enable it again.&lt;/P&gt;&lt;P&gt;Please try it on your side.&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question about it, please kindly let me know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Kerry&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt; Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Mar 2019 06:17:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FRDM-K28F-pflash-sample-fails-in-own-project/m-p/881689#M52295</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2019-03-04T06:17:07Z</dc:date>
    </item>
  </channel>
</rss>

