Skip to content

Commit 50437d3

Browse files
authored
Merge pull request #131 from whj4674672/master
【添加】在链接脚本中添加以太网描述符的地址
2 parents 718c014 + 2db9fe1 commit 50437d3

File tree

4 files changed

+145
-1
lines changed
  • projects
    • art_pi_factory/board/linker_scripts/STM32H750XBHx
    • art_pi_net_player/board/linker_scripts/STM32H750XBHx
    • art_pi_wifi/board/linker_scripts/STM32H750XBHx

4 files changed

+145
-1
lines changed

projects/art_pi_blink_led/board/linker_scripts/STM32H750XBHx/link.lds

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ MEMORY
77
{
88
ROM (rx) : ORIGIN =0x90000000,LENGTH =8192k
99
RAM (rw) : ORIGIN =0x24000000,LENGTH =512k
10+
RxDecripSection (rw) : ORIGIN =0x30040000,LENGTH =32k
11+
TxDecripSection (rw) : ORIGIN =0x30040060,LENGTH =32k
12+
RxArraySection (rw) : ORIGIN =0x30040200,LENGTH =32k
1013
}
1114
ENTRY(Reset_Handler)
1215
_system_stack_size = 0x200;
@@ -52,6 +55,12 @@ SECTIONS
5255
__rtatcmdtab_end = .;
5356
. = ALIGN(4);
5457

58+
/* section information for modules */
59+
. = ALIGN(4);
60+
__rtmsymtab_start = .;
61+
KEEP(*(RTMSymTab))
62+
__rtmsymtab_end = .;
63+
5564
/* section information for initial. */
5665
. = ALIGN(4);
5766
__rt_init_start = .;
@@ -132,6 +141,33 @@ SECTIONS
132141
} > RAM
133142
__bss_end = .;
134143

144+
.RxDecripSection (NOLOAD) : ALIGN(4)
145+
{
146+
. = ALIGN(4);
147+
*(.RxDecripSection)
148+
*(.RxDecripSection.*)
149+
. = ALIGN(4);
150+
__RxDecripSection_free__ = .;
151+
} > RxDecripSection
152+
153+
.TxDecripSection (NOLOAD) : ALIGN(4)
154+
{
155+
. = ALIGN(4);
156+
*(.TxDecripSection)
157+
*(.TxDecripSection.*)
158+
. = ALIGN(4);
159+
__TxDecripSection_free__ = .;
160+
} > TxDecripSection
161+
162+
.RxArraySection (NOLOAD) : ALIGN(4)
163+
{
164+
. = ALIGN(4);
165+
*(.RxArraySection)
166+
*(.RxArraySection.*)
167+
. = ALIGN(4);
168+
__RxArraySection_free__ = .;
169+
} > RxArraySection
170+
135171
_end = .;
136172

137173
/* Stabs debugging sections. */

projects/art_pi_factory/board/linker_scripts/STM32H750XBHx/link.lds

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ MEMORY
77
{
88
ROM (rx) : ORIGIN =0x90000000,LENGTH =8192k
99
RAM (rw) : ORIGIN =0x24000000,LENGTH =512k
10+
RxDecripSection (rw) : ORIGIN =0x30040000,LENGTH =32k
11+
TxDecripSection (rw) : ORIGIN =0x30040060,LENGTH =32k
12+
RxArraySection (rw) : ORIGIN =0x30040200,LENGTH =32k
1013
}
1114
ENTRY(Reset_Handler)
1215
_system_stack_size = 0x200;
@@ -52,6 +55,12 @@ SECTIONS
5255
__rtatcmdtab_end = .;
5356
. = ALIGN(4);
5457

58+
/* section information for modules */
59+
. = ALIGN(4);
60+
__rtmsymtab_start = .;
61+
KEEP(*(RTMSymTab))
62+
__rtmsymtab_end = .;
63+
5564
/* section information for initial. */
5665
. = ALIGN(4);
5766
__rt_init_start = .;
@@ -132,6 +141,33 @@ SECTIONS
132141
} > RAM
133142
__bss_end = .;
134143

144+
.RxDecripSection (NOLOAD) : ALIGN(4)
145+
{
146+
. = ALIGN(4);
147+
*(.RxDecripSection)
148+
*(.RxDecripSection.*)
149+
. = ALIGN(4);
150+
__RxDecripSection_free__ = .;
151+
} > RxDecripSection
152+
153+
.TxDecripSection (NOLOAD) : ALIGN(4)
154+
{
155+
. = ALIGN(4);
156+
*(.TxDecripSection)
157+
*(.TxDecripSection.*)
158+
. = ALIGN(4);
159+
__TxDecripSection_free__ = .;
160+
} > TxDecripSection
161+
162+
.RxArraySection (NOLOAD) : ALIGN(4)
163+
{
164+
. = ALIGN(4);
165+
*(.RxArraySection)
166+
*(.RxArraySection.*)
167+
. = ALIGN(4);
168+
__RxArraySection_free__ = .;
169+
} > RxArraySection
170+
135171
_end = .;
136172

