<?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 LPC1788 IAP programming in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-IAP-programming/m-p/521588#M4272</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FrankAndersen on Mon Feb 15 07:42:07 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a program, that uses IAP for updating itself, I know it is with the risk of making it to a brick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But untill now it has been working fine, but I now need to run the core at 96 MHz instead of 48 MHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did change Param2 to 96000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it does not erase other times it does erase but does not write everything to the internal flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like it makes a reset, in the middle of it all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:51:27 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:51:27Z</dc:date>
    <item>
      <title>LPC1788 IAP programming</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-IAP-programming/m-p/521588#M4272</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by FrankAndersen on Mon Feb 15 07:42:07 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a program, that uses IAP for updating itself, I know it is with the risk of making it to a brick.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But untill now it has been working fine, but I now need to run the core at 96 MHz instead of 48 MHz.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did change Param2 to 96000.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sometimes it does not erase other times it does erase but does not write everything to the internal flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It looks like it makes a reset, in the middle of it all.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any suggestions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-IAP-programming/m-p/521588#M4272</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:27Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1788 IAP programming</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-IAP-programming/m-p/521589#M4273</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by robert hulsebos on Fri Mar 04 02:55:03 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Frank,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We use IAP for similar purpose on LPC1769. Two pitfalls I encountered:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Make sure you disable interrupts before calling IAP functions. You don't want interrupts while IAP ROM code is active!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Make sure the&amp;nbsp; CPU clock frequency parameter for the IAP erase function has correct value (system core clock) - We had the issue where it was based on global variable LPCOpen variable SystemCoreClock and this variable somehow ended up with value 0. In this situation the IAP says all went well and erasing was OK. But in fact nothing happened - nothing was erased. (bug in IAP ?)&amp;nbsp; To avoid this problem we use a constant for clock parameter now. Same goes for write function.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:51:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1788-IAP-programming/m-p/521589#M4273</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:51:28Z</dc:date>
    </item>
  </channel>
</rss>

