diff STM32F10x_512k_64k_flash.ld @ 76:f1c9a51e368a

Add EEPROM emulation from AN2594. Fix emulated EEPROM size on large parts.
author Daniel O'Connor <darius@dons.net.au>
date Mon, 22 Apr 2013 23:17:40 +0930
parents c59513fd84fb
children
line wrap: on
line diff
--- a/STM32F10x_512k_64k_flash.ld	Thu Apr 18 22:44:52 2013 +0930
+++ b/STM32F10x_512k_64k_flash.ld	Mon Apr 22 23:17:40 2013 +0930
@@ -15,8 +15,9 @@
 {
 	RAM      (RWX) : ORIGIN = 0x20000000+0, LENGTH = 64K-0
 	EXTSRAM  (RWX) : ORIGIN = 0x68000000, LENGTH = 0
-	FLASH    (RX)  : ORIGIN = 0x08000000+0, LENGTH = 512K-2K-0
-	EEMUL    (RWX) : ORIGIN = 0x08000000+512k-2k, LENGTH = 2k
+	/* Page size is 2k for this device and we have 2 pages of emulated EEPROM */
+	FLASH    (RX)  : ORIGIN = 0x08000000+0, LENGTH = 512K-4K-0
+	EEMUL    (RWX) : ORIGIN = 0x08000000+512k-4k, LENGTH = 4k
 	FLASHB1  (RX)  : ORIGIN = 0x00000000, LENGTH = 0
 	EXTMEMB0 (RX)  : ORIGIN = 0x00000000, LENGTH = 0
 	EXTMEMB1 (RX)  : ORIGIN = 0x00000000, LENGTH = 0