Skip to content

Commit c1186fd

Browse files
authored
Update arm-cortex-m55-cmake.yml
1 parent fceec9a commit c1186fd

1 file changed

Lines changed: 17 additions & 8 deletions

File tree

.github/workflows/arm-cortex-m55-cmake.yml

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,11 @@ env:
1010
BUILD_TYPE: Release
1111
BUILD_FLAGS: "-mcpu=cortex-m55 -mfloat-abi=hard -mfpu=fpv5-sp-d16"
1212
FLASH_ORIGIN: "0x00000000"
13-
FLASH_LENGTH: "8192K"
13+
FLASH_LENGTH: "16M"
1414
RAM_ORIGIN: "0x20000000"
15-
RAM_LENGTH: "4096K"
15+
RAM_LENGTH: "256M"
1616
STACK_SIZE: "64K"
17-
HEAP_SIZE: "1024K"
17+
HEAP_SIZE: "2048K"
1818

1919
jobs:
2020
build:
@@ -71,11 +71,15 @@ jobs:
7171
7272
SECTIONS
7373
{
74+
.vectors : {
75+
KEEP(*(.vectors))
76+
} > FLASH
7477
.text :
7578
{
76-
*(.vectors)
7779
*(.text*)
7880
*(.rodata*)
81+
. = ALIGN(4);
82+
_etext = .;
7983
} > FLASH
8084
8185
.ARM.exidx :
@@ -87,14 +91,14 @@ jobs:
8791
__exidx_end = .;
8892
} > FLASH
8993
90-
.data :
94+
.data : AT (_etext)
9195
{
9296
. = ALIGN(4);
9397
__data_start__ = .;
9498
*(.data*)
9599
. = ALIGN(4);
96100
__data_end__ = .;
97-
} > RAM AT > FLASH
101+
} > RAM
98102
99103
.bss :
100104
{
@@ -107,22 +111,27 @@ jobs:
107111
} > RAM
108112
PROVIDE(end = __bss_end__);
109113
110-
.stack :
114+
.stack (NOLOAD) :
111115
{
112116
. = ALIGN(4);
113117
. = . + ${{ env.STACK_SIZE }};
114118
. = ALIGN(4);
115119
_estack = .;
116120
} > RAM
117121
118-
.heap :
122+
.heap (NOLOAD) :
119123
{
120124
. = ALIGN(4);
121125
_sheap = .;
122126
. = . + ${{ env.HEAP_SIZE }};
123127
. = ALIGN(4);
124128
_eheap = .;
125129
} > RAM
130+
131+
/DISCARD/ : {
132+
*(.comment)
133+
*(.ARM.attributes)
134+
}
126135
}
127136
EOF
128137
cat ${{github.workspace}}/build/linker.ld

0 commit comments

Comments
 (0)