<?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 EEPROM programing and IRQ question in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-programing-and-IRQ-question/m-p/696092#M28028</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have a product that do a EEPROM programing within the main App. The app runs on a LPC43S67, wich EEPROM operation access works via memory on the AHB bus. Beside the App uses CAN and SCT IRQs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user manual of the corresponding chip indicates the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;The erase/program cycle is triggered by&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;writing 0x6 to the CMD register. The page that is programmed is determined by the&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;address of the last AHB transfer. Therefore it is advised to perform a page write with&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;the page address and to prevent AHB reads between page register writes and the&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;erase/program trigger.&lt;/EM&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, is it recommended to disable the IRQs during the EEPROM programing operation to avoid&amp;nbsp; within the IRQ a AHB transfer and wrongly change the "last AHB transfer address"? Or the "last AHB transfer address" is just referred to EEPROM's address range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Oct 2017 08:27:44 GMT</pubDate>
    <dc:creator>javiervallori</dc:creator>
    <dc:date>2017-10-02T08:27:44Z</dc:date>
    <item>
      <title>EEPROM programing and IRQ question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-programing-and-IRQ-question/m-p/696092#M28028</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;we have a product that do a EEPROM programing within the main App. The app runs on a LPC43S67, wich EEPROM operation access works via memory on the AHB bus. Beside the App uses CAN and SCT IRQs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user manual of the corresponding chip indicates the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;The erase/program cycle is triggered by&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;writing 0x6 to the CMD register. The page that is programmed is determined by the&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;address of the last AHB transfer. Therefore it is advised to perform a page write with&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;the page address and to prevent AHB reads between page register writes and the&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-size: 13px;"&gt;&lt;EM&gt;erase/program trigger.&lt;/EM&gt;&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, is it recommended to disable the IRQs during the EEPROM programing operation to avoid&amp;nbsp; within the IRQ a AHB transfer and wrongly change the "last AHB transfer address"? Or the "last AHB transfer address" is just referred to EEPROM's address range?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Oct 2017 08:27:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-programing-and-IRQ-question/m-p/696092#M28028</guid>
      <dc:creator>javiervallori</dc:creator>
      <dc:date>2017-10-02T08:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM programing and IRQ question</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-programing-and-IRQ-question/m-p/696093#M28029</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Javier,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is no need to disable the interrupts during the EEPROM Write/Erase. I would recommend you to use the periph_eeprom example that comes with LPCOpen as reference for your application:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/products/microcontrollers-and-processors/arm-based-processors-and-mcus/lpc-cortex-m-mcus/developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX" title="https://www.nxp.com/products/microcontrollers-and-processors/arm-based-processors-and-mcus/lpc-cortex-m-mcus/developer-resources-/lpcopen-libraries-and-examples/lpcopen-software-development-platform-lpc43xx:LPCOPEN-SOFTWARE-FOR-LPC43XX"&gt;LPCOpen Software for LPC43XX|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Hope it helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;BR /&gt;Carlos Mendoza&lt;BR /&gt;Technical Support Engineer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Oct 2017 20:39:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/EEPROM-programing-and-IRQ-question/m-p/696093#M28029</guid>
      <dc:creator>Carlos_Mendoza</dc:creator>
      <dc:date>2017-10-05T20:39:15Z</dc:date>
    </item>
  </channel>
</rss>

