Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
11 years ago

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

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?

2 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    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.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- 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?