Skip to content

Commit 2f86e31

Browse files
committed
fix calculation of nrf firmware size
1 parent 51dbe91 commit 2f86e31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/nrf/mpconfigport.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@
149149
#define CIRCUITPY_BLE_CONFIG_START_ADDR (CIRCUITPY_INTERNAL_NVM_START_ADDR - CIRCUITPY_BLE_CONFIG_SIZE)
150150

151151
// The firmware space is the space left over between the fixed lower and upper regions.
152-
#define CIRCUITPY_FIRMWARE_SIZE (CIRCUITPY_INTERNAL_FLASH_FILESYSTEM_START_ADDR - CIRCUITPY_FIRMWARE_START_ADDR - CIRCUITPY_BLE_CONFIG_SIZE)
152+
#define CIRCUITPY_FIRMWARE_SIZE (CIRCUITPY_BLE_CONFIG_START_ADDR - CIRCUITPY_FIRMWARE_START_ADDR)
153153

154154
#if BOOTLOADER_START_ADDR % FLASH_ERASE_SIZE != 0
155155
#error BOOTLOADER_START_ADDR must be on a flash erase boundary.

0 commit comments

Comments
 (0)