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!

Page Bookmarked

AR# 45834

13.3 SDK - Unexpected error while launching program - ELF Verify Error


When I download my application (.elf) into DDR3 external memory in SDK, I get an error shown below. This error occurs only when I run [Run As] > [Launch on Hardware]. When I run [Debug As] > [Launch on Hardware], there is no problem.

17:17:50 ERROR : Unexpected error while launching program. java.lang.RuntimeException: ERROR: Elf Verify failed at Address:
at com.xilinx.sdk.targetmanager.internal.TM.verifyELF(Unknown Source)
at com.xilinx.sdk.debug.core.internal.AppRunner.run(Unknown Source)


There is a known issue in the XMD related to ELF parsing. This ELF verify error could be because of the ELF parsing issue.
You have some alternative solutions for this.

Solution 1:
Use [Debug As] > [Launch on Hardware] so that the XMD is not directly used to download the ELF.
In "Debug As", GDB is used to load the ELF file rather than the XMD.

Solution 2:
Check your linker script. If the memory sections are not defined in your script, add the memory definitions and map all sections into the memory.


ilmb_cntlr_dlmb_cntlr : ORIGIN = 0x00000050, LENGTH = 0x00001FB0
FLASH_MEM0_BASEADDR : ORIGIN = 0x86000000, LENGTH = 0x02000000
DDR3_SDRAM_MPMC_BASEADDR : ORIGIN = 0x50000000, LENGTH = 0x10000000

.<section name> : {



Solution 3:
Check the address mapping of .vector and .text section. If they are mapped into the same memory and there is some gap between the start address of .text and the end of .vector, you should assign the start address of .text right after .vector.

AR# 45834
Date 01/17/2012
Status Active
Type General Article
  • EDK - 12.4
  • EDK - 13.1
  • EDK - 13.2
  • EDK - 13.3