Skip to content

Lab-D Change linker #159

Answered by boledulab
Yanlin900414 asked this question in Q&A
Dec 2, 2023 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Refer to sections.lds; both .data and .bss are allocated in the dff region. We can relocated to mprjram. Try it out and see if the data access is from/to mprjram. Check the variables location from the assembly code, then, see if we can adjust the SDRAM controller linear mapped address to bank / row decoding.
MEMORY {
vexriscv_debug : ORIGIN = 0xf00f0000, LENGTH = 0x00000100
dff : ORIGIN = 0x00000000, LENGTH = 0x00000400
dff2 : ORIGIN = 0x00000400, LENGTH = 0x00000200
flash : ORIGIN = 0x10000000, LENGTH = 0x01000000
mprj : ORIGIN = 0x30000000, LENGTH = 0x00100000
mprjram : ORIGIN = 0x38000000, LENGTH = 0x00400000
hk : ORIGIN = 0x26000000, LENGTH = 0x00100000
CSR : ORIGIN = 0xf0000000, LENG…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Yanlin900414
Comment options

Answer selected by Yanlin900414
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants