Skip to content

Commit 1aa78d1

Browse files
authored
Merge pull request #6326 from M-ichae-l/rtl8195am-gpio-toggle-slow-fix
rtl8195am : fix gpio toggle slow
2 parents 59c4600 + 44ed2c8 commit 1aa78d1

File tree

2 files changed

+25
-16
lines changed
  • targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device

2 files changed

+25
-16
lines changed

targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_ARM_STD/rtl8195a.sct

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,21 +18,29 @@ LR_IRAM 0x10007000 (0x70000 - 0x7000) {
1818
}
1919

2020
ER_IRAM +0 FIXED {
21+
*(.ARM.exidx)
22+
*(.init_array)
2123
*rtl8195a_crypto*.o (+RO)
2224
*(i.mbedtls*)
2325
*libc.a (+RO)
2426
*rtx_*.o (+RO)
27+
*main*.o (+RO)
28+
*lib_peripheral_mbed_arm.ar (+RO)
29+
*_api*.o (+RO)
2530
}
2631

2732
RW_IRAM1 +0 UNINIT FIXED {
2833
*rtl8195a_crypto*.o(+RW)
2934
*libc.a (+RW)
30-
*(.sdram.data*)
35+
*main*.o (+RW)
3136
*lib_peripheral_mbed_arm.ar (+RW)
32-
*rtl8195a_crypto*.o(+ZI, COMMON)
33-
*libc.a (+ZI, COMMON)
34-
*(.bss.thread_stack_main)
35-
*lib_peripheral_mbed_arm.ar (+ZI, COMMON)
37+
*_api*.o (+RW)
38+
*rtl8195a_crypto*.o(+ZI)
39+
*libc.a (+ZI)
40+
*main*.o (+ZI)
41+
*lib_peripheral_mbed_arm.ar (+ZI)
42+
*_api*.o (+ZI)
43+
*mbed_boot*.o (+ZI)
3644
}
3745

3846
ARM_LIB_STACK (0x10070000 - 0x1000) EMPTY 0x1000 {
@@ -41,8 +49,8 @@ LR_IRAM 0x10007000 (0x70000 - 0x7000) {
4149

4250
LR_TCM 0x1FFF0000 0x10000 {
4351
TCM_OVERLAY 0x1FFF0000 0x10000 {
44-
*lwip_mem*.o(.bss*)
45-
*lwip_memp*.o(.bss*)
52+
*lwip_mem*.o(+ZI)
53+
*lwip_memp*.o(+ZI)
4654
*.o(.tcm.heap*)
4755
}
4856
}

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

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,18 +67,17 @@ SECTIONS
6767
.text.sram1 :
6868
{
6969
. = ALIGN(4);
70-
*rtl8195a_crypto.o (.text* .rodata*)
70+
*rtl8195a_crypto*.o (.text* .rodata*)
7171
*mbedtls*.o (.text* .rodata*)
7272
*libc.a: (.text* .rodata*)
73+
*lib_peripheral_mbed_gcc.a: (.text* .rodata*)
74+
*_api*.o (.text* .rodata*)
75+
*main*.o (.text* .rodata*)
7376
} > SRAM1
7477

7578
.text.sram2 :
7679
{
7780
. = ALIGN(4);
78-
*(.mon.ram.text*)
79-
*(.hal.flash.text*)
80-
*(.hal.sdrc.text*)
81-
*(.hal.gpio.text*)
8281
*(.text*)
8382

8483
KEEP(*(.init))
@@ -165,9 +164,11 @@ SECTIONS
165164
.bss.sram1 (NOLOAD) :
166165
{
167166
__bss_sram_start__ = .;
168-
*rtl8195a_crypto.o (.bss* COMMON)
167+
*rtl8195a_crypto*.o (.bss* COMMON)
169168
*mbedtls*.o (.bss* COMMON)
170169
*(.bss.thread_stack_main)
170+
*lib_peripheral_mbed_gcc.a: (.bss* COMMON)
171+
*mbed_boot*.o (.bss* COMMON)
171172
__bss_sram_end__ = .;
172173
} > SRAM1
173174

@@ -198,11 +199,11 @@ SECTIONS
198199
__HeapLimit = .;
199200
} > SRAM1
200201

201-
.TCM_overlay :
202+
.TCM_overlay (NOLOAD):
202203
{
203204
__bss_dtcm_start__ = .;
204-
*lwip_mem.o (.bss*)
205-
*lwip_memp.o (.bss*)
205+
*lwip_mem*.o (.bss* COMMON)
206+
*lwip_memp*.o (.bss* COMMON)
206207
*(.tcm.heap*)
207208
__bss_dtcm_end__ = .;
208209
} > TCM

0 commit comments

Comments
 (0)