Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ CFLAGS += \
-mfpu=fpv4-sp-d16 \
-ggdb \
-Os \
-flto \
-ffunction-sections \
-fdata-sections \
-fno-builtin \
Expand Down Expand Up @@ -301,6 +302,8 @@ endif

# Defined Symbol (MACROS)
CFLAGS += -D__HEAP_SIZE=0
# Reset_Handler zeroes .bss and calls main directly, so newlib's crt0 is not linked in.
CFLAGS += -D__START=main -D__STARTUP_CLEAR_BSS
CFLAGS += -DCONFIG_GPIO_AS_PINRESET

# Skip defining CONFIG_NFCT_PINS_AS_GPIOS if the device uses the NFCT.
Expand Down
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ it and is upstream Adafruit history, kept for provenance.
- Fixed BLE OTA started from an application's buttonless DFU falling back to the application after about 10 s. The 0xB1 entry now restarts through the 0xA8 path, so the bootloader initializes the SoftDevice itself; the peer data for reconnection survives the reset.
- The DFU screen shows upload progress during UF2, serial, and BLE transfers, as a bar in place of the banner. The title reads BOOTLOADER during a bootloader update, ERASE during a factory erase, WRONG FILE for a UF2 this board cannot take, and NO FIRMWARE when DFU starts without a valid application.
- A DFU session started after a SoftDevice update no longer ends before it begins.
- Build change, no behavior change: the bootloader is now compiled with `-flto`, which shrinks every image by about 3.3 KB of flash. Section addresses and SoftDevice call sites are unchanged.

## OTAFIX 2.5

Expand Down
3 changes: 3 additions & 0 deletions linker/nrf_common.ld
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ SECTIONS
__sdata_start = .; __sdata_end = .; __sdata_load_start = .;
__tdata_start = .; __tdata_end = .; __tdata_load_start = .;
__fast_start = .; __fast_end = .; __fast_load_start = .;
/* Zero-length: the startup's clear loop also walks .tbss/.sbss. */
__tbss_start__ = .; __tbss_end__ = .;
__sbss_start__ = .; __sbss_end__ = .;

.bss :
{
Expand Down
Loading