<?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のトピックRe: Adding an interrupt handler for eeprom reads and writes</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005958#M39484</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, how long does it takes for reads and writes when using EEPROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not really find it in the datasheets while I was looking.&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;Volkan Coskun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2020 15:50:16 GMT</pubDate>
    <dc:creator>volkan_coskun</dc:creator>
    <dc:date>2020-03-09T15:50:16Z</dc:date>
    <item>
      <title>Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005957#M39483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have now a working IAP EEPROM driver that works together with interrupts.&lt;/P&gt;&lt;P&gt;I had to move the interrupts vectors to address 0x10000000 into SRAM in order to make it work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, since reads and writes are hardware dependent,&lt;/P&gt;&lt;P&gt;I want to know when my read&amp;nbsp;or write operation is done so that I can queue every interrupts and notice the processor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to add an interrupt handler for the IAP eeprom library that is used?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An hard-fault will occur if I have a for loop and write to the IAP without any delay but if I add a delay of 1 ms things are fine (still testing will run it 1 day).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to have working writes and reads in the background (queue based) where an interrupt shall indicate when a write transaction is complete so that I do not write under a write transaction ( causing abnormal behavior such as hard faults and etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to add a custom made interrupt handler for this kind of problem ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the way to go?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS+&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the continuation of the following problem in :&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/525068"&gt;Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The goal is to have an interrupt handler for the EEPROM indicating when a write or read is done:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/* EEPROM interrupt handler */&lt;/P&gt;&lt;P&gt;void eeprom_interrupt_in_bgo()&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;interrupt_que_eepromWrite()&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;interrupt_que_eepromRead()&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// when done issue next write or read in order to synch writes&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 13:07:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005957#M39483</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-03-09T13:07:29Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005958#M39484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, how long does it takes for reads and writes when using EEPROM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could not really find it in the datasheets while I was looking.&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;Volkan Coskun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2020 15:50:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005958#M39484</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-03-09T15:50:16Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005959#M39485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.&lt;BR /&gt;1) Is there any way to add an interrupt handler for the IAP EEPROM library that is used?&lt;BR /&gt;-- No, I'm afraid not, in addition, there's a suggestion below from the AN11511.&lt;BR /&gt;&lt;EM&gt;&lt;STRONG&gt;During EEPROM write and read operations, the interrupts must be disabled for proper IAP operation.&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;2) The dynamic characteristics of the EEPROM.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/97522i5B2B11B28DF302E6/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 02:09:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005959#M39485</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-10T02:09:14Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005960#M39486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aha ok,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still a little bit confused here.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;What was the purpose of moving the interrupt vectors from 0x00000000 to 0x10000000?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I thought the reason why we had to move the interrupt vectors was simple because to enable interrupts during EEPROM&amp;nbsp; write/read transactions, and thus, letting other interrupts run without&amp;nbsp;intervening them , i.e.,&amp;nbsp;&amp;nbsp;disable&amp;nbsp;or enable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is there any other alternative for EEPROM ?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To sum it up,&lt;/P&gt;&lt;P&gt;it is not possible to use the EEPROM IAP or any other library with interrupts enabled, and, this is also true for when we move the interrupt vectors or let them be as it is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I understood the manual and the IAP eeprom library correctly ?&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;Volkan Coskun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2020 08:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005960#M39486</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-03-10T08:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005961#M39487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Volkan Coskun,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1) Have I understood the manual and the IAP EEPROM library correctly?&lt;BR /&gt;-- In general, you're correct. The interrupt vector remap can allow the interrupts to occur even during the IAP routines are used except for EEPROM to write and read operations.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Mar 2020 03:05:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005961#M39487</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-11T03:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005962#M39488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again &lt;A class="jx-jive-macro-user" href="https://community.nxp.com/people/jeremyzhou"&gt;jeremyzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ah ok.&lt;/P&gt;&lt;P&gt;Thanks for the answer I guess I have to look for other solutions then.&lt;/P&gt;&lt;P&gt;Apart from the current solution, will NXP come up with a more robust solution in order to handle time critical applications for future processors?&lt;/P&gt;&lt;P&gt;We are in need of an EEPROM driver that shall work without disabling or enabling the interrupts.&lt;/P&gt;&lt;P&gt;I have also seen some legacy solution where a&amp;nbsp;&amp;nbsp;".a" is provided, thus, working without interrupt handling.&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;Volkan&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Mar 2020 09:48:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005962#M39488</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-03-16T09:48:50Z</dc:date>
    </item>
    <item>
      <title>Re: Adding an interrupt handler for eeprom reads and writes</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005963#M39489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Volkan Coskun,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1) Apart from the current solution, will NXP come up with a more robust solution in order to handle time-critical applications for future processors?&lt;BR /&gt;-- As I know, there's no similar plan, however, I'll contact the AE team to confirm it.&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Have a great day,&lt;BR /&gt;TIC&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;-------------------------------------------------------------------------------&lt;BR /&gt;Note:&lt;BR /&gt;- If this post answers your question, please click the "Mark Correct" button. Thank you!&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;- We are following threads for 7 weeks after the last post, later replies are ignored&lt;BR /&gt;Please open a new thread and refer to the closed one, if you have a related question at a later point in time.&lt;BR /&gt;-------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Mar 2020 10:22:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Adding-an-interrupt-handler-for-eeprom-reads-and-writes/m-p/1005963#M39489</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-03-18T10:22:54Z</dc:date>
    </item>
  </channel>
</rss>

