<?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>MCB2140- IAP entry Prepare to write Fails</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/21991/mcb2140--iap-entry-prepare-to-write-fails</link><description> 
We are trying to write to the FLASH sectors of the
microcontroller. Using simple and straight-forward instructions, the
write(51) has repeatedly failed on the LPC2148. The return is code 9:
Sector Not Prepared For Write Operation. Yet, just a few instructions</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: MCB2140- IAP entry Prepare to write Fails</title><link>https://community.arm.com/thread/48274?ContentTypeID=1</link><pubDate>Mon, 02 Jul 2007 11:19:19 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e99b268a-8e9f-4944-bfc5-32f6d0b78f06</guid><dc:creator>Sean Broderick</dc:creator><description>&lt;p&gt;&lt;p&gt;
For those interested, I encountered the exact same problem as
another user.&lt;br /&gt;
&lt;a href="http://www.keil.com/forum/docs/thread7001.asp"&gt;http://www.keil.com/forum/docs/thread7001.asp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;
Basically, the example code listed for the 2100 micros is not for
all 21XX micros due to the way memory is mapped to sectors.&lt;/p&gt;

&lt;p&gt;
Table 288 shed light on this for me in the 2148 manual.&lt;br /&gt;
Definitely something to keep in mind when working with the flash.&lt;/p&gt;

&lt;p&gt;
In conclusion, I was preparing one sector for the write, but
writing to another one.&lt;/p&gt;
&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>