<?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: Lpc54102 iap ram to flash in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852150#M33857</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can never rely on hope for alignment!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead use the compiler directive when declaring the variable&lt;/P&gt;&lt;PRE class="" style="color: #000000;"&gt;__attribute__ ((aligned (4)))&lt;/PRE&gt;&lt;P&gt;Place the directive before your declaration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here for more information&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Type-Attributes.html" rel="nofollow noopener noreferrer" title="http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Type-Attributes.html" target="_blank"&gt;Using the GNU Compiler Collection (GCC)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 10 Feb 2019 17:12:13 GMT</pubDate>
    <dc:creator>converse</dc:creator>
    <dc:date>2019-02-10T17:12:13Z</dc:date>
    <item>
      <title>Lpc54102 iap ram to flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852147#M33854</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to make a secondary bootloader and I have issues copying data from RAM to flash.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I prepared the sector (command 50), erased the page I want to write into. No errors up to this point. &amp;nbsp;Then when I call (command 51) write RAM to Flash, I get return value = 2. “Ram address not a word (or something like that).” Buffer address is at location 0x02000082 (read from debugger). Page I want to write into is 0x00008000 and data buffer is 256 bytes long.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the cause of this error?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i read in user manual that I need to disable ISR. Is that just a case of having all NVIC ISR=0 or there is something else that needs to be disabled?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2019 00:19:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852147#M33854</guid>
      <dc:creator>svensavic</dc:creator>
      <dc:date>2019-02-10T00:19:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc54102 iap ram to flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852148#M33855</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your ram needs to be 4-byte (word) aligned. So, the address needs to end with a 0,4,8, or C. Your address is only 2-byte aligned.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2019 01:18:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852148#M33855</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-02-10T01:18:36Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc54102 iap ram to flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852149#M33856</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see. Is that the start address requirement or end address? I dont have idea how to force static allocation of buffer at certain location.. I suppose by shuffling variable position in the code? Will that address be guaranteed when optimizer kicks in? Or is there a way to guard part of memory that I need for my buffer?&lt;/P&gt;&lt;P&gt;I am writting the code in C.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2019 09:55:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852149#M33856</guid>
      <dc:creator>svensavic</dc:creator>
      <dc:date>2019-02-10T09:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc54102 iap ram to flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852150#M33857</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can never rely on hope for alignment!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;instead use the compiler directive when declaring the variable&lt;/P&gt;&lt;PRE class="" style="color: #000000;"&gt;__attribute__ ((aligned (4)))&lt;/PRE&gt;&lt;P&gt;Place the directive before your declaration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;See here for more information&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Type-Attributes.html" rel="nofollow noopener noreferrer" title="http://gcc.gnu.org/onlinedocs/gcc-3.3/gcc/Type-Attributes.html" target="_blank"&gt;Using the GNU Compiler Collection (GCC)&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Feb 2019 17:12:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852150#M33857</guid>
      <dc:creator>converse</dc:creator>
      <dc:date>2019-02-10T17:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Lpc54102 iap ram to flash</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852151#M33858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is handy to have cheatsheet. Thanks for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2019 14:24:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Lpc54102-iap-ram-to-flash/m-p/852151#M33858</guid>
      <dc:creator>svensavic</dc:creator>
      <dc:date>2019-02-11T14:24:17Z</dc:date>
    </item>
  </channel>
</rss>

