<?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>LPC MicrocontrollersのトピックIs ALL on-chip flash inaccessible durring IAP erase/write calls?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-ALL-on-chip-flash-inaccessible-durring-IAP-erase-write-calls/m-p/673212#M26933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;34.3.6.2 Interrupts during IAP&lt;BR /&gt;The on-chip flash memory is not accessible during erase/write operations. When the user&lt;BR /&gt;application code starts executing, the interrupt vectors from the user flash area are active.&lt;BR /&gt;Before making any IAP call, either disable the interrupts or ensure that the user interrupt&lt;BR /&gt;vectors are active in RAM and that the interrupt handlers reside in RAM. The IAP code&lt;BR /&gt;does not use or disable interrupts.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;34.8.2 Copy RAM to flash&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Remark: All user code must be written in such a way that no master accesses the&lt;BR /&gt;flash while this command is executed and the flash is programmed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Those quotes are from the LPC15xx manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ALL of the on-chip flash inaccessible during ANY erase or write IAP operation, or is it only the regions of flash being operated on by the IAP command that are inaccessible during the IAP call?&amp;nbsp; In other words, can I safely make IAP calls from code residing in on-chip flash without disabling interrupts, provided that I prevent IAP from erasing or writing the area(s) of flash where the program code resides?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, is on-chip flash inaccessible during IAP write calls to the EEPROM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm questioning the word "any" in the "Before making any IAP call, either disable the interrupts..." statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 02 Jun 2017 04:26:59 GMT</pubDate>
    <dc:creator>jdupre</dc:creator>
    <dc:date>2017-06-02T04:26:59Z</dc:date>
    <item>
      <title>Is ALL on-chip flash inaccessible durring IAP erase/write calls?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-ALL-on-chip-flash-inaccessible-durring-IAP-erase-write-calls/m-p/673212#M26933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;34.3.6.2 Interrupts during IAP&lt;BR /&gt;The on-chip flash memory is not accessible during erase/write operations. When the user&lt;BR /&gt;application code starts executing, the interrupt vectors from the user flash area are active.&lt;BR /&gt;Before making any IAP call, either disable the interrupts or ensure that the user interrupt&lt;BR /&gt;vectors are active in RAM and that the interrupt handlers reside in RAM. The IAP code&lt;BR /&gt;does not use or disable interrupts.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;34.8.2 Copy RAM to flash&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Remark: All user code must be written in such a way that no master accesses the&lt;BR /&gt;flash while this command is executed and the flash is programmed.&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Those quotes are from the LPC15xx manual.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is ALL of the on-chip flash inaccessible during ANY erase or write IAP operation, or is it only the regions of flash being operated on by the IAP command that are inaccessible during the IAP call?&amp;nbsp; In other words, can I safely make IAP calls from code residing in on-chip flash without disabling interrupts, provided that I prevent IAP from erasing or writing the area(s) of flash where the program code resides?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Likewise, is on-chip flash inaccessible during IAP write calls to the EEPROM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm questioning the word "any" in the "Before making any IAP call, either disable the interrupts..." statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Jun 2017 04:26:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-ALL-on-chip-flash-inaccessible-durring-IAP-erase-write-calls/m-p/673212#M26933</guid>
      <dc:creator>jdupre</dc:creator>
      <dc:date>2017-06-02T04:26:59Z</dc:date>
    </item>
    <item>
      <title>Re: Is ALL on-chip flash inaccessible durring IAP erase/write calls?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Is-ALL-on-chip-flash-inaccessible-durring-IAP-erase-write-calls/m-p/673213#M26934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="283575" data-username="jdupre" href="https://community.nxp.com/people/jdupre"&gt;Joseph Dupre&lt;/A&gt;,&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15px;"&gt;Thank you for your interest in NXP Semiconductor products and&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15px;"&gt;the opportunity to serve you.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff; font-size: 15px;"&gt;I'd highly recommend you to refer to the application note: &lt;A class="link-titled" href="https://www.lpcware.com/content/nxpfile/an11555-lpc15xx-application-programming" title="https://www.lpcware.com/content/nxpfile/an11555-lpc15xx-application-programming"&gt;AN11555: LPC15xx In-Application Programming | www.LPCware.com&lt;/A&gt; , it exemplifies the IAP precautions and I think the it can clarify your queries.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="2017-06-05_10-35-21.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/19625i0823A7F42EFD55A7/image-size/large?v=v2&amp;amp;px=999" role="button" title="2017-06-05_10-35-21.jpg" alt="2017-06-05_10-35-21.jpg" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;DIV style="color: #000000; font-family: 微软雅黑; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; orphans: auto; text-align: left; text-indent: 0px; text-transform: none; white-space: normal; widows: 1; word-spacing: 0px; -webkit-text-stroke-width: 0px; font-size: 16px; line-height: 1.5; background-color: #ffffff;"&gt; &lt;/DIV&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;Have a great day,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;TIC&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 15px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 15px;"&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Jun 2017 02:36:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Is-ALL-on-chip-flash-inaccessible-durring-IAP-erase-write-calls/m-p/673213#M26934</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2017-06-05T02:36:24Z</dc:date>
    </item>
  </channel>
</rss>

