Skip to content

Commit 1e94d18

Browse files
authored
Merge pull request #2800 from dhalbert/nrf-firmware-size-fix
fix calculation of nrf firmware size
2 parents 0cb3431 + 2f86e31 commit 1e94d18

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)