<?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: FlashEraseSector by ProcessorExpert in MK22FN128VLH10 in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501337#M31387</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question more.&lt;/P&gt;&lt;P&gt;Do I have to use 40MHz when I use Flash functions?&lt;/P&gt;&lt;P&gt;I want to use 80MHz Core Clock to implement my functions based by high speed core clock.&lt;/P&gt;&lt;P&gt;How do I implement codes with 80MHz high speed core clock and 40MHz clock flash functions simultaneously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Apr 2016 23:01:56 GMT</pubDate>
    <dc:creator>양승도</dc:creator>
    <dc:date>2016-04-16T23:01:56Z</dc:date>
    <item>
      <title>FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501333#M31383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to implement the FlashEraseSector like the example in flash_example_frdmk22f, before to implement FlashProgram. however; it returns "0x20"(FTFx_ERR_ACCERR).&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Environment:&lt;/P&gt;&lt;P&gt;MCU: MK22FN128VLH10&lt;/P&gt;&lt;P&gt;KDS: 3.0.0&lt;/P&gt;&lt;P&gt;KSDK: 1.2.0&lt;/P&gt;&lt;P&gt;Windows 10&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I set up the settings as following:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;in flash1:fsl_flash&amp;gt;&lt;/P&gt;&lt;P&gt;C90TFS register base address: 0x40020000&lt;/P&gt;&lt;P&gt;Program flash base address: 0x00000000&lt;/P&gt;&lt;P&gt;Size of program flash: 0x00020000&lt;/P&gt;&lt;P&gt;Data flash base address: 0x00000000&lt;/P&gt;&lt;P&gt;FlexRam base address: 0x00000000&lt;/P&gt;&lt;P&gt;Background debug mode enable: Disable&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;in osa1:fsl_os_abstraction&amp;gt;&lt;/P&gt;&lt;P&gt;OS: BareMetal&lt;/P&gt;&lt;P&gt;Used timer: None&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;- I attached a picture of "return 0x20" and source code.&lt;/P&gt;&lt;P&gt;Flash.png -&amp;gt; a picture of "return 0x20"&lt;/P&gt;&lt;P&gt;MK22FN128VLH10_Peripheral.zip -&amp;gt; source code with ProcessorExpert file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-337393"&gt;MK22FN128VLH10_Peripheral.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Apr 2016 07:16:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501333#M31383</guid>
      <dc:creator>양승도</dc:creator>
      <dc:date>2016-04-14T07:16:56Z</dc:date>
    </item>
    <item>
      <title>Re: FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501334#M31384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Please modify the clockMan1:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; FLLouput =40Mhz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Core clock = 40Mhz,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Then generate the code, build and run it again, whether this error still happens on your MK22FN128VLH10 board?&lt;/P&gt;&lt;P&gt;&amp;nbsp; After you test it, please give me your test result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&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;Jingjing&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, 15 Apr 2016 07:43:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501334#M31384</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-15T07:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501335#M31385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It works at 40MHz of FLLoutput and Core clock.&lt;/P&gt;&lt;P&gt;It returns 0x00 @ 40MHz.&lt;/P&gt;&lt;P&gt;If I have more question for Flash, I will reply again.&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2016 04:13:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501335#M31385</guid>
      <dc:creator>양승도</dc:creator>
      <dc:date>2016-04-16T04:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501336#M31386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question more.&lt;/P&gt;&lt;P&gt;Do I have to use 40MHz when I use Flash functions?&lt;/P&gt;&lt;P&gt;I want to use 80MHz Core Clock to implement my functions based by high speed core clock.&lt;/P&gt;&lt;P&gt;How do I implement codes with 80MHz high speed core clock and 40MHz clock flash functions simultaneously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2016 22:58:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501336#M31386</guid>
      <dc:creator>양승도</dc:creator>
      <dc:date>2016-04-16T22:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501337#M31387</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a question more.&lt;/P&gt;&lt;P&gt;Do I have to use 40MHz when I use Flash functions?&lt;/P&gt;&lt;P&gt;I want to use 80MHz Core Clock to implement my functions based by high speed core clock.&lt;/P&gt;&lt;P&gt;How do I implement codes with 80MHz high speed core clock and 40MHz clock flash functions simultaneously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Apr 2016 23:01:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501337#M31387</guid>
      <dc:creator>양승도</dc:creator>
      <dc:date>2016-04-16T23:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501338#M31388</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Your problem is probably the HIGH SSPEED RUN mode which is used to clock at above 80MHz. In HIGH SPEE RUN mode it is not possible to erase or program Flash (see the restrictions in the K22 user's manual).&lt;/P&gt;&lt;P&gt;As long as you don't work at &amp;gt; 80Mhz and don't use the HIGH SPEED RUN mode there are no restrictions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also works at 120MHz if you don't use HIGH SPEED RUN mode but the clocks are out of specification according to the data sheet (for tests it does however usually work normally).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 17 Apr 2016 12:27:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501338#M31388</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-04-17T12:27:45Z</dc:date>
    </item>
    <item>
      <title>Re: FlashEraseSector by ProcessorExpert in MK22FN128VLH10</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501339#M31389</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Frank Yang,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From the reference manual, you may know that:&lt;/P&gt;&lt;P&gt;1. The core and system clock frequencies must be 100 MHz or slower in HSRUN, 72MHz or slower in RUN.&lt;/P&gt;&lt;P&gt;If you configure the core clock at 80Mhz, it is the HSRUN mode, in&amp;nbsp; the HSRUN mode:Flash programming/erasing is not allowed, you can find this in the reference manual:K22P121M100SF9RM.pdf, page 343.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&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;Jingjing&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>Mon, 18 Apr 2016 03:15:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/FlashEraseSector-by-ProcessorExpert-in-MK22FN128VLH10/m-p/501339#M31389</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-18T03:15:40Z</dc:date>
    </item>
  </channel>
</rss>

