summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorScott Shawcroft <scott@adafruit.com>2020-04-22 12:14:56 -0700
committerGitHub <noreply@github.com>2020-04-22 12:14:56 -0700
commit1e94d18db55e931a20558e3ca089c964b77ea97e (patch)
treef825a0bf665923fc8f1c4c07c50f2b2263c900bd
parent0cb34316cd887a43df9b4be87333d381c35fce7c (diff)
parent2f86e31501d50715150a2109af110525a334af88 (diff)
Merge pull request #2800 from dhalbert/nrf-firmware-size-fix
fix calculation of nrf firmware size
-rw-r--r--ports/nrf/mpconfigport.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/nrf/mpconfigport.h b/ports/nrf/mpconfigport.h
index 1f10f5e7e..4e49568ed 100644
--- a/ports/nrf/mpconfigport.h
+++ b/ports/nrf/mpconfigport.h
@@ -149,7 +149,7 @@
#define CIRCUITPY_BLE_CONFIG_START_ADDR (CIRCUITPY_INTERNAL_NVM_START_ADDR - CIRCUITPY_BLE_CONFIG_SIZE)
// The firmware space is the space left over between the fixed lower and upper regions.
-#define CIRCUITPY_FIRMWARE_SIZE (CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_START_ADDR - CIRCUITPY_FIRMWARE_START_ADDR - CIRCUITPY_BLE_CONFIG_SIZE)
+#define CIRCUITPY_FIRMWARE_SIZE (CIRCUITPY_BLE_CONFIG_START_ADDR - CIRCUITPY_FIRMWARE_START_ADDR)
#if BOOTLOADER_START_ADDR % FLASH_ERASE_SIZE != 0
#error BOOTLOADER_START_ADDR must be on a flash erase boundary.