Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
20688 Discussions

Nios2 "Hello World" Tutorial

Altera_Forum
Honored Contributor II
1,342 Views

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.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
418 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
418 Views

 

--- Quote Start ---  

specifying the ptf generated by SOPC bulilder to IDE 

--- Quote End ---  

 

 

Can you tell me how to do this? Thanks.
0 Kudos
Altera_Forum
Honored Contributor II
418 Views

+1 Would like to know the answer to this too :)

0 Kudos
Altera_Forum
Honored Contributor II
417 Views

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.
0 Kudos
Reply