Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.
12748 Discussions

Error in creating the final executable

Altera_Forum
Honored Contributor II
1,123 Views

Hi, 

 

I am trying to build my output file after linking all the objs and linking it with my other .a files and the script target.ld... 

 

The linking is SUCCESS, its generating the output XXX also. But When I m trying to run/debug in NIOSII IDE using NIOS II Instruction simulator, I am getting the following error message. 

 

Fatal Error! : ELF file XXX is not an executable file (option -f<filename>) 

 

 

What might be the problem? Can anyone help? 

 

Akhil
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
410 Views

That problem I solved by masking my own makefile with Altera generated makefile. So first it will build my XXX, then it will build the ELF file. So that problem with output file format has gone. 

 

Now what I am doing is I copied the main function of my APP.. and pasted it into the sample Hello eCos World Application and edited the target.ld file with 2 more .a files of my Application and linking. So now the output format is correct. The control is coming to my main function. But when I call any function from the main function.. After 1 or 2 steps its terminating. Now the msg I am getting is  

 

[eth_drv_ioctl] Warning: Driver can&#39;t set multi-cast mode 

Thread[cyg_net_init] Init: mbinit(0x00000000) 

[cyg_net_init] Init: cyg_net_init_devs(0x00000000) 

Init device &#39;lan91c111_eth0&#39; 

[cyg_net_init] Init: loopattach(0x00000000) 

[cyg_net_init] Init: ifinit(0x00000000) 

[cyg_net_init] Init: domaininit(0x00000000) 

[cyg_net_init] Init: cyg_net_add_domain(0x010d3f20) 

New domain internet at 0x00000000 

[cyg_net_init] Init: cyg_net_add_domain(0x010d39c8) 

New domain route at 0x00000000 

[cyg_net_init] Init: call_route_init(0x00000000) 

[cyg_net_init] Done 

[eth_drv_ioctl] Warning: Driver can&#39;t set multi-cast mode 

[eth_drv_ioctl] Warning: Driver can&#39;t set multi-cast mode 

BOOTP/DHCP failed on eth0 

 

 

So again, I am kind of stucked... http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/sad.gif
0 Kudos
Reply