mirror of https://github.com/ARMmbed/mbed-os.git
The computation of the sector number in GetSector for 2MB flash sizes consists in adding an extra constant for 2MB dual bank (12 as in ADDR_FLASH_SECTOR_12), then going through the same address check as if it was an address of the first sector. That means that we need to modify tmp and address as if it was a first bank address, which we're doing here by sub_stracting 0x100000 delta. |
||
---|---|---|
.. | ||
TARGET_ARM_SSG | ||
TARGET_Atmel | ||
TARGET_Freescale | ||
TARGET_Maxim | ||
TARGET_NORDIC | ||
TARGET_NUVOTON | ||
TARGET_NXP | ||
TARGET_ONSEMI | ||
TARGET_RENESAS | ||
TARGET_Realtek | ||
TARGET_STM | ||
TARGET_Silicon_Labs | ||
TARGET_TOSHIBA | ||
TARGET_WIZNET | ||
TARGET_ublox | ||
targets.json |