We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 63860

14.x EDK - Data2mem output bitstream is not correct


When updating from an older version of the tools to 14.x, data2mem does not produce a correct bitstream. 

When using the same ELF from the older version of the tools in 14.x, there might be unwanted data where the application resides. 

When trying to run the application the processor might throw an exception or not execute.

How can I fix this?


The attached Tcl script will convert an ELF file to a MEM file, removes the unwanted data and creates a dump of the bitstream. 

The MEM file can be used with data2mem instead of the ELF.

From a Tcl shell (xtclsh), do the following:

  1. source commands.tcl
  2. Run "elf2mem <elf_name>.elf 0x<valid_start_data>"
  3. Run "data2mem_command edkBmmFile_bd.bmm <memfile_name>.mem download.bit"


Associated Attachments

Name File Size File Type
commands.zip 780 Bytes ZIP
AR# 63860
Date 03/13/2015
Status Active
Type General Article
  • FPGA Device Families
  • EDK - 14
  • EDK - 12
  • PowerPC 440
Boards & Kits
  • Virtex-5 Boards
Page Bookmarked