I'm attempting to integrate my CMOD S7 module with the PMOD Micro SD module. The block design validates, the hardware exports, and it seems that my code compiles, but once I get to the linker, I always get the following error message:
'Building target: SD_MicroBlaze.elf'
'Invoking: MicroBlaze g++ linker'
mb-g++ -Wl,-T -Wl,../src/lscript.ld -L../../SD_MicroBlaze_bsp/microblaze_0/lib -mlittle-endian -mcpu=v11.0 -mxl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "SD_MicroBlaze.elf" ./src/main.o -Wl,--start-group,-lxil,-lgcc,-lc,-lstdc++,--end-group
c:/xilinx/sdk/2019.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/8.2.0/../../../../microblaze-xilinx-elf/bin/ld.exe: SD_MicroBlaze.elf section `.text' will not fit in region `microblaze_0_local_memory_ilmb_bram_if_cntlr_Mem_microblaze_0_local_memory_dlmb_bram_if_cntlr_Mem'
c:/xilinx/sdk/2019.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/8.2.0/../../../../microblaze-xilinx-elf/bin/ld.exe: region `microblaze_0_local_memory_ilmb_bram_if_cntlr_Mem_microblaze_0_local_memory_dlmb_bram_if_cntlr_Mem' overflowed by 160720 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:50: SD_MicroBlaze.elf] Error 1
I investigated and found that the code compiles when I remove the following line from the code:
Increasing the local memory size for the MicroBlaze core in my block design doesn't seem to help. Is this an issue that can be solved in the SDK application or MicroBlaze configuration?
Question
BTaylor
Hello,
I'm attempting to integrate my CMOD S7 module with the PMOD Micro SD module. The block design validates, the hardware exports, and it seems that my code compiles, but once I get to the linker, I always get the following error message:
'Building target: SD_MicroBlaze.elf'
'Invoking: MicroBlaze g++ linker'
mb-g++ -Wl,-T -Wl,../src/lscript.ld -L../../SD_MicroBlaze_bsp/microblaze_0/lib -mlittle-endian -mcpu=v11.0 -mxl-soft-mul -Wl,--no-relax -Wl,--gc-sections -o "SD_MicroBlaze.elf" ./src/main.o -Wl,--start-group,-lxil,-lgcc,-lc,-lstdc++,--end-group
c:/xilinx/sdk/2019.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/8.2.0/../../../../microblaze-xilinx-elf/bin/ld.exe: SD_MicroBlaze.elf section `.text' will not fit in region `microblaze_0_local_memory_ilmb_bram_if_cntlr_Mem_microblaze_0_local_memory_dlmb_bram_if_cntlr_Mem'
c:/xilinx/sdk/2019.1/gnu/microblaze/nt/bin/../lib/gcc/microblaze-xilinx-elf/8.2.0/../../../../microblaze-xilinx-elf/bin/ld.exe: region `microblaze_0_local_memory_ilmb_bram_if_cntlr_Mem_microblaze_0_local_memory_dlmb_bram_if_cntlr_Mem' overflowed by 160720 bytes
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:50: SD_MicroBlaze.elf] Error 1
I investigated and found that the code compiles when I remove the following line from the code:
DXSPISDVOL disk(XPAR_PMODSD_0_AXI_LITE_SPI_BASEADDR,
XPAR_PMODSD_0_AXI_LITE_SDCS_BASEADDR);
Increasing the local memory size for the MicroBlaze core in my block design doesn't seem to help. Is this an issue that can be solved in the SDK application or MicroBlaze configuration?
Thanks!
Link to comment
Share on other sites
0 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now