Skip to content

Commit 97e787e

Browse files
Reduce unintialized_ram overhead to 0 in most cases (#1200)
Use GNU LD MAX() to ensure the uninitialized RAM portions are after the OTA region. For most apps this already happens, so there will be no overhead added.
1 parent b473139 commit 97e787e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/memmap_default.ld

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,11 +218,11 @@ SECTIONS
218218
} > RAM
219219

220220
/* At most one of the following two will be engaged, depending on the SDK version */
221-
.uninitialized_ram BLOCK(16k) (NOLOAD) : {
221+
.uninitialized_ram MAX(0x20003000, .) (NOLOAD) : {
222222
*(.uninitialized_ram*)
223223
} > RAM
224224

225-
.uninitialized_data BLOCK(16k) (NOLOAD) : {
225+
.uninitialized_data MAX(0x20003000, .) (NOLOAD) : {
226226
*(.uninitialized_data*)
227227
} > RAM
228228

0 commit comments

Comments
 (0)