Lab-D Change linker #159
-
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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.
|
Beta Was this translation helpful? Give feedback.
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…