<?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: k65 flash erase in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k65-flash-erase/m-p/462393#M27736</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve Robalino:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually this kind of error is caused by one of the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-&lt;/STRONG&gt; Not relocating the Flash Command function to RAM (Read-While-Write error).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- &lt;/STRONG&gt;Check that you are calling the &lt;STRONG&gt;Flash_Init()&lt;/STRONG&gt; function before any flash operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-&lt;/STRONG&gt; Interrupt triggering during a Flash operation (Read-While-Write error).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt; Disable all interrupts globally before calling any Flash operation API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;DisableGlobalIRQ();&lt;/P&gt;&lt;P&gt;FLASH_Erase(...);&lt;/P&gt;&lt;P&gt;EnableGlobalIRQ();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-&lt;/STRONG&gt; MCU working in HSRUN mode (180 MHz for K65) where flash operations are not allowed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt; You are working at 120 MHz so I do not think this applies to your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these points and if you cannot solve the issue please let me know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best 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>Mon, 25 Apr 2016 21:29:59 GMT</pubDate>
    <dc:creator>Jorge_Gonzalez</dc:creator>
    <dc:date>2016-04-25T21:29:59Z</dc:date>
    <item>
      <title>k65 flash erase</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k65-flash-erase/m-p/462392#M27735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Im trying to erase flash starting at address 0x14000 for a total of 3 4096 byte sectors. when the erase function is called (Im using SDK 2.0) the code resets - the same occurs when I try to program the flash - &lt;/P&gt;&lt;P&gt;Im running the chip at 120Mhz and the flash clock is 24mhz&lt;/P&gt;&lt;P&gt;Im not using Kboot or other.... its our own code&lt;/P&gt;&lt;P&gt;when I program the very top of flash memory (x1FE000 &amp;amp; x1FF000) the erase and program operation works fine&lt;/P&gt;&lt;P&gt;only at lower memory addresses it fails&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Apr 2016 13:59:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k65-flash-erase/m-p/462392#M27735</guid>
      <dc:creator>steverobalino</dc:creator>
      <dc:date>2016-04-20T13:59:45Z</dc:date>
    </item>
    <item>
      <title>Re: k65 flash erase</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/k65-flash-erase/m-p/462393#M27736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Steve Robalino:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Usually this kind of error is caused by one of the next:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1-&lt;/STRONG&gt; Not relocating the Flash Command function to RAM (Read-While-Write error).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;- &lt;/STRONG&gt;Check that you are calling the &lt;STRONG&gt;Flash_Init()&lt;/STRONG&gt; function before any flash operations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2-&lt;/STRONG&gt; Interrupt triggering during a Flash operation (Read-While-Write error).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt; Disable all interrupts globally before calling any Flash operation API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;P&gt;DisableGlobalIRQ();&lt;/P&gt;&lt;P&gt;FLASH_Erase(...);&lt;/P&gt;&lt;P&gt;EnableGlobalIRQ();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3-&lt;/STRONG&gt; MCU working in HSRUN mode (180 MHz for K65) where flash operations are not allowed.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;-&lt;/STRONG&gt; You are working at 120 MHz so I do not think this applies to your case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these points and if you cannot solve the issue please let me know.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Best 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>Mon, 25 Apr 2016 21:29:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/k65-flash-erase/m-p/462393#M27736</guid>
      <dc:creator>Jorge_Gonzalez</dc:creator>
      <dc:date>2016-04-25T21:29:59Z</dc:date>
    </item>
  </channel>
</rss>

