Forum Discussion

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

Nios2 "Hello World" Tutorial

Hi,

I just bought a DE2 board and installed the software it came with. However, when I follow the tutorial to make a "Hello World" program using the Nios2 IDE I get an error message saying that the .elf file was not generated. I have made sure that I am following the tutorial steps exactly but I always get the same error.

Any advice is appreciated.

4 Replies

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

    Hi

    elf file will be generated by the NIOS-II ide

    specifying the ptf generated by SOPC bulilder to IDE

    and compile the c-code

    This should generate the elf file needed

    regards

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

    --- Quote Start ---

    specifying the ptf generated by SOPC bulilder to IDE

    --- Quote End ---

    Can you tell me how to do this? Thanks.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    I'm also using a DE2 board and I came across two problems when I was following the "Hello World" tutorial:

    1) My PC has Windows 7 installed, so every time I use the "Nios 2 Software Build Tools for Eclipse" I must open it by right clicking it's icon and selecting "run as administrator".

    2) Last time I checked this tutorial, It advised to allocate only 20KB of internal SRAM memory for the Nios 2 processor. However, the "Hello World Application from template" requires more memory than that! So I had to switch to the "Hello World Small Application from template" to make it work.

    I don't know if this applies to you, but it is worth the shot.

    Thomas.