<?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: Writing variables to FLASH with IAP in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559712#M15529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Mar 13 04:15:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: IanJames&lt;/STRONG&gt;&lt;BR /&gt;Is there any way of preventing the Information blocks being erased during programming?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually programming (LPC-Link) is erasing only used sectors (if you don't enable Mass Erase) :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 23:38:51 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T23:38:51Z</dc:date>
    <item>
      <title>Writing variables to FLASH with IAP</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559707#M15524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IanJames on Tue Mar 12 07:15:49 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am attempting to write a 512 byte variable to FLASH using the IAP routines.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The problem is I get an error code 2 [SRC_ADDR_ERROR]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked in the map file and see that the address of the variable is&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x10000901&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gNodeAddrTable&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I assume this is the problem but how can I force the variable to to be word aligned?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have another variable which works fine:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0x10000b12&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; gConfig&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thnaks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Ian&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559707#M15524</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:48Z</dc:date>
    </item>
    <item>
      <title>Re: Writing variables to FLASH with IAP</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559708#M15525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Mar 12 08:10:42 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: IanJames&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;I assume this is the problem but how can I force the variable to to be word aligned?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use your compiler &lt;SPAN class="lia-unicode-emoji" title=":winking_face:"&gt;&lt;LI-EMOJI id="lia_winking-face" title=":winking_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&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;
uint8_t dummy[COLOR=Red] __attribute__((aligned(align_value)));[/COLOR]
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559708#M15525</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Writing variables to FLASH with IAP</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559709#M15526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IanJames on Tue Mar 12 09:05:37 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for that.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now I need to find why I the write to flash using the IAP routines aren't working!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559709#M15526</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Writing variables to FLASH with IAP</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559710#M15527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Mar 12 10:00:59 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;#1 Reserve IAP RAM &lt;/SPAN&gt;&lt;A href="http://"&gt;http://www.support.code-red-tech.com/CodeRedWiki/ReserveIAPRam&lt;/A&gt;&lt;SPAN&gt; ;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#2 Disable Interrupts :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;#3 Do your IAP: Prepare/Erase/Prepare/Write :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559710#M15527</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: Writing variables to FLASH with IAP</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559711#M15528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by IanJames on Wed Mar 13 02:43:05 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any way of preventing the Information blocks being erased during programming?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559711#M15528</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Writing variables to FLASH with IAP</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559712#M15529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Wed Mar 13 04:15:29 MST 2013&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: IanJames&lt;/STRONG&gt;&lt;BR /&gt;Is there any way of preventing the Information blocks being erased during programming?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Usually programming (LPC-Link) is erasing only used sectors (if you don't enable Mass Erase) :)&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 23:38:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Writing-variables-to-FLASH-with-IAP/m-p/559712#M15529</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T23:38:51Z</dc:date>
    </item>
  </channel>
</rss>

