<?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 Software Development KitのトピックHow to use &amp;quot;fsl_flash&amp;quot; componect of Processor Expert</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334525#M157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use KDS 2.0.0 + KSDK 1.1.0 and enable Processor Expert to develop FRDM-K22F.&lt;/P&gt;&lt;P&gt;How to fill the parameter in PE Component Inspector?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21197_21197.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120229iB43B079FA535AE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="21197_21197.png" alt="21197_21197.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44772iE8CA8669F48365F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how to use API to read/write internal flash?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Mar 2015 09:06:24 GMT</pubDate>
    <dc:creator>tangwang</dc:creator>
    <dc:date>2015-03-20T09:06:24Z</dc:date>
    <item>
      <title>How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334525#M157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use KDS 2.0.0 + KSDK 1.1.0 and enable Processor Expert to develop FRDM-K22F.&lt;/P&gt;&lt;P&gt;How to fill the parameter in PE Component Inspector?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="21197_21197.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/120229iB43B079FA535AE7C/image-size/large?v=v2&amp;amp;px=999" role="button" title="21197_21197.png" alt="21197_21197.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/44772iE8CA8669F48365F2/image-size/large?v=v2&amp;amp;px=999" role="button" title="1.png" alt="1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And how to use API to read/write internal flash?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Mar 2015 09:06:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334525#M157</guid>
      <dc:creator>tangwang</dc:creator>
      <dc:date>2015-03-20T09:06:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334526#M158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anybody help me ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 03:31:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334526#M158</guid>
      <dc:creator>tangwang</dc:creator>
      <dc:date>2015-03-24T03:31:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334527#M159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;STRONG class="font-color-meta"&gt;&lt;SPAN class="replyToName"&gt;Tang wang&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="replyToName"&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="replyToName"&gt;&lt;/SPAN&gt;you need to know (from linker file or the manual) where at the address the area of the flash memory starts and its size and these values you fill to properties in flash component.&lt;/P&gt;&lt;P&gt;I recommend you to go to folder of KSDK, e.g. C:\Freescale\KSDK_1.1.0\platform\drivers\src\flash\C90TFS&lt;/P&gt;&lt;P&gt;and here you have a user manual for Standard Software Driver for C90TFS/FTFx Flash. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it helps you,&lt;/P&gt;&lt;P&gt;Iva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Mar 2015 08:41:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334527#M159</guid>
      <dc:creator>ivadorazinova</dc:creator>
      <dc:date>2015-03-24T08:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334528#M160</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Tang Wang:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached you can find a very simple KSDK + Processor Expert project showing how to configure and use the &lt;STRONG&gt;fsl_flash&lt;/STRONG&gt; component with a K22FN512 as the one in FRDM-K22F board. The demo project simply writes 16 x 32-bit values from a buffer to flash memory starting at address 0x40000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you were advised by colleague Iva, the &lt;STRONG&gt;fsl_flash&lt;/STRONG&gt; component settings depend on the specific device, so for each case you need to visit the Reference Manual to see the corresponding addresses and sizes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards!,&lt;BR /&gt;Jorge Gonzalez&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, 26 Mar 2015 03:56:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334528#M160</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2015-03-26T03:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334529#M161</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried your code on FRDM-K82F target,&amp;nbsp;with my&amp;nbsp;KDS PEx based project,&amp;nbsp;and it is not working. When I call:&lt;/P&gt;&lt;P&gt;readError = FlashProgram(&amp;amp;flash1_InitConfig0, (uint32_t)(pAddress + 4*i), 0x4, (uint8_t*)&amp;amp;myData[i], &lt;A href="https://community.nxp.com/"&gt;\ FlashCommandSequence&lt;/A&gt;);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get readError = 0x0020. Which corresponds to FTFx_ERR_ACCERR. I have disabled global interrupts during the call but can't get around the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My another question is that&amp;nbsp;how do fsl_flash component methods get around flash read-while-write issue? Do the component methods automatically handle relocation into RAM? What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Irwin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Nov 2016 18:58:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334529#M161</guid>
      <dc:creator>GR8geek</dc:creator>
      <dc:date>2016-11-18T18:58:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334530#M162</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Irwin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please consider the next points about the flash driver:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- In the &lt;STRONG&gt;fsl_os_abstraction &lt;/STRONG&gt;component select &lt;EM&gt;None&lt;/EM&gt; as the used timer. By default &lt;EM&gt;SysTick&lt;/EM&gt; is selected.&lt;/P&gt;&lt;P&gt;- The K82F must not be in HSRUN mode (e.g. 150 MHz). Flash commands are not allowed when in HSRUN mode.&lt;/P&gt;&lt;P&gt;- The &lt;STRONG&gt;FlashCommandSequence&lt;/STRONG&gt;&lt;STRONG&gt;()&lt;/STRONG&gt; must indeed be relocated to RAM by calling &lt;STRONG&gt;RelocateFunction&lt;/STRONG&gt; (I actually missed this step in my previous example). Then use the returned pointer as parameter for the flash APIs. Take a look at the attached source file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These hints should resolve your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 Nov 2016 03:50:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334530#M162</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-11-26T03:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334531#M163</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jorge,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;I am using the MK22FN512xxx12 part, and I am running it at 120Mhz.&lt;/P&gt;&lt;P&gt;I have tried to use the PEX components (the intFlash kinetis component) to program my calibration data into a single 2k page, but I get nothing but errors. &amp;nbsp; &amp;nbsp;I see here that you say The K82 cannot be flash programmed in HSRUN mode (150Mhz), &amp;nbsp;and I suspect that this might also be my problem. &amp;nbsp;I can't find where the reference manual says anything about there being a max speed. &amp;nbsp;I am running in PEE MCG mode with a 120Mhz core, 60Mhz bus, and 24Mhz Flash clock &amp;nbsp;(which sounds okay to me)&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; So do I need to set up another clock to use or something on my K22 also? &amp;nbsp; &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have downloaded the KSDK 2.2 for my CPU and was going to try just dumping the two files fsl_flash .c and .h into my code and not use the PEX component - will that be any better/different?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brynn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 03:08:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334531#M163</guid>
      <dc:creator>Tonkabot</dc:creator>
      <dc:date>2017-04-19T03:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334532#M164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brynn Rogers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Indeed, flash programming is not allowed in HSRUN mode. This is mentioned in the K22FN512xxx12 Reference Manual:&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/9821i82537695703D6E07/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;As workaround you can have a clock configuration for max speed (120 MHz in HSRUN) and another for RUN mode (80 MHz). Change to the 80 MHz clock configuration when writing to flash and then back to 120 MHz.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See below some posts about clock configurations in &lt;STRONG&gt;KSDK v1.x&lt;/STRONG&gt;:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-329554"&gt;KSDK Clock configurations and Low Power modes with Processor Expert&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/357115"&gt;Change between clock configurations&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/356449"&gt;https://community.nxp.com/thread/356449&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are in an early development stage, I would highly recommend you to use instead the latest &lt;STRONG&gt;KSDK v2.x&lt;/STRONG&gt;. Adding only the files &lt;STRONG&gt;fsl_flash.c &lt;/STRONG&gt;/&lt;STRONG&gt; fsl_flash.h&lt;/STRONG&gt; might not be direct since there are a few file dependencies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;P&gt;Jorge Gonzalez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 21:35:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334532#M164</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2017-04-19T21:35:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to use "fsl_flash" componect of Processor Expert</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334533#M165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Jorge,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; It would be really really helpful to anyone who is trying to write to flash that has not memorized the reference manual that it would mention this in chapter 29, the Flash Memory module (FTFA) portion of the Reference manual.&lt;/P&gt;&lt;P&gt;&amp;nbsp; Or if the error&amp;nbsp;message number returned by the PEX code (or fsl_flash.c code) would come right out and say that the clock is too high....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything I am doing is using the PEX and especially Erich Styger's excellent custom PEX components. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brynn&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Apr 2017 22:43:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/How-to-use-quot-fsl-flash-quot-componect-of-Processor-Expert/m-p/334533#M165</guid>
      <dc:creator>Tonkabot</dc:creator>
      <dc:date>2017-04-19T22:43:55Z</dc:date>
    </item>
  </channel>
</rss>

