<?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>LPC MicrocontrollersのトピックLPC802 Writing flash</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1419705#M48014</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have results like below with iap example in MCUXpresso with LPC802M001JDH16FP&lt;/P&gt;&lt;P&gt;- only change in code example:&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (0)&lt;/P&gt;&lt;P&gt;Do you know what is the reason of such error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0x00002000: 1A400849 4152D307 4601D3FA 47704610 | I.@...RA...F.FpG&lt;/P&gt;&lt;P&gt;0x00002010: 18400849 1892D2F7 1840D3FA 46104601 | I.@.......@..F.F&lt;/P&gt;&lt;P&gt;0x00002020: 0FCB4770 4249D000 D5001002 40534240 | pG....IB....@BS@&lt;/P&gt;&lt;P&gt;0x00002030: F7FFB508 BC0CFFD4 D3001052 2A004240 | ........R...@B.*&lt;/P&gt;&lt;P&gt;0x00002040: 4249D500 46F44718 F0002000 4760F801 | ..IB.G.F. ....`G&lt;/P&gt;&lt;P&gt;0x00002050: 46844770 D3093A04 D1070783 0A0B0609 | pG.F.:..........&lt;/P&gt;&lt;P&gt;0x00002060: 0C0B4319 3A044319 D2FCC002 D0033204 | .C...C.:.....2..&lt;/P&gt;&lt;P&gt;0x00002070: 30017001 D1FB3A01 47704660 42402001 | .p.0.:..`FpG. @B&lt;/P&gt;&lt;P&gt;0x00002080: 20014770 47704240 42402001 20014770 | pG. @BpG. @BpG.&lt;/P&gt;&lt;P&gt;0x00002090: 47704240 42402001 20014770 47704240 | @BpG. @BpG. @BpG&lt;/P&gt;&lt;P&gt;0x000020A0: 47700010 45535341 45205452 524F5252 | ..pGASSERT ERROR&lt;/P&gt;&lt;P&gt;0x000020B0: 25202220 000A2073 41490A0D 6C462050 | " %s ....IAP Fl&lt;/P&gt;&lt;P&gt;0x000020C0: 20687361 6D617865 0D656C70 0000000A | ash example.....&lt;/P&gt;&lt;P&gt;0x000020D0: 72570A0D 6E697469 6C662067 20687361 | ..Writing flash&lt;/P&gt;&lt;P&gt;0x000020E0: 74636573 2520726F 000A0D64 72570A0D | sector %d.....Wr&lt;/P&gt;&lt;P&gt;0x000020F0: 20657469 66206F74 6873616C 67617020 | ite to flash pag&lt;/P&gt;&lt;P&gt;0x00002100: 61662065 64656C69 00000A0D 65530A0D | e failed......Se&lt;/P&gt;&lt;P&gt;0x00002110: 726F7463 72657620 20796669 6C696166 | ctor verify fail&lt;/P&gt;&lt;P&gt;0x00002120: 0A0D6465 00000000 72450A0D 6E697361 | ed........Erasin&lt;/P&gt;&lt;P&gt;0x00002130: 61702067 31206567 206E6920 73616C66 | g page 1 in flas&lt;/P&gt;&lt;P&gt;0x00002140: 65732068 726F7463 0D642520 0000000A | h sector %d.....&lt;/P&gt;&lt;P&gt;0x00002150: 61500A0D 65206567 65736172 69616620 | ..Page erase fai&lt;/P&gt;&lt;P&gt;0x00002160: 0D64656C 0000000A 6E450A0D 666F2064 | led.......End of&lt;/P&gt;&lt;P&gt;0x00002170: 50414920 616C4620 45206873 706D6178 | IAP Flash Examp&lt;/P&gt;&lt;P&gt;0x00002180: 0A0D656C FFFFFF00 6C73662E 6F6C635F | le.......fsl_clo&lt;/P&gt;&lt;P&gt;0x00002190: 632E6B63 3130313A 62203A20 00657361 | ck.c:101 : base.&lt;/P&gt;&lt;P&gt;0x000021A0: 6C73662E 6F6C635F 632E6B63 3634313A | .fsl_clock.c:146&lt;/P&gt;&lt;P&gt;0x000021B0: 66203A20 65736C61 FFFFFF00 6C73662E | : false.....fsl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 1st and 2nd sectors i have results:&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (1)&lt;/P&gt;&lt;P&gt;"Break at address "0xfffffffe" with no debug information available, or outside of program code."&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (2)&lt;/P&gt;&lt;P&gt;goes to:&lt;/P&gt;&lt;P&gt;#if defined(__REDLIB__)&lt;BR /&gt;void __assertion_failed(char *failedExpr)&lt;BR /&gt;{&lt;BR /&gt;(void)PRINTF("ASSERT ERROR \" %s \n", failedExpr);&lt;BR /&gt;for (;;)&lt;BR /&gt;{&lt;BR /&gt;__BKPT(0);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these sectors blocked? I can't find such information.&lt;/P&gt;</description>
    <pubDate>Fri, 25 Feb 2022 09:40:23 GMT</pubDate>
    <dc:creator>Caroline22</dc:creator>
    <dc:date>2022-02-25T09:40:23Z</dc:date>
    <item>
      <title>LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1419705#M48014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have results like below with iap example in MCUXpresso with LPC802M001JDH16FP&lt;/P&gt;&lt;P&gt;- only change in code example:&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (0)&lt;/P&gt;&lt;P&gt;Do you know what is the reason of such error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0x00002000: 1A400849 4152D307 4601D3FA 47704610 | I.@...RA...F.FpG&lt;/P&gt;&lt;P&gt;0x00002010: 18400849 1892D2F7 1840D3FA 46104601 | I.@.......@..F.F&lt;/P&gt;&lt;P&gt;0x00002020: 0FCB4770 4249D000 D5001002 40534240 | pG....IB....@BS@&lt;/P&gt;&lt;P&gt;0x00002030: F7FFB508 BC0CFFD4 D3001052 2A004240 | ........R...@B.*&lt;/P&gt;&lt;P&gt;0x00002040: 4249D500 46F44718 F0002000 4760F801 | ..IB.G.F. ....`G&lt;/P&gt;&lt;P&gt;0x00002050: 46844770 D3093A04 D1070783 0A0B0609 | pG.F.:..........&lt;/P&gt;&lt;P&gt;0x00002060: 0C0B4319 3A044319 D2FCC002 D0033204 | .C...C.:.....2..&lt;/P&gt;&lt;P&gt;0x00002070: 30017001 D1FB3A01 47704660 42402001 | .p.0.:..`FpG. @B&lt;/P&gt;&lt;P&gt;0x00002080: 20014770 47704240 42402001 20014770 | pG. @BpG. @BpG.&lt;/P&gt;&lt;P&gt;0x00002090: 47704240 42402001 20014770 47704240 | @BpG. @BpG. @BpG&lt;/P&gt;&lt;P&gt;0x000020A0: 47700010 45535341 45205452 524F5252 | ..pGASSERT ERROR&lt;/P&gt;&lt;P&gt;0x000020B0: 25202220 000A2073 41490A0D 6C462050 | " %s ....IAP Fl&lt;/P&gt;&lt;P&gt;0x000020C0: 20687361 6D617865 0D656C70 0000000A | ash example.....&lt;/P&gt;&lt;P&gt;0x000020D0: 72570A0D 6E697469 6C662067 20687361 | ..Writing flash&lt;/P&gt;&lt;P&gt;0x000020E0: 74636573 2520726F 000A0D64 72570A0D | sector %d.....Wr&lt;/P&gt;&lt;P&gt;0x000020F0: 20657469 66206F74 6873616C 67617020 | ite to flash pag&lt;/P&gt;&lt;P&gt;0x00002100: 61662065 64656C69 00000A0D 65530A0D | e failed......Se&lt;/P&gt;&lt;P&gt;0x00002110: 726F7463 72657620 20796669 6C696166 | ctor verify fail&lt;/P&gt;&lt;P&gt;0x00002120: 0A0D6465 00000000 72450A0D 6E697361 | ed........Erasin&lt;/P&gt;&lt;P&gt;0x00002130: 61702067 31206567 206E6920 73616C66 | g page 1 in flas&lt;/P&gt;&lt;P&gt;0x00002140: 65732068 726F7463 0D642520 0000000A | h sector %d.....&lt;/P&gt;&lt;P&gt;0x00002150: 61500A0D 65206567 65736172 69616620 | ..Page erase fai&lt;/P&gt;&lt;P&gt;0x00002160: 0D64656C 0000000A 6E450A0D 666F2064 | led.......End of&lt;/P&gt;&lt;P&gt;0x00002170: 50414920 616C4620 45206873 706D6178 | IAP Flash Examp&lt;/P&gt;&lt;P&gt;0x00002180: 0A0D656C FFFFFF00 6C73662E 6F6C635F | le.......fsl_clo&lt;/P&gt;&lt;P&gt;0x00002190: 632E6B63 3130313A 62203A20 00657361 | ck.c:101 : base.&lt;/P&gt;&lt;P&gt;0x000021A0: 6C73662E 6F6C635F 632E6B63 3634313A | .fsl_clock.c:146&lt;/P&gt;&lt;P&gt;0x000021B0: 66203A20 65736C61 FFFFFF00 6C73662E | : false.....fsl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With 1st and 2nd sectors i have results:&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (1)&lt;/P&gt;&lt;P&gt;"Break at address "0xfffffffe" with no debug information available, or outside of program code."&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (2)&lt;/P&gt;&lt;P&gt;goes to:&lt;/P&gt;&lt;P&gt;#if defined(__REDLIB__)&lt;BR /&gt;void __assertion_failed(char *failedExpr)&lt;BR /&gt;{&lt;BR /&gt;(void)PRINTF("ASSERT ERROR \" %s \n", failedExpr);&lt;BR /&gt;for (;;)&lt;BR /&gt;{&lt;BR /&gt;__BKPT(0);&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are these sectors blocked? I can't find such information.&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2022 09:40:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1419705#M48014</guid>
      <dc:creator>Caroline22</dc:creator>
      <dc:date>2022-02-25T09:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1420299#M48036</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196506" target="_self" aria-label="View Profile of Caroline22"&gt;&lt;SPAN class=""&gt;Caroline22&lt;/SPAN&gt;&lt;/A&gt;,&lt;/P&gt;
