Skip to content

Commit 7d5933d

Browse files
committed
bl_update: ensure amj update file is padded
use alignment of 32 to ensure it works with all MCUs
1 parent 9ad7f3b commit 7d5933d

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

bl_update/ldscript_bl.ld

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ SECTIONS
7979
KEEP (*(SORT(.fini_array.*)))
8080
KEEP (*(.fini_array*))
8181
PROVIDE_HIDDEN (__fini_array_end = .);
82+
. = ALIGN(32);
8283
} >FLASH
8384

8485
/* used by the startup to initialize data */
@@ -87,12 +88,12 @@ SECTIONS
8788
/* Initialized data sections goes into RAM, load LMA copy after code */
8889
.data :
8990
{
90-
. = ALIGN(4);
91+
. = ALIGN(32);
9192
_sdata = .; /* create a global symbol at data start */
9293
*(.data) /* .data sections */
9394
*(.data*) /* .data* sections */
9495

95-
. = ALIGN(4);
96+
. = ALIGN(32);
9697
_edata = .; /* define a global symbol at data end */
9798
} >RAM AT> FLASH
9899

0 commit comments

Comments
 (0)