<?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>arm FlashFS</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/42766/arm-flashfs</link><description> Hi! 
 I&amp;#39;m using your FlashFS with LPC2119;but I Don&amp;#39;t know How 
to add __ram to IAP_Execute.c file ,There are five fountions in it: 
 
void IAP_Execute (struct sIAP *pIAP) 
U32 GetSecNum (U32 adr) 
int fs_Init (U32 adr, U32 clk) 
int fs_EraseSector </description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: arm FlashFS</title><link>https://community.arm.com/thread/73862?ContentTypeID=1</link><pubDate>Sun, 05 Mar 2006 20:07:54 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:651441a0-8c38-4e73-9393-4e6d613d66a1</guid><dc:creator>scan li</dc:creator><description>&lt;p&gt;Thanks Franc Urbanc to repaly my question!&lt;br /&gt;
Now I found my problems:&lt;br /&gt;
I don&amp;#39;t know how to configure the FlashFS,In LPC2119,I configured asf_flashdev.h and asf_config.c in 4 ways:&lt;br /&gt;
1.&lt;br /&gt;
 in asf_flashdev.h&lt;br /&gt;
  #define FLASH_DEVICE&lt;br /&gt;
   DFB(0x02000, 0x00A000),&lt;br /&gt;
   DFB(0x02000, 0x00C000),&lt;br /&gt;
  #define FL_NSECT 2&lt;br /&gt;
 in asf_config.c&lt;br /&gt;
  #define FL_BADR     0x0000a000&lt;br /&gt;
  #define FL_SIZE     0x00004000&lt;br /&gt;
 It don&amp;#39;t work;&lt;br /&gt;
2.&lt;br /&gt;
  in asf_flashdev.h&lt;br /&gt;
  #define FLASH_DEVICE&lt;br /&gt;
   DFB(0x02000, 0x008000),&lt;br /&gt;
  #define FL_NSECT 1&lt;br /&gt;
 in asf_config.c&lt;br /&gt;
  #define FL_BADR     0x00008000&lt;br /&gt;
  #define FL_SIZE     0x00004000&lt;br /&gt;
 It  works well;&lt;br /&gt;
&lt;br /&gt;
3.&lt;br /&gt;
  in asf_flashdev.h&lt;br /&gt;
  #define FLASH_DEVICE&lt;br /&gt;
   DFB(0x02000, 0x008000),&lt;br /&gt;
  #define FL_NSECT 1&lt;br /&gt;
 in asf_config.c&lt;br /&gt;
  #define FL_BADR     0x00008000&lt;br /&gt;
  #define FL_SIZE     0x00002000&lt;br /&gt;
 It  works well;&lt;br /&gt;
&lt;br /&gt;
4.&lt;br /&gt;
  in asf_flashdev.h&lt;br /&gt;
  #define FLASH_DEVICE&lt;br /&gt;
   DFB(0x02000, 0x00a000),&lt;br /&gt;
  #define FL_NSECT 1&lt;br /&gt;
 in asf_config.c&lt;br /&gt;
  #define FL_BADR     0x0000a000&lt;br /&gt;
  #define FL_SIZE     0x00002000&lt;br /&gt;
 It don&amp;#39;t works;&lt;br /&gt;
&lt;br /&gt;
Can you tell me How to configure the FlashFS?&lt;br /&gt;
&lt;br /&gt;
Thanks very much!&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: arm FlashFS</title><link>https://community.arm.com/thread/45609?ContentTypeID=1</link><pubDate>Tue, 28 Feb 2006 03:41:09 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:c6065694-2e12-4d25-ba39-9e9a65f331c3</guid><dc:creator>Franc  Urbanc</dc:creator><description>&lt;p&gt;It is not required for any of the Flash Programming functions to be located in RAM for LPC2119 if you want to use internal flash for storing files.&lt;br /&gt;
&lt;br /&gt;
Flash programming functions call IAP functions from the Boot Loader. IAP functions handle this automatically. The critical code is copied to RAM and executed within RAM. You should reserve the top 32 bytes from internal RAM for IAP under Options for Target - LA Locate.&lt;br /&gt;
&lt;br /&gt;
For the &lt;i&gt;fs_EraseSector()&lt;/i&gt; and &lt;i&gt;fs_ProgramPage()&lt;/i&gt; functions, you should disable all interrupts. You may however leave the interrupts enabled if you remap interrupt vectors to RAM and locate interrupt handlers also to internal RAM. Othervise your application may crash.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>