&lt;P&gt;About writing flash, recommend you first refer to iap_flash demo under SDK, change code base on the demo, and if still have issue, please describe it more clearly.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 07:08:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1420299#M48036</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-02-28T07:08:20Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1420570#M48061</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for replying.&lt;/P&gt;&lt;P&gt;I used iap_flash, SDK.&lt;/P&gt;&lt;P&gt;Only change I made in iap_flash example, line 19:&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (0)&lt;/P&gt;&lt;P&gt;(in example there is: #define DEMO_IAP_FLASH_SECTOR (14)).&lt;/P&gt;&lt;P&gt;I have results like above in flash (from 0x2000) - could you help me why the results look like that? what can be the reason?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Feb 2022 13:07:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1420570#M48061</guid>
      <dc:creator>Caroline22</dc:creator>
      <dc:date>2022-02-28T13:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1420860#M48065</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="UserName lia-user-name lia-user-rank-Contributor-II lia-component-message-view-widget-author-username"&gt;&lt;A id="link_12" class="lia-link-navigation lia-page-link lia-user-name-link" style="color: #333f48;" href="https://community.nxp.com/t5/user/viewprofilepage/user-id/196506" target="_self" aria-label="View Profile of Caroline22"&gt;&lt;SPAN class=""&gt;Caroline22&lt;/SPAN&gt;&lt;/A&gt;&lt;/SPAN&gt;,&lt;/P&gt;
