<?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: IAP on LPC1769 in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532263#M2979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Wed Mar 20 08:36:35 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As suggested you should look at a working example, there is one posted here on LPCware.com:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/an11071-application-programming-lpc1700&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the IAP for the LPC1769 will be the same for LPC176x&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:06:13 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:06:13Z</dc:date>
    <item>
      <title>IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532258#M2974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Tue Mar 19 06:09:18 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try IAP on LPC1769. I would like to use last 4 sectors (26, 27, 28, 29) to store data. I have this simple examle:&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;#ifdef __USE_CMSIS
#include "LPC17xx.h"
#endif

#include &amp;lt;cr_section_macros.h&amp;gt;
#include &amp;lt;NXP/crp.h&amp;gt;

__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

#define IAP_LOCATION 0x1FFF1FF1

unsigned int command[5];
unsigned int result[5];

typedef void (*IAP)(unsigned int [],unsigned int[]);
IAP iap_entry;

int main(void) {

SystemCoreClockUpdate();

command[0] = 50;
command[1] = 26;
command[2] = 26;
iap_entry (command,result);

while(1) {

}
return 0 ;
}&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I upload this code to LPC, but after start code stopped on HardFault_Handler. What does it mean? What do I do wrong?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532258#M2974</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532259#M2975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Mar 19 06:38:44 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;What do I do wrong?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just copy a working sample ;) That's IAP thread 1000 in this forum :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;Hi,&lt;BR /&gt;#define IAP_LOCATION 0x1FFF1FF1&lt;BR /&gt;&lt;BR /&gt;unsigned int command[5];&lt;BR /&gt;unsigned int result[5];&lt;BR /&gt;&lt;BR /&gt;[COLOR=Red]typedef void (*IAP)(unsigned int [],unsigned int[]);[/COLOR]&lt;BR /&gt;[COLOR=Red]IAP iap_entry;[/COLOR]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's nonsense :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532259#M2975</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532260#M2976</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Tue Mar 19 09:01:01 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I proceed by UM10360. I dont know what is nonsense because it is writen on page 631 :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532260#M2976</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:11Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532261#M2977</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Mar 19 09:15:28 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;I proceed by UM10360 &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;No, where's your function pointer setting :confused:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Page 631:&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;Setting function pointer:&lt;BR /&gt;[COLOR=Red]iap_entry=(IAP) IAP_LOCATION;[/COLOR]&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: masterboy&lt;/STRONG&gt;&lt;BR /&gt;I dont know what is nonsense because it is writen on page 631 &lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Without function pointer setting you are calling function of address 0 :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's nonsense and therefore you get a hard fault :p&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Why don't you copy a working sample :confused:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532261#M2977</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532262#M2978</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Tue Mar 19 11:00:28 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You have right, function pointer setting is missing in my code. Where does it place in my code?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532262#M2978</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532263#M2979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by kendwyer on Wed Mar 20 08:36:35 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;As suggested you should look at a working example, there is one posted here on LPCware.com:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.lpcware.com/content/nxpfile/an11071-application-programming-lpc1700&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the IAP for the LPC1769 will be the same for LPC176x&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532263#M2979</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:13Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532264#M2980</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Thu Mar 21 07:57:53 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;What is wrong now (lpc1347)? &lt;SPAN class="lia-unicode-emoji" title=":disappointed_face:"&gt;&lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&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;
#ifdef __USE_CMSIS
#include "LPC13Uxx.h"
#endif

#include &amp;lt;cr_section_macros.h&amp;gt;
#include &amp;lt;NXP/crp.h&amp;gt;

__CRP const unsigned int CRP_WORD = CRP_NO_CRP ;

#define IAP_LOCATION 0x1fff1ff1
#define ADDRESS0xC000

typedef void (*IAP)(uint32_t [],uint32_t []);
IAP iap_entry = (IAP) IAP_LOCATION;

int main(void) {

uint32_t command[5];
uint32_t result[4];

uint8_t msg[] = "TEST IAP";

// *** PREPARE SECTOR 12
command[0] = 50;
command[1] = 12;
command[2] = 12;
iap_entry(command, result);
// *** ERASE SECTOR 12
command[0] = 52;
command[1] = 12;
command[2] = 12;
command[3] = SystemCoreClock / 1000;
iap_entry(command, result);
// *** PREPARE SECTOR 12
command[0] = 50;
command[1] = 12;
command[2] = 12;
iap_entry(command, result);
// *** COPY RAM TO FLASH
command[0] = 51;
command[1] = (uint32_t)ADDRESS;
command[2] = (uint32_t)&amp;amp;msg;
command[3] = 256;
command[4] = SystemCoreClock / 1000;
iap_entry(command, result);

while(1) {
}
return 0 ;
}
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Last command "COPY RAM TO FLASH" return code 4, why?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532264#M2980</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532265#M2981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Mar 21 08:07:33 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Then look in your UM and see what this return code is trying to tell you :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532265#M2981</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532266#M2982</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by masterboy on Thu Mar 21 08:51:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I know what is code 4 means (SRC_ADDR_NOT_MAPPED) but I dont understand why :(&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532266#M2982</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532267#M2983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Thu Mar 21 08:53:02 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That's answered in #4 of &lt;/SPAN&gt;&lt;A href="http://"&gt;http://knowledgebase.nxp.com/showthread.php?t=4286&lt;/A&gt;&lt;SPAN&gt; :eek:&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532267#M2983</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:15Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532268#M2984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by wrighflyer on Thu Mar 21 08:55:59 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: user manual&lt;/STRONG&gt;&lt;BR /&gt;SRC_ADDR_NOT_MAPPED Source address is not mapped in the memory map. Count value is taken in to consideration where applicable.&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just wonderin' but if you made msg[] a global with an align attribute rather than just letting it be created anywhere on the stack would it help?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:06:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/532268#M2984</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:06:16Z</dc:date>
    </item>
    <item>
      <title>Re: IAP on LPC1769</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/1671390#M33419</link>
      <description>&lt;P&gt;Setting function pointer:&lt;BR /&gt;"iap_entry=(IAP) IAP_LOCATION;"&lt;/P&gt;&lt;P&gt;is missed in the code&lt;BR /&gt;write this before main.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 17 Jun 2023 07:44:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/IAP-on-LPC1769/m-p/1671390#M33419</guid>
      <dc:creator>sai_sankar_rao</dc:creator>
      <dc:date>2023-06-17T07:44:33Z</dc:date>
    </item>
  </channel>
</rss>

