-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable sdram usage of REALTEK_RTL8195AM #4665
Merged
Merged
Changes from 12 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
2864e4b
enable sdram usage of REALTEK_RTL8195AM
Archcady 3773993
rtl8195am - rename GCC_ARM linker script
tung7970 c9ecb27
rtl8195am - adjust memory layout and enable fota support
tung7970 2654d2c
Switch off DBG messages
Archcady d1c8734
Fix ARMCC & IAR compile errors
Archcady 35d7ca2
rtl8195am - fix ARMCC SRAM + SDRAM porting
tung7970 49a7e4b
Fix GCC compile errors
Archcady 1d06bf4
Disambiguate function __memset() in rtl8195a_init.c
Archcady 56a98e1
Move ticker related text to SRAM to fix GCC mbed-os-tests-mbed_driver…
Archcady e16c2d2
Add RTW8195AM support for mbed client with ARMCC
Archcady 1e398cf
Add RTL8195AM support for mbed client with IAR
Archcady c530be0
Fix stack underflow issue
Archcady a0064ae
Remove extension in cmd
Archcady c834b7f
Fix bugs for RTL8195AM with debug profile of compilers
Archcady 67f1ee5
Resolve including directory issue in GCC linker script for Ameba
Archcady File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Binary file modified
BIN
-104 Bytes
(100%)
..._Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_ARM_STD/lib_peripheral_mbed_arm.ar
Binary file not shown.
107 changes: 67 additions & 40 deletions
107
targets/TARGET_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_ARM_STD/rtl8195a.sct
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,78 @@ | ||
; ************************************************************* | ||
; *** Scatter-Loading Description File for RTL8195A *** | ||
; ************************************************************* | ||
LR_ROM 0x00000000 0x00030000{ | ||
_ROM_CODE 0x00000000 0x00030000 { | ||
;*.o (RESET, +First) | ||
;*(InRoot$$Sections) | ||
} | ||
} | ||
; Realtek Semiconductor Corp. | ||
; | ||
; RTL8195A ARMCC Scatter File | ||
; | ||
; MEMORY | ||
; { | ||
; SROM (rx) : ORIGIN = 0x10000000, LENGTH = 0x00007000 | ||
; SRAM (rwx) : ORIGIN = 0x10007000, LENGTH = 0x00070000 - 0x00007000 | ||
; TCM (rwx) : ORIGIN = 0x1FFF0000, LENGTH = 0x00010000 | ||
; DRAM (rwx) : ORIGIN = 0x30000000, LENGTH = 2M | ||
; } | ||
|
||
LR_RAM 0x10006000 0x6FFFF { | ||
;LR_RAM 0x10000000 0x6FFFF { | ||
;ROM_BSS 0x10000000 0x0005FFF{ | ||
;rtl_console.o(.mon.ram.bss*) | ||
;} | ||
|
||
.image2.table 0x10006000 FIXED { | ||
rtl8195a_init.o(.image2.ram.data*) | ||
rtl8195a_init.o(.image2.validate.rodata*) | ||
} | ||
|
||
.text +0 FIXED{ | ||
rtl8195a_init.o(.infra.ram.start) | ||
;*.o(.mon.ram.text*) | ||
;*.o(.hal.flash.text*) | ||
;*.o(.hal.sdrc.text*) | ||
;*.o(.hal.gpio.text*) | ||
;*.o(.text*) | ||
;*.o(.rodata*) | ||
.ANY (+RO) | ||
LR_IRAM 0x10007000 (0x70000 - 0x7000) { | ||
|
||
IMAGE2_TABLE 0x10007000 FIXED { | ||
*rtl8195a_init.o(.image2.ram.data*, +FIRST) | ||
*rtl8195a_init.o(.image2.validate.rodata*) | ||
} | ||
|
||
.data +0 FIXED{ | ||
.ANY (+RW) | ||
ER_IRAM +0 FIXED { | ||
*rtl8195a_crypto.o (+RO) | ||
* (i.mbedtls*) | ||
*libc.a (+RO) | ||
|
||
*rtx_*.o (+RO) | ||
*Ticker.o (+RO) | ||
*Timeout.o (+RO) | ||
*rtx_timer.o (+RO) | ||
*TimerEvent.o (+RO) | ||
*mbed_ticker_api.o (+RO) | ||
*mbed_critical.o (+RO) | ||
*us_ticker.o (+RO) | ||
|
||
*lib_peripheral_mbed_arm.ar (+RO) | ||
} | ||
|
||
RW_IRAM1 +0 UNINIT FIXED { | ||
.ANY (+ZI) | ||
*rtl8195a_crypto.o(+RW) | ||
;*mbedtls*.o(+RW) | ||
*libc.a (+RW) | ||
*(.sdram.data*) | ||
*lib_peripheral_mbed_arm.ar (+RW) | ||
} | ||
|
||
TCM_OVERLAY 0x1FFF0000 0x10000{ | ||
lwip_mem.o(.bss*) | ||
lwip_memp.o(.bss*) | ||
*.o(.tcm.heap*) | ||
RW_IRAM2 +0 UNINIT FIXED { | ||
*rtl8195a_crypto.o(+ZI, COMMON) | ||
;*mbedtls*.o(+ZI, COMMON) | ||
*libc.a (+ZI, COMMON) | ||
*(.bss.thread_stack_main) | ||
*lib_peripheral_mbed_arm.ar (+ZI, COMMON) | ||
} | ||
|
||
ARM_LIB_STACK (0x10070000 - 0x1000) EMPTY 0x1000 { | ||
} | ||
} | ||
|
||
LR_TCM 0x1FFF0000 0x10000 { | ||
TCM_OVERLAY 0x1FFF0000 0x10000 { | ||
lwip_mem.o(.bss*) | ||
lwip_memp.o(.bss*) | ||
*.o(.tcm.heap*) | ||
} | ||
} | ||
|
||
LR_DRAM 0x30000000 0x1FFFFF{ | ||
_DRAM_CODE 0x30000000 0x1FFFFF{ | ||
} | ||
} | ||
LR_DRAM 0x30000000 0x200000 { | ||
|
||
ER_DRAM +0 FIXED { | ||
.ANY (+RO) | ||
} | ||
|
||
RW_DRAM1 +0 UNINIT FIXED { | ||
.ANY (+RW) | ||
} | ||
|
||
RW_DRAM2 +0 UNINIT FIXED { | ||
.ANY (+ZI) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-444 Bytes
(100%)
...T_Realtek/TARGET_AMEBA/TARGET_RTL8195A/device/TOOLCHAIN_GCC_ARM/lib_peripheral_mbed_gcc.a
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how are these object files selected? looks to me that almost all ticker based object files are specified here. A reason (I cant locate anyting in the commit message neither here in the implementation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We find mbed is very sensitive to timing drift, so we put ticker related code to SRAM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Archcady Can you add those explanation to your commit messages ?