<?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: Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX in MCUXpresso IDE</title>
    <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985924#M5000</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="355557" data-username="volkan.coskun@piab.com" href="https://community.nxp.com/people/volkan.coskun@piab.com"&gt;Volkan Coskun&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Sorry for reply late.&lt;BR /&gt;I've attached an application note which describes the In-Application Programming capabilities of LPC11U6X, it suits LPC11E6X as well.&lt;BR /&gt;In the application, it provides guidance to interrupt handling during flash IAP calls. And in the attachment, it contains the demo code for referring to.&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>Fri, 28 Feb 2020 03:56:24 GMT</pubDate>
    <dc:creator>jeremyzhou</dc:creator>
    <dc:date>2020-02-28T03:56:24Z</dc:date>
    <item>
      <title>Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985919#M4995</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 been reading and scrutinizing the IAP eeprom library and found out that the interrupts has to be disabled and enabled during a read and write operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, for my application, I have to enable the interrupts in order to receive other high priority interrupts, so I want to do it concurrently in the background.&lt;/P&gt;&lt;P&gt;Today, I can write to EEPROM but I am losing messages since I am removing the interrupts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code of how I do it now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iap_eeprom_write()&lt;BR /&gt;{&lt;BR /&gt; &lt;BR /&gt; disable_int();&lt;/P&gt;&lt;P&gt;invoke_iap();&lt;/P&gt;&lt;P&gt;// enable interrupts&lt;BR /&gt; enable_int();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Back to the problem, is it possible to create a background interrupt handler using IAP_EEPROM and remove the disable/enable interrupt functionality?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know that there are background callbacks that can be used to handle background operation with interrupt priorities in for example data flash reads and writes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If not, is there any other alternative for eeprom library that can be used in order to run in the background.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would be very glad if you could provide me with some help.&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;Volle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Feb 2020 16:25:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985919#M4995</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-02-19T16:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985920#M4996</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A _jive_internal="true" data-content-finding="Community" data-userid="355557" data-username="volkan.coskun@piab.com" href="https://community.nxp.com/people/volkan.coskun@piab.com"&gt;Volkan Coskun&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;Thank you for your interest in NXP Semiconductor products and &lt;BR /&gt;for the opportunity to serve you.&lt;BR /&gt;The on-chip flash memory and EEPROM are not accessible during erase/write operations. When the user application code starts executing, the interrupt vectors from the user flash area are active. Before making any IAP call, either disable the interrupts or ensure that the user interrupt vectors are active in RAM and that the interrupt handlers reside in RAM.&lt;BR /&gt;The LPC11Exx has the ability to remap the interrupt vector table to the RAM by changing the MAP bits in the SYSMEMREMAP register. This allows interrupts to occur even during the erase and write operations. But as the flash cannot be accessed during this time, the interrupt handlers must be executed from the RAM. Hence, all the code related to the interrupt handlers must be copied from flash into the RAM.&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/102446i9683A9D2F5B2815A/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 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>Fri, 21 Feb 2020 02:09:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985920#M4996</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-02-21T02:09:08Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985921#M4997</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" rel="nofollow noopener noreferrer" target="_blank"&gt;jeremyzhou&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;I did some further investigation and saw that you could replace:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #efefef; border: 1px solid #acacac; font-size: 12px; padding: 10px;"&gt;uint32_t command[5]; uint32_t result[5]; typedef void (*IAP)(uint32_t command[5], uint32_t result[5]); IAP *iap_entry = (IAP *)0x1FFF1FF1; … ((IAP)IAP_ENTRY)(command, result);&lt;/PRE&gt;&lt;P&gt;with:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #efefef; border: 1px solid #acacac; font-size: 12px; padding: 10px;"&gt;#include "libeeprom.h" /* defines EELIB_entry */ IAP *iap_entry = (IAP *)EELIB_entry;&lt;/PRE&gt;&lt;P&gt;However, it seems that I am missing the test object&amp;nbsp;"&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;libeeprom-lpc11e68.a"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt; file for&amp;nbsp;LPC11E68J which is used together with this library.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In&amp;nbsp;&lt;A href="https://community.nxp.com/thread/429994" rel="nofollow noopener noreferrer" target="_blank"&gt;LPC1347 EEPROM Source&lt;/A&gt;&amp;nbsp;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A testobject is provided here (lpcxx.a) that is used together with the libeeprom.h file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way I can get hold of the .a file for this particular processor?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Volkan Coskun&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Feb 2020 08:31:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985921#M4997</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-02-21T08:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985922#M4998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="355557" data-username="volkan.coskun@piab.com" href="https://community.nxp.com/people/volkan.coskun@piab.com"&gt;Volkan Coskun&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;BR /&gt;1) Is there any way I can get hold of the .a file for this particular processor?&lt;BR /&gt;--No, I'm afraid not.&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>Mon, 24 Feb 2020 04:10:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985922#M4998</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-02-24T04:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985923#M4999</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;Ah ok I see.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you have any example code on how you move the interrupt vectors from the flash to the SRAM?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been trying to find example codes but have not found anything yet.&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;Volle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985923#M4999</guid>
      <dc:creator>volkan_coskun</dc:creator>
      <dc:date>2020-02-26T13:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is there any way to remove the interrupt handling in the IAP eeprom for LCP11XX</title>
      <link>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985924#M5000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class=""&gt;&lt;A _jive_internal="true" data-content-finding="Community" data-userid="355557" data-username="volkan.coskun@piab.com" href="https://community.nxp.com/people/volkan.coskun@piab.com"&gt;Volkan Coskun&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;&lt;P&gt;Sorry for reply late.&lt;BR /&gt;I've attached an application note which describes the In-Application Programming capabilities of LPC11U6X, it suits LPC11E6X as well.&lt;BR /&gt;In the application, it provides guidance to interrupt handling during flash IAP calls. And in the attachment, it contains the demo code for referring to.&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>Fri, 28 Feb 2020 03:56:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MCUXpresso-IDE/Is-there-any-way-to-remove-the-interrupt-handling-in-the-IAP/m-p/985924#M5000</guid>
      <dc:creator>jeremyzhou</dc:creator>
      <dc:date>2020-02-28T03:56:24Z</dc:date>
    </item>
  </channel>
</rss>

