diff options
author | Tobias Badertscher <python@baerospace.ch> | 2015-11-24 14:35:24 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-11-25 23:53:26 +0000 |
commit | 8844d031e4bc39cb6e6cd053b63a8cdaeb383221 (patch) | |
tree | c32a2a092455d27fddad9942eb47f17825b61252 /stmhal/storage.c | |
parent | f32020ef3df62ff4716b070a8bb2abbbe9678012 (diff) |
stmhal: Add support for the STM32F429I-DISCO kit by STMicro.
Diffstat (limited to 'stmhal/storage.c')
-rw-r--r-- | stmhal/storage.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/stmhal/storage.c b/stmhal/storage.c index c1a6d9c85..29d373e60 100644 --- a/stmhal/storage.c +++ b/stmhal/storage.c @@ -56,6 +56,13 @@ STATIC byte flash_cache_mem[0x4000] __attribute__((aligned(4))); // 16k #define FLASH_MEM_SEG1_START_ADDR (0x08004000) // sector 1 #define FLASH_MEM_SEG1_NUM_BLOCKS (128) // sectors 1,2,3,4: 16k+16k+16k+16k(of 64k)=64k +#elif defined(STM32F429xx) + +#define CACHE_MEM_START_ADDR (0x10000000) // CCM data RAM, 64k +#define FLASH_SECTOR_SIZE_MAX (0x10000) // 64k max, size of CCM +#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 + #elif defined(STM32F746xx) // The STM32F746 doesn't really have CCRAM, so we use the 64K DTCM for this. |