Forum Discussion

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

Eclipse example program problems: run & debug

Hi I have been programming Altera fpgas as hardware devices for many years. I have recently successfully created and run a fairly large c program in a NiosII processor using the Altera Monitor program. Now I want to use makefiles etc., as I am used to doing by scripting, but I am not used to IDEs.

I have tried two of the simple example Hello World programs in the Eclipse IDE that comes with Quartus II 11.1sp2.

The examples appear to build and compile OK, but if run I see no output in the console window, if I try debug I get an error message. I am running as administrator. In more detail :

I have tried :

Creating a simple application - this is Hello_World

Creating a Makefile project - this is HelloWorld :

https://www.alteraforum.com/forum/attachment.php?attachmentid=5775

When I try "run configurations" I see :

https://www.alteraforum.com/forum/attachment.php?attachmentid=5776

If I then click on [run], in the console window I see a brief message from make (nothing to do), but no "hello world" message :

https://www.alteraforum.com/forum/attachment.php?attachmentid=5777

If I try "debug configurations I see :

https://www.alteraforum.com/forum/attachment.php?attachmentid=5778

and if I click on [debug] I see the message from make in the console window :

**** Build of configuration Default for project HelloWorld ****

make all

make: Nothing to be done for `all'.

and an error message pops up :

https://www.alteraforum.com/forum/attachment.php?attachmentid=5780

I have checked for the debugger - exists in both the cygwin and mingw32 bin directories :

D:\altera\11.1sp2\quartus\bin\cygwin\bin

D:\altera\11.1sp2\nios2eds\bin\gnu\H-i686-mingw32\bin

Does anyone have any ideas ?

cheers, Beau Webber

4 Replies

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

    I have just tried the Cygwin scripting approach :

    Both the executables created by the Eclipse IDE tool run fine,

    so still no idea as to what the problems in the IDE are .....
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I am not doing well today - I have tried building a NiosII hello world example - build seemed to go OK.

    I used a DE1 board and DE1 Media NiosII processor that I had just used successfully with the monitor progam. .sof seemed to upload fine :

    https://www.alteraforum.com/forum/attachment.php?attachmentid=5782

    But when I tried to upload and run the nios hello world program, it said :

    [Target Connection]: No Nios II target connection paths were located. Check connections and that a Nios II .sof is downloaded.

    https://www.alteraforum.com/forum/attachment.php?attachmentid=5783
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I have found a number of suggested fixes on the Eclipse site, but none yet have helped.

    However I have also found links that suggest that the problem is the fact that I am working on a Windows 7 64 bit system.

    A fix is suggested at :

    https: //bugs.eclipse.org/bugs/show_bug.cgi?id=236330

    Can anyone tell me how I install the patch or upgrade ?

    The Quartus II kit installs :

    Eclipse IDE for C/C++ Developers

    Version: Helios Service Release 2

    Build id: 20110301-1815
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Regarding the problem I appear to be having with the various parts of the Altera Eclipse installation not talking to each other.

    I appear to have exhausted the help available on the Eclipse site.

    The consensus seems to be that the Eclipse version that Altera use (Helios) does not and is unlikely to ever work on my Windows 7 64 bit computer.

    Does anyone know if Altera are likely to upgrade their Eclipse package to a newer version of Eclipse ?