File tree Expand file tree Collapse file tree 3 files changed +6
-186
lines changed
targets/TARGET_STM/TARGET_STM32F4
TARGET_STM32F437xG/device Expand file tree Collapse file tree 3 files changed +6
-186
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 35
35
36
36
#if DEVICE_FLASH
37
37
38
+ #if defined (STM32F427xx ) || defined (STM32F437xx )
39
+ #define FLASH_SIZE (uint32_t) 0x100000
40
+ #endif
41
+
38
42
/* Exported types ------------------------------------------------------------*/
39
43
/* Exported constants --------------------------------------------------------*/
40
44
/* Exported macro ------------------------------------------------------------*/
53
57
#define ADDR_FLASH_SECTOR_11 ((uint32_t)0x080E0000) /* Base @ of Sector 11, 128 Kbytes */
54
58
55
59
#endif
56
- #endif
60
+ #endif
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ static uint32_t GetSector(uint32_t address)
151
151
uint32_t sector = 0 ;
152
152
uint32_t tmp = address - ADDR_FLASH_SECTOR_0 ;
153
153
/* This function supports 1Mb and 2Mb flash sizes */
154
- #if defined(FLASH_SECTOR_12 )
154
+ #if defined(ADDR_FLASH_SECTOR_12 )
155
155
if (address & 0x100000 ) { // handle 2nd bank
156
156
sector = FLASH_SECTOR_12 ;
157
157
tmp = address - ADDR_FLASH_SECTOR_12 ;
You can’t perform that action at this time.
0 commit comments