stm32f4_vrom: Correct sector size.
authorsjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 27 Sep 2015 06:41:19 +0000 (06:41 +0000)
committersjlongland <sjlongland@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 27 Sep 2015 06:41:19 +0000 (06:41 +0000)
The sectors are 16kB, not 64kB.  (Yes, brain fart moment yesterday.)

git-svn-id: https://svn.code.sf.net/p/freetel/code@2406 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/stm32/src/stm32f4_vrom.c

index 987211f22656a4ca9285e66624e6a705a116fcde..5b6612658b235ecbb7b6b97e598374879c8165f9 100644 (file)
@@ -34,7 +34,7 @@
 #include "stm32f4xx_flash.h"
 #include "stm32f4xx_crc.h"
 
-#define VROM_SECT_SZ           (65536) /*!< Size of a flash sector */
+#define VROM_SECT_SZ           (16384) /*!< Size of a flash sector */
 #define VROM_SECT_CNT          (3)     /*!< Number of sectors */
 #define VROM_BLOCK_SZ          (256)   /*!< Size of a flash block */