<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/38346/not-able-to-erase-sector-0-when-using-iap-in-lpc2214</link><description> 
Thanks Peter....... My Apology for not putting the 

 
Code in proper format ...... 

 
I want to implement the functionality of IAP in LPC2214.... for
testing purpose I have taken the sample code from keil.....
C:\Keil\ARM\Flash\LPC_IAP_256...In this</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/139147?ContentTypeID=1</link><pubDate>Sun, 10 May 2009 23:33:52 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:d7f856ac-1580-42a8-b96f-070bf0e3d68b</guid><dc:creator>Tamir Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
groovy!&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/130470?ContentTypeID=1</link><pubDate>Sun, 10 May 2009 21:21:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:ab49db7a-612c-4f3e-a85d-696b1e6638c3</guid><dc:creator>Mustafa Shaikh</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks Tamir &amp;amp; John .........&lt;/p&gt;

&lt;p&gt;
I am very happy by the advice suggested by you .......&lt;br /&gt;
really .... Just changing the code here and there had not help me
.... I have gone through the whole code with conceptually and through
understanding .......&lt;/p&gt;

&lt;p&gt;
Finally I was able to write the full IAP routine successfully
..... .i.e able to erase all the sectors &amp;amp; programmed
it......&lt;/p&gt;

&lt;p&gt;
I am making mistake in placing the code in ROM region, after your
advice place the code in IRAM region that write the flash in RAM,
right click on your C file, use options to select a RAM region -&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/125408?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 20:03:03 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:dbe15574-c3b6-40c3-9db2-dd266fd74094</guid><dc:creator>John Linq</dc:creator><description>&lt;p&gt;&lt;p&gt;
(I don&amp;#39;t know anything about LPC22xx, it is special, because it
has the ability to run uCLinux.)&lt;/p&gt;

&lt;p&gt;
I guess, sector 0 is where you put your application?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/114877?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 02:12:16 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:efc597d4-3102-400f-b7d9-9bd2c0088443</guid><dc:creator>Mustafa Shaikh</dc:creator><description>&lt;p&gt;&lt;p&gt;
I have tried this also, but still I am not able to erase sector 0
?&lt;/p&gt;

&lt;pre&gt;
; Memory Mapping (when Interrupt Vectors are in RAM)
MEMMAP          EQU     0xE01FC040      ; Memory Mapping Control
                IF      :DEF:REMAP
                LDR     R0, =MEMMAP
                IF      :DEF:RAM_MODE
                MOV     R1, #2
                ELSE
                MOV     R1, #1
                ENDIF
                STR     R1, [R0]
                ENDIF



&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/89708?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 01:55:05 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:f692f0ac-0215-4779-a08b-df64f3d331b9</guid><dc:creator>Tamiryan Michael</dc:creator><description>&lt;p&gt;&lt;p&gt;
Per, have you noticed the colon that precedes your name...?&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/101812?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 01:50:27 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:b85e8257-937b-4e2c-bf8f-9ad2b659f0bf</guid><dc:creator>Mustafa Shaikh</dc:creator><description>&lt;p&gt;&lt;p&gt;
Thanks I have Got it ........ How to post the new
messages.....&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/89710?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 00:21:35 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:3a3eb847-155a-40f3-ac66-180eab339c36</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;p&gt;
You &lt;i&gt;&lt;b&gt;still&lt;/b&gt;&lt;/i&gt; haven&amp;#39;t got it right!&lt;/p&gt;

&lt;p&gt;
When you look at your text in the &lt;b&gt;Preview&lt;/b&gt;, does it look
right to you?&lt;/p&gt;

&lt;p&gt;
Does it look like clear, legible, easy-to-read, properly laid-out
code to you?&lt;/p&gt;

&lt;p&gt;
The instructions for posting are very clearly stated - see:
&lt;a href="http://www.danlhenry.com/caps/keil_code.png"&gt;www.danlhenry.com/.../keil_code.png&lt;/a&gt;
and note the red highlight.&lt;/p&gt;

&lt;p&gt;
Also click the link for &amp;quot;&lt;b&gt;Tips for Posting Messages&lt;/b&gt;&amp;quot;...&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/55941?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 00:11:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9875c16a-d76c-427f-9178-c5f1b1415ded</guid><dc:creator>Mustafa Shaikh</dc:creator><description>&lt;p&gt;&lt;p&gt;
I Have disable all the Interrupt Vector .........&lt;br /&gt;
Here is the code for Memory mapping ......what modification has to be
done ? in order to erase sector 0 ?&lt;/p&gt;

&lt;p&gt;
; Memory Mapping (when Interrupt Vectors are in RAM)&lt;/p&gt;

&lt;p&gt;
MEMMAP EQU 0xE01FC040 ; Memory&lt;/p&gt;

&lt;p&gt;
Mapping Control&lt;/p&gt;

&lt;p&gt;
IF :DEF:REMAP&lt;/p&gt;

&lt;p&gt;
LDR R0, =MEMMAP&lt;/p&gt;

&lt;p&gt;
IF :DEF:EXTMEM_MODE&lt;/p&gt;

&lt;p&gt;
MOV R1, #3&lt;/p&gt;

&lt;p&gt;
ELIF :DEF:RAM_MODE&lt;/p&gt;

&lt;p&gt;
MOV R1, #2&lt;/p&gt;

&lt;p&gt;
ELSE&lt;/p&gt;

&lt;p&gt;
MOV R1, #1&lt;/p&gt;

&lt;p&gt;
ENDIF&lt;/p&gt;

&lt;p&gt;
STR R1, [R0]&lt;/p&gt;

&lt;p&gt;
ENDIF&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Not Able to erase Sector 0 when using IAP in LPC2214</title><link>https://community.arm.com/thread/55932?ContentTypeID=1</link><pubDate>Mon, 27 Apr 2009 00:09:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:9eeb8c84-61ea-41d9-b50d-ca34a485e342</guid><dc:creator>ImPer Westermark</dc:creator><description>&lt;p&gt;&lt;p&gt;
No need to create new threads. It just creates confusion for
people reading or answering - remember that Google and other people
may not know that the threads are related, or that the discussion has
moved to a new thread.&lt;/p&gt;

&lt;p&gt;
But you still haven&amp;#39;t read the text directly above the message
input box. If you had, then your code would have looked like
(assuming you did indent the code with spaces):&lt;/p&gt;

&lt;pre&gt;
#include &amp;lt;stdio.h&amp;gt;

int main(void) {
    printf(&amp;quot;Hello world!\n&amp;quot;);
    return 0;
}
&lt;/pre&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>