<?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のトピックRe: K64F flash: why do I need to disable the system IRQs when writing/erasing sectors on the first bank (0 -&amp;gt; 512KB)?</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643143#M38993</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark. Will read the documents again - this time more carefully!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Oct 2016 22:07:14 GMT</pubDate>
    <dc:creator>jorgeramirezort</dc:creator>
    <dc:date>2016-10-17T22:07:14Z</dc:date>
    <item>
      <title>K64F flash: why do I need to disable the system IRQs when writing/erasing sectors on the first bank (0 -&gt; 512KB)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643141#M38991</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I noticed that unless I disable interrupts before calling FLASH_erase or FLASH_write for sectors located in the first flash bank (0..512KB) the system reboots continuously.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is not required when accessing the second flash bank (512KB to 1024KB).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using the KSDK 2.0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I couldn't find any information in the documents that captures the above observation - and I can't actually make any sense out of it.&lt;/P&gt;&lt;P&gt;Please could anyone&amp;nbsp;shed some light?&lt;/P&gt;&lt;P&gt;many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 18:58:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643141#M38991</guid>
      <dc:creator>jorgeramirezort</dc:creator>
      <dc:date>2016-10-17T18:58:06Z</dc:date>
    </item>
    <item>
      <title>Re: K64F flash: why do I need to disable the system IRQs when writing/erasing sectors on the first bank (0 -&gt; 512KB)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643142#M38992</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;The K64 has two Flash "planes" (2 x 512K blocks). When writing/erasing any part of a block/plane the complete block is not available for program operation until the operation has terminated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This means that if you have program and interrupt vectors operating exclusively in the first plane (first 512k) addresses/sectors in the second plane (second 512k) can be modified &lt;EM&gt;without any restrictions&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you however modify anything in the first 512k (which has code and interrupt vectors in operation) you &lt;EM&gt;must&lt;/EM&gt; run the flashing routines in RAM (since the program flash is not available) and you also &lt;EM&gt;need to disable any interrupt&lt;/EM&gt; since they will also cause the vectors and interrupt handling code to be executed - causing a failure since the Flash plane cannot be accessed. [An exception would be if the interrupt vectors are in SRAM and also all interrupt handling code are also in SRAM].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you look carefully you should find a description of the flash being constructed of two planes, which is giving the information about what is possible and what needs to be restricted during flash operations.&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 Oct 2016 21:00:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643142#M38992</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2016-10-17T21:00:43Z</dc:date>
    </item>
    <item>
      <title>Re: K64F flash: why do I need to disable the system IRQs when writing/erasing sectors on the first bank (0 -&gt; 512KB)?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643143#M38993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Mark. Will read the documents again - this time more carefully!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Oct 2016 22:07:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K64F-flash-why-do-I-need-to-disable-the-system-IRQs-when-writing/m-p/643143#M38993</guid>
      <dc:creator>jorgeramirezort</dc:creator>
      <dc:date>2016-10-17T22:07:14Z</dc:date>
    </item>
  </channel>
</rss>