137173
/* Stabs debugging sections. */

projects/art_pi_net_player/board/linker_scripts/STM32H750XBHx/link.lds

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,11 @@
55
/* Program Entry, set to mark it as "used" and avoid gc */
66
MEMORY
77
{
8-
ROM (rx) : ORIGIN =0x90000000,LENGTH =8194k
8+
ROM (rx) : ORIGIN =0x90000000,LENGTH =8192k
99
RAM (rw) : ORIGIN =0x24000000,LENGTH =512k
10+
RxDecripSection (rw) : ORIGIN =0x30040000,LENGTH =32k
11+
TxDecripSection (rw) : ORIGIN =0x30040060,LENGTH =32k
12+
RxArraySection (rw) : ORIGIN =0x30040200,LENGTH =32k
1013
}
1114
ENTRY(Reset_Handler)
1215
_system_stack_size = 0x200;
@@ -52,6 +55,12 @@ SECTIONS
5255
__rtatcmdtab_end = .;
5356
. = ALIGN(4);
5457

58+
/* section information for modules */
59+
. = ALIGN(4);
60+
__rtmsymtab_start = .;
61+
KEEP(*(RTMSymTab))
62+
__rtmsymtab_end = .;
63+
5564
/* section information for initial. */
5665
. = ALIGN(4);
5766
__rt_init_start = .;
@@ -132,6 +141,33 @@ SECTIONS
132141
} > RAM
133142
__bss_end = .;
134143

144+
.RxDecripSection (NOLOAD) : ALIGN(4)
145+
{
146+
. = ALIGN(4);
147+
*(.RxDecripSection)
148+
*(.RxDecripSection.*)
149+
. = ALIGN(4);
150+
__RxDecripSection_free__ = .;
151+
} > RxDecripSection
152+
153+
.TxDecripSection (NOLOAD) : ALIGN(4)
154+
{
155+
. = ALIGN(4);
156+
*(.TxDecripSection)
157+
*(.TxDecripSection.*)
158+
. = ALIGN(4);
159+
__TxDecripSection_free__ = .;
160+
} > TxDecripSection
161+
162+
.RxArraySection (NOLOAD) : ALIGN(4)
163+
{
164+
. = ALIGN(4);
165+
*(.RxArraySection)
166+
*(.RxArraySection.*)
167+
. = ALIGN(4);
168+
__RxArraySection_free__ = .;
169+
} > RxArraySection
170+
135171
_end = .;
136172

137173
/* Stabs debugging sections. */

projects/art_pi_wifi/board/linker_scripts/STM32H750XBHx/link.lds

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ MEMORY
77
{
88
ROM (rx) : ORIGIN =0x90000000,LENGTH =8192k
99
RAM (rw) : ORIGIN =0x24000000,LENGTH =512k
10+
RxDecripSection (rw) : ORIGIN =0x30040000,LENGTH =32k
11+
TxDecripSection (rw) : ORIGIN =0x30040060,LENGTH =32k
12+
RxArraySection (rw) : ORIGIN =0x30040200,LENGTH =32k
1013
}
1114
ENTRY(Reset_Handler)
1215
_system_stack_size = 0x200;
@@ -52,6 +55,12 @@ SECTIONS
5255
__rtatcmdtab_end = .;
5356
. = ALIGN(4);
5457

58+
/* section information for modules */
59+
. = ALIGN(4);
60+
__rtmsymtab_start = .;
61+
KEEP(*(RTMSymTab))
62+
__rtmsymtab_end = .;
63+
5564
/* section information for initial. */
5665
. = ALIGN(4);
5766
__rt_init_start = .;
@@ -132,6 +141,33 @@ SECTIONS
132141
} > RAM
133142
__bss_end = .;
134143

144+
.RxDecripSection (NOLOAD) : ALIGN(4)
145+
{
146+
. = ALIGN(4);
147+
*(.RxDecripSection)
148+
*(.RxDecripSection.*)
149+
. = ALIGN(4);
150+
__RxDecripSection_free__ = .;
151+
} > RxDecripSection
152+
153+
.TxDecripSection (NOLOAD) : ALIGN(4)
154+
{
155+
. = ALIGN(4);
156+
*(.TxDecripSection)
157+
*(.TxDecripSection.*)
158+
. = ALIGN(4);
159+
__TxDecripSection_free__ = .;
160+
} > TxDecripSection
161+
162+
.RxArraySection (NOLOAD) : ALIGN(4)
163+
{
164+
. = ALIGN(4);
165+
*(.RxArraySection)
166+
*(.RxArraySection.*)
167+
. = ALIGN(4);
168+
__RxArraySection_free__ = .;
169+
} > RxArraySection
170+
135171
_end = .;
136172

137173
/* Stabs debugging sections. */

0 commit comments

Comments
 (0)