<?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中的主题 Flash Access Error</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671857#M41269</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'am currently working with K26f processor with KDS3.2 and KSDSK v1.3. Core clock is 180Mhz,Flash Clock is 25.71 Mhz as Processor Expert recommends...&lt;/P&gt;&lt;P&gt;I imported Flash Driver component into my project,selected the address to erase in internal flash,but FlashErase () returns me error 0x20 - Flash Access Memory.Following is my code after importing "Flash Driver Component" from Component Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define LAUNCH_CMD_SIZE 0x100&lt;BR /&gt;pFLASHCOMMANDSEQUENCE g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)0xFFFFFFFF;&lt;BR /&gt;// Array to copy __Launch_Command func to RAM.&lt;BR /&gt;uint16_t ramFunc[LAUNCH_CMD_SIZE/2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t destAdrss = (uint32_t *)0x0001efff ;&lt;BR /&gt; // Set command to RAM.&lt;BR /&gt; g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)RelocateFunction((uint32_t)ramFunc , LAUNCH_CMD_SIZE ,(uint32_t)FlashCommandSequence);&lt;BR /&gt; INT_SYS_DisableIRQGlobal();&lt;BR /&gt; uint32_t result = FlashEraseSector(&amp;amp;flash1_InitConfig0,destAdrss,FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE,&lt;BR /&gt; g_FlashLaunchCommand);&lt;BR /&gt; INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result backs to me error 0x20 - Flash Access Error....&lt;/P&gt;&lt;P&gt;What's wrong here?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jul 2017 09:34:07 GMT</pubDate>
    <dc:creator>renka</dc:creator>
    <dc:date>2017-07-17T09:34:07Z</dc:date>
    <item>
      <title>Flash Access Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671857#M41269</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'am currently working with K26f processor with KDS3.2 and KSDSK v1.3. Core clock is 180Mhz,Flash Clock is 25.71 Mhz as Processor Expert recommends...&lt;/P&gt;&lt;P&gt;I imported Flash Driver component into my project,selected the address to erase in internal flash,but FlashErase () returns me error 0x20 - Flash Access Memory.Following is my code after importing "Flash Driver Component" from Component Library.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;#define LAUNCH_CMD_SIZE 0x100&lt;BR /&gt;pFLASHCOMMANDSEQUENCE g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)0xFFFFFFFF;&lt;BR /&gt;// Array to copy __Launch_Command func to RAM.&lt;BR /&gt;uint16_t ramFunc[LAUNCH_CMD_SIZE/2];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uint32_t destAdrss = (uint32_t *)0x0001efff ;&lt;BR /&gt; // Set command to RAM.&lt;BR /&gt; g_FlashLaunchCommand = (pFLASHCOMMANDSEQUENCE)RelocateFunction((uint32_t)ramFunc , LAUNCH_CMD_SIZE ,(uint32_t)FlashCommandSequence);&lt;BR /&gt; INT_SYS_DisableIRQGlobal();&lt;BR /&gt; uint32_t result = FlashEraseSector(&amp;amp;flash1_InitConfig0,destAdrss,FSL_FEATURE_FLASH_PFLASH_BLOCK_SECTOR_SIZE,&lt;BR /&gt; g_FlashLaunchCommand);&lt;BR /&gt; INT_SYS_EnableIRQGlobal();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result backs to me error 0x20 - Flash Access Error....&lt;/P&gt;&lt;P&gt;What's wrong here?&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jul 2017 09:34:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671857#M41269</guid>
      <dc:creator>renka</dc:creator>
      <dc:date>2017-07-17T09:34:07Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Access Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671858#M41270</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/27608i122DAD3525B87FA9/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will explain if you are in HSRUN mode. To program flash you need to be in RUN mode (max. 120Mhz CPU clock).&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>Mon, 17 Jul 2017 23:50:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671858#M41270</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-07-17T23:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Access Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671859#M41271</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much. It's working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jul 2017 08:40:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671859#M41271</guid>
      <dc:creator>renka</dc:creator>
      <dc:date>2017-07-18T08:40:49Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Access Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671860#M41272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was having&amp;nbsp;kStatus_FLASH_AccessError while using&amp;nbsp;FLASH_Erase command with Kinetis SDK 2.2 with a K02F microcontroller.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was puzzled why it had such an issue until I saw your answer.&amp;nbsp;Thank you very much. I really appreciate your this and other countless helps to the community.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 09:14:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/671860#M41272</guid>
      <dc:creator>abdullahkahrama</dc:creator>
      <dc:date>2017-10-20T09:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flash Access Error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/1650304#M65054</link>
      <description>&lt;P&gt;The solution work !!!&amp;nbsp;&lt;/P&gt;&lt;P&gt;this help me alot. Thank for very helpful advise.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;</description>
      <pubDate>Mon, 15 May 2023 12:05:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Flash-Access-Error/m-p/1650304#M65054</guid>
      <dc:creator>fitz-nguyen</dc:creator>
      <dc:date>2023-05-15T12:05:01Z</dc:date>
    </item>
  </channel>
</rss>