&lt;P&gt;Because your application code is in sector 0, you can not erase it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BR&lt;/P&gt;
&lt;P&gt;Alice&lt;/P&gt;</description>
      <pubDate>Tue, 01 Mar 2022 02:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1420860#M48065</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-01T02:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1421823#M48094</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I tried also with 1,2,3,6,8 sectors, instead of 14 - the same result (result as above; 10-14 sectors are empty) - I found that IAP_EraseSector doesn't work for&amp;nbsp;1,2,3,6,8 sectors (I watched flash addresses in Memory Monitor).&lt;/P&gt;&lt;P&gt;#define DEMO_IAP_FLASH_SECTOR (14) - works ok&lt;/P&gt;&lt;P&gt;Are 10-14 sectors only available for writing?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 10:11:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1421823#M48094</guid>
      <dc:creator>Caroline22</dc:creator>
      <dc:date>2022-03-02T10:11:35Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1421952#M48095</link>
      <description>&lt;P&gt;Look up the datasheet of your MCU, and it's Flash layout.&lt;/P&gt;&lt;P&gt;Flash sectors are only the erase units for the programming process.&lt;/P&gt;&lt;P&gt;All sectors of one Flash bank are subjected to the programming voltage during erase/program, which means you cannot execute code from any affected sector at the same time.&lt;/P&gt;&lt;P&gt;Either use sector 14 which seems to work, or load your erase/flash code (probably only one function) into RAM and execute it there.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2022 14:44:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1421952#M48095</guid>
      <dc:creator>frank_m</dc:creator>
      <dc:date>2022-03-02T14:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: LPC802 Writing flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1422452#M48099</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;SPAN&gt;Caroline22&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;As frank said, you can not&amp;nbsp;&amp;nbsp;erase/program the sector which execute code. Except copy code into RAM to run.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;BR&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Alice&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2022 06:30:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC802-Writing-flash/m-p/1422452#M48099</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2022-03-03T06:30:13Z</dc:date>
    </item>
  </channel>
</rss>

