Skip to content

Commit 4fa53d0

Browse files
authored
Update package test to define boot_flash in linker scripts
1 parent 3c7120d commit 4fa53d0

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packagetest/Inputs/microbit.ld

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1-
__flash = 0x00000000; /* starting address of flash */
2-
__flash_size = 0x40000; /* length of flash */
3-
__ram = 0x20000000; /* starting address of RAM bank 0 */
4-
__ram_size = 0x4000; /* length of RAM bank 0 */
1+
__boot_flash = 0x00000000; /* fragment of the flash where interrupt vector goes */
2+
__boot_flash_size = 0x1000; /* length of flash fragment with interrupt vector */
3+
__flash = 0x00001000; /* starting address of the remaining flash */
4+
__flash_size = 0x3f000; /* length of the remaining flash */
5+
__ram = 0x20000000; /* starting address of RAM bank 0 */
6+
__ram_size = 0x4000; /* length of RAM bank 0 */
57
__stack_size = 512;
68

79
INCLUDE picolibcpp.ld

0 commit comments

Comments
 (0)