We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d63929 commit 3237bffCopy full SHA for 3237bff
targets/TARGET_STM/TARGET_STM32F7/flash_api.c
@@ -188,8 +188,9 @@ uint32_t flash_get_size(const flash_t *obj)
188
static uint32_t GetSector(uint32_t address)
189
{
190
uint32_t sector = 0;
191
- uint32_t tmp = address - ADDR_FLASH_SECTOR_0;
+
192
#if (MBED_CONF_TARGET_FLASH_DUAL_BANK) && defined(FLASH_OPTCR_nDBANK)
193
+ uint32_t tmp = address - ADDR_FLASH_SECTOR_0;
194
if (address < ADDR_FLASH_SECTOR_4) { // Sectors 0 to 3
195
sector += tmp >> 14;
196
} else if (address < ADDR_FLASH_SECTOR_5) { // Sector 4
0 commit comments