Forum Discussion

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

eCos and Instruction Set Simulator

I investigate if eCos on Nios could answer my needs.

However, I do my tests at home, where I haven't any hardware.

Is it possible to make a small application and to run it on the Instruction Set Simulator ?

When I try "Run as...", I get :

| An internal error occurred during: "Launching".

| java.lang.NullPointerException

| ...

| org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

Thanks,

-- Fred

4 Replies

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

    Hi,

    I also need to test eCos on Nios and have no hardware. So I need to run it as Simulation.

    Find below what I did so far.

    I followed the tutorial which comes with eCOS installation and

    Step 1

    ======

    I created the eCos library and then I built it successfully

    Step 2

    ======

    I built the application from SDK shell with

    make INSTALL_DIR=/cygdrive/e/altera/eCOS/test00_install

    It produces some warning related to some command line options valid for C++ only, not for C.

    Anyway it seems to work.

    Step 3

    ======

    Run IDE

    File-> New->Project

    Select: Alera NiosII->Advanced C/C++ Project, => Next

    Name= ecos_hello

    unselect 'UseDefaultLocation' checkbox

    Location= E:\altera\eCOS => Next

    select 'Make Builder' tab

    unselect 'use default',

    Build command= make INSTALL_DIR=/cygdrive/e/altera/eCOS/test00_install

    => Finish

    I select 'ecos_hello' project

    Project->Build Project

    Console msg:

    "make INSTALL_DIR=/cygdrive/e/altera/eCOS/prova00_install all

    make: *** No rule to make target `all'. Stop."

    http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/mad.gif

    Or should I skip the build process?

    Thanx.

    --- Quote Start ---

    originally posted by frd66@Jun 6 2006, 10:28 PM

    i investigate if ecos on nios could answer my needs.

    however, i do my tests at home, where i haven&#39;t any hardware.

    is it possible to make a small application and to run it on the instruction set simulator ?

    when i try "run as...", i get :

    | an internal error occurred during: "launching".

    | java.lang.nullpointerexception

    | ...

    | org.eclipse.core.internal.jobs.worker.run(worker.java:66)

    thanks,

    -- fred

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15976)

    --- quote end ---

    --- Quote End ---

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

    Sorry, I forgot to say that I&#39;m using IDE version 5.1.

    Do the examples provided with the package run as simulation (inside IDE, when there&#39;s no hardware)??????????????

    Thanx.

    --- Quote Start ---

    originally posted by a_fischetti+jun 9 2006, 12:43 pm--><div class='quotetop'>quote (a_fischetti @ jun 9 2006, 12:43 pm)</div>

    --- quote start ---

    hi,

    i also need to test ecos on nios and have no hardware. so i need to run it as simulation.

    find below what i did so far.

    i followed the tutorial which comes with ecos installation and

    step 1

    ======

    ...

    <!--quotebegin-frd66@Jun 6 2006, 10:28 PM

    i investigate if ecos on nios could answer my needs.

    however, i do my tests at home, where i haven&#39;t any hardware.

    is it possible to make a small application and to run it on the instruction set simulator ?

    when i try "run as...", i get :

    | an internal error occurred during: "launching".

    | java.lang.nullpointerexception

    | ...

    | org.eclipse.core.internal.jobs.worker.run(worker.java:66)

    thanks,

    -- fred

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15976)

    --- quote end ---

    --- Quote End ---

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16060)</div>

    [/b]

    --- Quote End ---

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

    --- Quote Start ---

    originally posted by a_fischetti@Jun 9 2006, 06:43 AM

    hi,

    i also need to test ecos on nios and have no hardware. so i need to run it as simulation.

    find below what i did so far.

    i followed the tutorial which comes with ecos installation and

    step 1

    ======

    i created the ecos library and then i built it successfully

    step 2

    ======

    i built the application from sdk shell with

    make install_dir=/cygdrive/e/altera/ecos/test00_install

    it produces some warning related to some command line options valid for c++ only, not for c.

    anyway it seems to work.

    step 3

    ======

    run ide

    file-> new->project

    select: alera niosii->advanced c/c++ project, => next

    name= ecos_hello

    unselect &#39;usedefaultlocation&#39; checkbox

    location= e:\altera\ecos => next

    select &#39;make builder&#39; tab

    unselect &#39;use default&#39;,

    build command= make install_dir=/cygdrive/e/altera/ecos/test00_install

    => finish

    i select &#39;ecos_hello&#39; project

    project->build project

    console msg:

    "make install_dir=/cygdrive/e/altera/ecos/prova00_install all

    make: *** no rule to make target `all&#39;. stop."

    http://forum.niosforum.com/work2/style_emoticons/<#emo_dir#>/mad.gif

    or should i skip the build process?

    thanx.

    --- quote start ---

    originally posted by frd66@jun 6 2006, 10:28 pm

    I investigate if eCos on Nios could answer my needs.

    However, I do my tests at home, where I haven&#39;t any hardware.

    Is it possible to make a small application and to run it on the Instruction Set Simulator ?

    When I try "Run as...", I get :

    | An internal error occurred during: "Launching".

    | java.lang.NullPointerException

    | ...

    | org.eclipse.core.internal.jobs.Worker.run(Worker.java:66)

    Thanks,

    -- Fred

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=15976)

    --- Quote End ---

    [/b]

    --- Quote End ---

    <div align='right'><{post_snapback}> (index.php?act=findpost&pid=16060)</div>

    [/b]

    --- Quote End ---

    I&#39;m afraid you&#39;re skiing off piste, the eCos port was only ever run and tested on real hardware. I&#39;m afraid you&#39;re the first to try it in the simulator, so I won&#39;t at all be surprised if you run into problems. I suspect by far the path of least resistance would be to get a board.