dynamic load and run users binary file. self write the flash memory.

Dependencies:   mbed

Revision:
1:fbb938b95cef
Parent:
0:f8cf4fdf6ab4
--- a/IAP.h	Mon Dec 26 15:42:50 2011 +0000
+++ b/IAP.h	Tue Dec 27 16:55:24 2011 +0000
@@ -13,7 +13,7 @@
  *        revision 1.1  12-Mar-2010   chaged: to make possible to reserve flash area for user
  *                                            it can be set by USER_FLASH_AREA_START and USER_FLASH_AREA_SIZE in IAP.h
  *
- *     by Tedd OKANO http://mbed.org/users/okano/programs/IAP_internal_flash_write/latest
+ *     by Tedd OKANO http://mbed.org/users/okano/notebook/iap-in-application-programming-internal-flash-eras/
  */
 
 #ifndef        MBED_IAP
@@ -21,8 +21,8 @@
 
 #include    "mbed.h"
 
-#define     USER_FLASH_AREA_START   FLASH_SECTOR_29
-#define     USER_FLASH_AREA_SIZE    (FLASH_SECTOR_SIZE_16_TO_29 * 1)
+#define     USER_FLASH_AREA_START   FLASH_SECTOR_22
+#define     USER_FLASH_AREA_SIZE    (FLASH_SECTOR_SIZE_16_TO_29 * 8)
 
 /*
  *  memory map information is available in next URL also.