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++
12652 Discussions

Managing 2 .elf files and 1 .sof file to download on board

Altera_Forum
Honored Contributor II
1,168 Views

Hi, 

For "UDP Offload example", I have 2 .elf files (1 for Nichestack TCP/IP and 1 for App Programming like setting Base addresses of components) and 1 .sof file. 

My question is: 

1. How to download all of them on the board permanently like .pof file? 

one way I know is: 

http://www.altera.com/support/kdb/solutions/rd04112006_450.html 

I am hesitating because of 2 .elf files instead of just 1 and manage relative addressing for both .elf file. 

OR 

just combine 1 .elf file to .sof as: 

http://www.alteraforum.com/forum/showthread.php?t=5633 

 

Is this the right way to manage these 3 files? or is there another way to program the board? 

 

2. Is there any way to combine 2 .elf file together?
0 Kudos
2 Replies
Altera_Forum
Honored Contributor II
475 Views

You need to create single software project containing your application and Nichestack. Otherwise you have two compiled programs, that do not interact with each other.

0 Kudos
Altera_Forum
Honored Contributor II
475 Views

 

--- Quote Start ---  

You need to create single software project containing your application and Nichestack.  

--- Quote End ---  

 

 

Hi linas, 

When I created single software project containing application and Nichestack, application program is not working anymore. 

I just put this application program into a function instead of main() and define a header file for it and include this header file both in application program and iniche_init.c file. 

what's wrong here?
0 Kudos
Reply