<?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 LPC1769 - Memory Map Problem in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522182#M4818</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sukrubahadir on Mon May 23 01:48:09 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to develop bootloader interface for LPC1769. I am using ISP command for interfacing with LPC1769 in ISP mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I developed code for this purpose and all function are working well. But there is one problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I plan to write .axf file to the ram and then copy ram to flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is memory map of the LPC1769.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fpostimg.org%2Fimage%2F5nx9rsfkb%2F%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://postimg.org/image/5nx9rsfkb/[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So here is my question : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which secrtor of the flash can I write ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the point to be considered about writing to flash or writing to ram ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:52:30 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:52:30Z</dc:date>
    <item>
      <title>LPC1769 - Memory Map Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522182#M4818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sukrubahadir on Mon May 23 01:48:09 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to develop bootloader interface for LPC1769. I am using ISP command for interfacing with LPC1769 in ISP mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I developed code for this purpose and all function are working well. But there is one problem...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I plan to write .axf file to the ram and then copy ram to flash.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Here is memory map of the LPC1769.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;SPAN&gt;[img]&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fpostimg.org%2Fimage%2F5nx9rsfkb%2F%5B%2Fimg%5D" rel="nofollow" target="_blank"&gt;http://postimg.org/image/5nx9rsfkb/[/img]&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So here is my question : &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Which secrtor of the flash can I write ? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is the point to be considered about writing to flash or writing to ram ? &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:52:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522182#M4818</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 - Memory Map Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522183#M4819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by vtw.433e on Mon May 23 02:11:15 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can write to any sector. BUT when writing from flash, you CANNOT be running code from Flash - the code to write to flash must be running from RAM (if you are using LPCXPresso IDE, there are FAQ on how to do this).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that you probably do not want to write the AXF file - that contains lots of additional information used by debuggers and program loaders. You will most likely want to use a binary file which contains just the data to be written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Suggest you search these forums for information bootloaders. There are also several examples for a bootloader in the samples.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:52:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522183#M4819</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:52:31Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 - Memory Map Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522184#M4820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sukrubahadir on Mon May 23 05:21:13 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I think I said same thing. I'll repeat again.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;First, I will write data to the ram. And then I will copy data from ram to flash. I think this is the same as what you say.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I want to write my own binary code to flash. But I dont know which sector should be written.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Briefly, I am writing a c# code for doing same thing as flash magic. &lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522184#M4820</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 - Memory Map Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522185#M4821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by lpcxpresso-support on Mon May 23 05:47:44 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Your question is too vague to provide a compete answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The internal flash on an LPC1769 is divided up into a number of sectors. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A sector is the smallest 'unit' of flash that can be erased. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Each sector of flash is divided up into a number of pages. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;A page is the smallest 'unit' of flash that can be programmed (a number of page sizes may be available). &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash memory must be erased before it is programmed.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash memory will appear within the MCU memory map with sector 0 at the lowest (base) address, sector 1 at base address + size of sector 0 etc. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So the decision as to which sector to write must reflect how you wish your data to appear within the MCU memory map. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this answers your question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yours,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPCXpresso-support&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:52:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522185#M4821</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1769 - Memory Map Problem</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522186#M4822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:11:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1769-Memory-Map-Problem/m-p/522186#M4822</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:11:34Z</dc:date>
    </item>
  </channel>
</rss>

