<?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: Not able to write in flash of LPC18S37 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1815402#M55500</link>
    <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229877"&gt;@PranavKolte1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Recommend refer to "flashiap" demo under LPCopen.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;If you still have question about it, please kindly let me know.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Alice&lt;/FONT&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 09:07:37 GMT</pubDate>
    <dc:creator>Alice_Yang</dc:creator>
    <dc:date>2024-02-26T09:07:37Z</dc:date>
    <item>
      <title>Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1813464#M55487</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;I am using lpc18s37 micro controller for development. I am trying to erase and write in flash using IAP method but not able to do so. Can anyone help me with this, below is the code that is written.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; defined (__USE_LPCOPEN)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; defined(NO_BOARD_LIB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"chip.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"board.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"chip.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;&amp;lt;cr_section_macros.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// &lt;/SPAN&gt;&lt;SPAN&gt;TODO&lt;/SPAN&gt;&lt;SPAN&gt;: insert other include files here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"stdio.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#include&lt;/SPAN&gt; &lt;SPAN&gt;"string.h"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt;&lt;SPAN&gt; START_ADDRESS 0x1B000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#define&lt;/SPAN&gt;&lt;SPAN&gt; END_ADDRESS 4096&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// &lt;/SPAN&gt;&lt;SPAN&gt;TODO&lt;/SPAN&gt;&lt;SPAN&gt;: insert other definitions and declarations here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;int&lt;/SPAN&gt; &lt;SPAN&gt;main&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;void&lt;/SPAN&gt;&lt;SPAN&gt;) {&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; defined (__USE_LPCOPEN)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Read clock settings and update SystemCoreClock variable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#if&lt;/SPAN&gt;&lt;SPAN&gt; !defined(NO_BOARD_LIB)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Set up and initialize all required blocks and&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// functions related to the board hardware&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Board_Init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Set the LED to the state of "On"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Board_LED_Set(0, true);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// &lt;/SPAN&gt;&lt;SPAN&gt;TODO&lt;/SPAN&gt;&lt;SPAN&gt;: insert code here&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;// Board_Debug_Init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; sector_end = START_ADDRESS + END_ADDRESS - 1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chip_IAP_PreSectorForReadWrite(START_ADDRESS, sector_end, IAP_FLASH_BANK_B);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chip_IAP_EraseSector(START_ADDRESS, sector_end, IAP_FLASH_BANK_B);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;uint32_t&lt;/SPAN&gt;&lt;SPAN&gt; buffer[] = {0xFF, 0x01, 0x02, 0x03, 0xAA};&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chip_IAP_CopyRamToFlash(START_ADDRESS, buffer, &lt;/SPAN&gt;&lt;SPAN&gt;sizeof&lt;/SPAN&gt;&lt;SPAN&gt;(buffer));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;while&lt;/SPAN&gt;&lt;SPAN&gt;(1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;SPAN&gt; 0 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 22 Feb 2024 06:24:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1813464#M55487</guid>
      <dc:creator>PranavKolte1</dc:creator>
      <dc:date>2024-02-22T06:24:29Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1815402#M55500</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229877"&gt;@PranavKolte1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Recommend refer to "flashiap" demo under LPCopen.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;If you still have question about it, please kindly let me know.&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;BR&lt;/FONT&gt;&lt;/P&gt;
&lt;P style="margin: 0in; font-family: Calibri; font-size: 11.0pt;"&gt;&lt;FONT face="arial,helvetica,sans-serif" size="4"&gt;Alice&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 09:07:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1815402#M55500</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-02-26T09:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1818391#M55522</link>
      <description>&lt;P&gt;Thank You for the help! I referred that and now able to do that.&lt;BR /&gt;&lt;BR /&gt;Can yo please help me to write or erase in flash using ISP protocol. I am trying to build my own boot loader.&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 06:14:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1818391#M55522</guid>
      <dc:creator>PranavKolte1</dc:creator>
      <dc:date>2024-02-29T06:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1820527#M55551</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229877"&gt;@PranavKolte1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your own second bootloader should use iap, not ISP. the ISP command is used for boot ROM.&lt;/P&gt;
&lt;P&gt;In ISP mode, using ISP command. Can using Flash Magic tool on PC side.&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, 04 Mar 2024 12:06:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1820527#M55551</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-04T12:06:42Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1821086#M55560</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&lt;BR /&gt;&lt;BR /&gt;Can you pls point me to the detail documentation for regarding the ISP, IAP and BOOT ROM.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2024 04:01:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1821086#M55560</guid>
      <dc:creator>PranavKolte1</dc:creator>
      <dc:date>2024-03-05T04:01:01Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1821954#M55570</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/229877"&gt;@PranavKolte1&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Refer to User Manual for lpc18s37,&amp;nbsp;Chapter 4: LPC18xx Boot ROM and&amp;nbsp;Chapter 5: LPC18xx flash programming/ISP and IAP. I attach it for you.&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>Wed, 06 Mar 2024 01:50:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1821954#M55570</guid>
      <dc:creator>Alice_Yang</dc:creator>
      <dc:date>2024-03-06T01:50:08Z</dc:date>
    </item>
    <item>
      <title>Re: Not able to write in flash of LPC18S37</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1832611#M55704</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hello &lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/27788"&gt;@Alice_Yang&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to write Secondary Bootloader for LPC1823 microcontroller can you pls point me to the documentation regarding the secondary bootloader for LPC1823. I want to use USB0 in DFU mode for receiving data from PC.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Mar 2024 05:55:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Not-able-to-write-in-flash-of-LPC18S37/m-p/1832611#M55704</guid>
      <dc:creator>PranavKolte1</dc:creator>
      <dc:date>2024-03-21T05:55:44Z</dc:date>
    </item>
  </channel>
</rss>

