02-07-2018 04:06 AM
I am trying to create a design in Saturn V3 Development board with Spartan6 LX45. The design is composed of one Microblaze and several VDHL cores. Design is done though ISE Design Suite 14.7
To load program in Saturn flash for configuration after reset, I am having troubles to merge .elf and .bin into the same bitstream with data2mem tool.
I have configured linker script to point all sections to LPDDR memory, but when I try to merge files with data2mem tool, i get this error:
ERROR:Data2MEM:33 - Matching ADDRESS_SPACE for code segment #1 not found in 'edkBmmFile_bd.bmm'.
Code segment #1 occupies [0xA4000000:0xA402693B].
This is the first I try to load bitstream in Flash memory so up to this moment, I havent had to "fight" with linker script because the one created automatically by SDK was ok.
I was reading possible solutions to solve ERROR 33, for example, point all sections to BRAM instead of DDR, but if I do that, what i get is the following:
region `microblaze_0_i_bram_ctrl_microblaze_0_d_bram_ctrl' overflowed by 133756 bytes
So it seems there is not enough space in Block ram to save code during initial configuration.
So my question is, what do I have to do to allow pointing linker scritps sections to DDR memory avoiding this error in data2mem tool? What do I have to change to allow save data in DDR during initial configuration from flash? It seems Changing linker script to point sections to block ram is not possible because of the size. So I understand that I have to point all sections to DDR memory, and change something in .bmm file, but what??? Maybe I am wrong and the changes must be done in other file.
Sorry because it is the first time I do this, and it is being complicated to understand what is wrong.
Attached you cand find my .bmm file and the .elf file.
Any help is really appreciated.
As extra information I attach sections size obtained in SDK log:
mb-size HAS2_SaturnVersion.elf |tee "HAS2_SaturnVersion.elf.size"
text data bss dec hex filename
158028 1736 803172 962936 eb178 HAS2_SaturnVersion.elf
02-07-2018 08:12 AM
02-07-2018 08:12 AM
02-08-2018 12:54 AM
Many thanks for your answer Stephen.
It is enough for me to continue investigating about the usage of a bootloader (new for me).