Forum Discussion

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

Nios SBT in ver10.0

Ok been trying out the new 10.0 stuff

Yay on one thing: Finally GCC4.

Anyway after going through and modifying patches to BSP stuff and fixing up some of the warnings that are now picked up with GCC4 I went to try and do a Nios Debug session in SBT's.. And what a surprise.. Its broken.. again....

Can import the project...

Build it..

But the debug configuration is broken.

ie select debug as

Create a new Nios II Hardware config..

But Hmm nothing in the project Name drop down..

Hence can't select the elf file in the following drop down.. (both blank)

great..

Tried doing it manually via the browse for system elf file

( but i believe this is only for when the bsp system stuff was seperate?? )

Anyway this then bought up the correct elf info, and I could get the correct system id info out of the JTAG link..

Hit Debug.. And well you get an error ..

Launch aborted .... project name not specified..

Hmm

Tried to manually alter the launch file down the workspace path.. but no luck sofar with that either..

Anyone else had any luck with this sofar...

And yes I've tried importing one of alteras own examples.. same problem.

I can't believe that this has been released in this state..

9 Replies

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

    Hmmm.... I wonder if they have picked up any of my fixes to gcc in the gcc4 build.

    No sign of the gcc source archive yet,
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I downloaded it and tried it. I am running 32bit vista home premium. I downloaded the quartus and Nios2 SBT. I tried to run Quartus II Web Edition. It could not find the .exe. Then I tried to run the NIOS2 SBT. No window ever came up. I was/am running v 9.1. I am at a bit of a loss...

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

    I disabled my AVG and that seems to work. much thanks!

    The SBT comes up now. The interesting thing is now when I try to run or debug my application on my board, I get:

    nios2-download: error: wrapper script can only download one file at a time

    works fine on 9.1..... :(

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

    Trying to debug this problem. I looked at the log file and see:

    !ENTRY com.altera.sbtgui.launch 2 0 2010-07-14 13:52:42.311

    !MESSAGE The expected Stdout device name does not match the selected target byte stream device name.

    !ENTRY com.altera.sbtgui.launch 1 0 2010-07-14 13:52:48.935

    !MESSAGE Executing: [C:\Windows\system32\cmd.exe, /C, C:/altera/10.0/quartus\bin\c

    ygwin\bin\bash.exe, -c, nios2-download '--cable=USB-Blaster on localhost [USB-0]' --device=1 --instance=0 --accept-bad-sysid --sidp=Not Found /cygdrive/d/NeuralogSourceCode/2010/CIIScan/software/NLaserCyclone2Lexmark/NLaserCyclone2Lexmark.elf]

    !ENTRY com.altera.sbtgui.launch 4 0 2010-07-14 13:52:51.294

    !MESSAGE Failed Executing: [nios2-download, '--cable=USB-Blaster on localhost [USB-0]', --device=1, --instance=0, --accept-bad-sysid, --sidp=Not Found, /cygdrive/d/NeuralogSourceCode/2010/CIIScan/software/NLaserCyclone2Lexmark/NLaserCyclone2Lexmark.elf] return code: 16

    !ENTRY com.altera.sbtgui.launch 4 0 2010-07-14 13:52:51.294

    !MESSAGE Downloading ELF Process failed

    Not very informative to me, but maybe someone else can give me a hint.

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

    OK

    I tried some other stuff today and tried to create a test NIOS SBT App from a template..

    This seemed to go ok, and violla there was a debug using nios hardware link available..

    So I went a looked at the project properties and some aditional sections were now available regarding Nios II Application Properties.

    So I went at did a diff on the .project files and noted the following differences between the imported Custom Makefile Project and the one I created as a new one via the Nios II App and bsp from template..

    The following entries were present in the <buildSpec> section of the template created one but were missing from my project file.

    <buildCommand>

    <name>com.altera.sbtgui.project.makefileBuilder</name>

    <arguments>

    </arguments>

    </buildCommand>

    <buildCommand>

    <name>com.altera.sbtgui.project.makefileBuilder</name>

    <arguments>

    </arguments>

    </buildCommand>

    And yep there were 2 of them... I don't exactly know why.. another bug I guess..??

    And toward the end of the file there were these entries added to the <natures> section

    <nature>com.altera.sbtgui.project.SBTGUIAppNature</nature>

    <nature>com.altera.sbtgui.project.SBTGUIManagedNature</nature>

    So I added these entries into my .project file that the SBT's created during the import. restarted the SBT and guess what I now have the debug via nios ii hardware option and the drop down boxes are populated..

    So I guess the import feature to bring in a custom makefile project is broken and is not adding in these settings to tell the SBT that hey this is a nios application..

    Or something has changed in the way this import expects things to be within the makefile.

    We've been using these makefiles since version 8 of quartus and they are based on the altera ones..

    As a further test I tried editing my project file again and only included the:

    <nature>com.altera.sbtgui.project.SBTGUIAppNature</nature>

    line.

    This seemed to work without needing the other entries so I guess that is the critical one that is missing when doing the import..

    I will see how things go tomorrow on some actual hardware.
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Yay

    It all appears to be working, and finally multithreaded debugging is working correctly in the SBT's.

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

    Hi roujesky (http://www.alteraforum.com/forum/member.php?u=934)

    I just had the same thing occur with a project I was working on..

    Sort of an old problem that I remember in the past, Try right clicking on the project itself in the project explorer and doing a debug as -> nios II hardware. from there instead of from the main toolbar, it should then work.