I have a Vivado design with two Block Diagrams (BD)s that contain MCS, or MicroBlaze.
However, I cannot associate my ELF file.
How can this be achieved?
First, add the ELF files to your Vivado project.
Then to associate the ELF, right click on the opposite BD and select Disable File, then associate the ELF file and then re-enable the file again.
Do this in reverse for the other BD file.
Alternatively, you can do this manually via the TCL command line using the SCOPED_TO_CELLS (STC), and SCOPED_TO_REF (STR) properties.
The STC property points to the MicroBlaze/MCS cell.
The STR points to the module that contains the processor cell.
For example, This is for a simple dual BD design, where each BD contains a MicroBlaze:
set_property SCOPED_TO_CELLS {microblaze_0} [get_files exceutable_0.elf]
set_property SCOPED_TO_REF mb_0 [get_files exceutable_0.elf]
set_property SCOPED_TO_CELLS {microblaze_0} [get_files exceutable_1.elf]
set_property SCOPED_TO_REF mb_1 [get_files exceutable_1.elf]