<?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: LPCOpen LPC15xx IAP Confusion in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573639#M18862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Sun Aug 31 05:26:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that's definately right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This bug seems to be known (at least to parts of staff) because in iap_8h_source.html is a FIXME reminder for that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 20:15:54 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T20:15:54Z</dc:date>
    <item>
      <title>LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573638#M18861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by LabRat on Fri Aug 29 22:12:41 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCOpen LPC15xx IAP code is confusing / wrong:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;/**
 * @brief LPC15XX IAP_ENTRY API function type
 */
static INLINE void iap_entry(unsigned int cmd_param[5],[color=#f00] unsigned int status_result[4])
{[/color]
((IAP_ENTRY_T) IAP_ENTRY_LOCATION)(cmd_param, status_result);
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;...seems to indicate that the maximum number of results is 4...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;UM:&lt;/SPAN&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;The maximum number of results is[color=#f00] 5[/color], returned by the "ReadUID" command.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And trying to use Chip_IAP_ReadUID is showing the promised problem: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
/* Read the unique ID */
uint32_t Chip_IAP_ReadUID()
{
uint32_t command[5],[color=#f00] result[4][/color];

command[0] = IAP_READ_UID_CMD;
iap_entry(command, result);

return result[1];
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;SPAN&gt;IAP ReadUID is returning Status code, Result0-Result3, so here's a result[5] required&amp;nbsp; &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm not sure why result[1] is returned here (alcohol?), of course a pointer would be an easy solution...&lt;/SPAN&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
/* Read the unique ID */
uint32_t Chip_IAP_ReadUID(uint32_t* serial_number)
{
 uint32_t command[5];

 command[0] = IAP_READ_UID_CMD;
 iap_entry(command, (uint32_t*)serial_number);

 return (uint32_t)(*(serial_number));//return status code
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573638#M18861</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573639#M18862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by 1234567890 on Sun Aug 31 05:26:52 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, that's definately right.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This bug seems to be known (at least to parts of staff) because in iap_8h_source.html is a FIXME reminder for that.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573639#M18862</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573640#M18863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Thu Jul 23 03:43:01 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Little heads up for whoever had the same issue with LPCOpen for other MCUs: it seems like the best IAP implementation is provided in the lpc112x issue of LPCOpen:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
uint32_t Chip_IAP_ReadUID(uint32_t* uid)
{
uint32_t command[5], result[5];
uint32_t i;

command[0] = IAP_READ_UID_CMD;
iap_entry2(command, result);

for (i=0; i&amp;lt;4; i++)
*(uid+i) = result[i+1];

return result[0];
}
 &lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573640#M18863</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573641#M18864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Jul 23 04:14:14 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: miccio&lt;/STRONG&gt;&lt;BR /&gt;...it seems like the best IAP implementation is provided in the lpc112x issue of LPCOpen...&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :~ &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's making this code better than LabRat's solution?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573641#M18864</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573642#M18865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Thu Jul 23 16:56:03 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;What's making this code better than LabRat's solution?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Nothing in particular, I just wanted to add to the records that they got around to fix the issue pointed out in this post in the latest version of LPCOpen (which is only available for the 112x family) :)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Which makes me wonder, is there ever going to be a newer version of LPCOpen?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573642#M18865</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573643#M18866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Jul 23 20:42:29 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: miccio&lt;/STRONG&gt;&lt;BR /&gt;Which makes me wonder, is there ever going to be a newer version of LPCOpen?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good question&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.lpcware.com%2Fcontent%2Fforum%2Fshould-i-update-217-when-using-111x" rel="nofollow" target="_blank"&gt;https://www.lpcware.com/content/forum/should-i-update-217-when-using-111x&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;is including a vague hint:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: &lt;/STRONG&gt;&lt;BR /&gt;To date, LPCOpen releases have been primarily to add support for devices and boards, with bug fixes along the way. We are putting systems in place to provide more responsive bug fix updates across our products. The first results of these new systems should be integrated into our [color=#f00]standard release flow by the end of this year for some devices[/color], and then roll out across the rest of the Cortex families.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So some optimists here think that there's a new LPC15xx LPCOpen version available in summer 2016&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Pessimists are assuming that we still have to work with our own version 2 years after LPC15xx series release&amp;nbsp; :( &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573643#M18866</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:56Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573644#M18867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by miccio on Fri Jul 24 01:52:11 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I found that thread few minutes after i sent yesterday's message, and it was the first time I've heard of this alleged 3rd version. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Funny enough, when embracing LPCXpresso I first thought that LPCOpen was a community-driven effort (it bears a somewhat misleading name, doesn't it?) rather than the result of NXP's internal development.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think everyone would benefit from such a shift in responsibility. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Anyways, I cannot be neither optimist nor pessimist, since I'm using lpc11Cxx&amp;nbsp; :bigsmile: &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573644#M18867</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573645#M18868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Fri Jul 24 03:22:51 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: miccio&lt;/STRONG&gt;&lt;BR /&gt;Anyways, I cannot be neither optimist nor pessimist, since I'm using lpc11Cxx&amp;nbsp; :bigsmile:&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt; :bigsmile: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then sooner or later a new LPC15 is on your Christmas wish list...&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573645#M18868</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:57Z</dc:date>
    </item>
    <item>
      <title>Re: LPCOpen LPC15xx IAP Confusion</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573646#M18869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by mc on Mon Aug 10 16:44:04 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the feedback. The issue related to the size of result[] array has been added to tracker. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 20:15:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPCOpen-LPC15xx-IAP-Confusion/m-p/573646#M18869</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T20:15:58Z</dc:date>
    </item>
  </channel>
</rss>

