<?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のトピックReading the first flash sector in bootloader mode</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-the-first-flash-sector-in-bootloader-mode/m-p/595530#M22840</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by amrbekhit on Mon Dec 22 09:26:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In bootloader mode (specifically, I'm using the CAN bootloader on an LPC11C14), the first 512 bytes of the boot block are mapped to address 0, according to the datasheet. When using the bootloader commands to read the memory starting from address 0, you get the remapped bootblock data and not the actual data in flash. How would you go about using the bootloader read commands to actually read the flash data in sector 0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:24:31 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:24:31Z</dc:date>
    <item>
      <title>Reading the first flash sector in bootloader mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-the-first-flash-sector-in-bootloader-mode/m-p/595530#M22840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by amrbekhit on Mon Dec 22 09:26:23 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In bootloader mode (specifically, I'm using the CAN bootloader on an LPC11C14), the first 512 bytes of the boot block are mapped to address 0, according to the datasheet. When using the bootloader commands to read the memory starting from address 0, you get the remapped bootblock data and not the actual data in flash. How would you go about using the bootloader read commands to actually read the flash data in sector 0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Amr&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-the-first-flash-sector-in-bootloader-mode/m-p/595530#M22840</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Reading the first flash sector in bootloader mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-the-first-flash-sector-in-bootloader-mode/m-p/595531#M22841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by DF9DQ on Thu Jan 15 00:23:33 MST 2015&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Amr,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You need to find a way to set the device to user flash mode. Since you can't write directly to a peripheral register via the loader, you could try and download a piece of code, and then execute it to do the actual change in the register.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a CAN illiterate, so can't try it myself...&amp;nbsp; but my suggestion is to download the following 12 bytes into the SRAM (@ 0x10000000 with "Write to RAM"), and then execute it in thumb mode (with "Go"):&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;0x01 0x48 0x02 0x21 0x01 0x60 0x70 0x47 0x00 0x80 0x04 0x40&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The code sets SYSMEMREMAP=0x02, and hopefully returns to allow sending further commands...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Rolf&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:24:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Reading-the-first-flash-sector-in-bootloader-mode/m-p/595531#M22841</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:24:32Z</dc:date>
    </item>
  </channel>
</rss>

