Skip to content

Commit c8e0e75

Browse files
Archcadyadbridge
authored andcommitted
Move ticker related text to SRAM to fix GCC mbed-os-tests-mbed_drivers-timeout failing issue
1 parent 3ea3b2d commit c8e0e75

File tree

1 file changed

+14
-3
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_GCC_ARM

1 file changed

+14
-3
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_GCC_ARM/rtl8195a.ld

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,15 @@ SECTIONS
7070
*rtl8195a_crypto.o (.text* .rodata*)
7171
*mbedtls*.o (.text* .rodata*)
7272
*libc.a: (.text* .rodata*)
73+
*Ticker.o (.text*)
74+
*Timeout.o (.text*)
75+
*TimerEvent.o (.text*)
76+
*mbed_ticker_api.o (.text*)
77+
*mbed_critical.o (.text*)
78+
79+
*us_ticker.o (.text*)
80+
*lib_peripheral_mbed_gcc.a: (.text*)
81+
7382
} > SRAM1
7483

7584
.text.sram2 :
@@ -109,17 +118,18 @@ SECTIONS
109118
.data.sram1 :
110119
{
111120
. = ALIGN(4);
112-
__sdram_data_start__ = .;
121+
__sram_data_start__ = .;
113122
*rtl8195a_crypto*.o (.data*)
114123
*mbedtls*.o (.data*)
115-
*(.sdram.data*)
116-
__sdram_data_end__ = .;
124+
__sram_data_end__ = .;
117125
} > SRAM1
118126

119127
.data.sram2 :
120128
{
129+
__sdram_data_start__ = .;
121130
*(vtable)
122131
*(.data*)
132+
*(.sdram.data*)
123133

124134
. = ALIGN(4);
125135
/* preinit data */
@@ -143,6 +153,7 @@ SECTIONS
143153

144154
. = ALIGN(4);
145155

156+
__sdram_data_end__ = .;
146157
/* All data end */
147158
} > SRAM2
148159
__data_end__ = .;

0 commit comments

Comments
 (0)