diff options
Diffstat (limited to 'stmhal/storage.c')
-rw-r--r-- | stmhal/storage.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/stmhal/storage.c b/stmhal/storage.c index d0567b4fb..64e810e8f 100644 --- a/stmhal/storage.c +++ b/stmhal/storage.c @@ -60,9 +60,9 @@ STATIC byte flash_cache_mem[0x4000] __attribute__((aligned(4))); // 16k // The STM32F746 doesn't really have CCRAM, so we use the 64K DTCM for this. #define CACHE_MEM_START_ADDR (0x20000000) // DTCM data RAM, 64k -#define FLASH_SECTOR_SIZE_MAX (0x10000) // 64k max, size of DTCM -#define FLASH_MEM_SEG1_START_ADDR (0x08004000) // sector 1 -#define FLASH_MEM_SEG1_NUM_BLOCKS (224) // sectors 1,2,3,4: 16k+16k+16k+64k=112k +#define FLASH_SECTOR_SIZE_MAX (0x08000) // 32k max +#define FLASH_MEM_SEG1_START_ADDR (0x08008000) // sector 1 +#define FLASH_MEM_SEG1_NUM_BLOCKS (192) // sectors 1,2,3: 32k+32k+32=96k #else #error "no storage support for this MCU" |