What about the Nios2?

Discussions related to embedded firmware, driver, and user mode application software development
Jordaw
Posts: 8
Joined: Thu Mar 17, 2016 8:10 am

Re: What about the Nios2?

Post by Jordaw »

Hello,

I try to work on the Nios 2, so i follow the instruction on the readme, and find this topic who explain in details the steps to have a debug session on eclipse.
For me that work until the step (12). Now it's impossible for me launching the debug session i think because of "path" problems, but i can't solves it. In the make file i've already verify than this line is present: QUARTUS_PROJECT_DIR := ../../../../../../quartus/work/output_files, i try to change this line but no way

In debug configuration, this warning appear:

WARNING: Unable to locate SOF or JDI file in Quartus project directory "/home/jordi/bladeRF/hdl/fpga/ip/altera/nios_system/software/bladeRF_nios". Processor name might not be shown correctly in selection dialog but the functionality is not affected. Please make sure "QUARTUS_PROJECT_DIR" is set correctly in Makefile.

So i can't launch a debug session because of that so>>>> "Lauching new configuration has encountered a problem"

the error message is:
Error reported by System Console
java.util.concurrent.ExecutionException: java.lang.Exception: design_load: /home/jordi/bladeRF/hdl/fpga/ip/altera/nios_system/software/bladeRF_nios does not contain any Quartus project files
invoked from within
"design_load {/home/jordi/bladeRF/hdl/fpga/ip/altera/nios_system/software/bladeRF_nios}"
invoked from within
"interp eval $slave {
design_load {/home/jordi/bladeRF/hdl/fpga/ip/altera/nios_system/software/bladeRF_nios}

}"



If someone have an idea :)

Jordaw!
Jordaw
Posts: 8
Joined: Thu Mar 17, 2016 8:10 am

Re: What about the Nios2?

Post by Jordaw »

I'm not very sure understand you :s, i launch Eclipse by this way. is it ok?

Code: Select all

jordi@jordi-Aspire-5742Z:~/altera/15.0/nios2eds$ eclipse-nios2
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
jordi@jordi-Aspire-5742Z:~/altera/15.0/nios2eds$ ./nios2_command_shell.sh
------------------------------------------------
Altera Nios2 Command Shell [GCC 4]

Version 15.0, Build 145
------------------------------------------------
jordi@jordi-Aspire-5742Z:~/altera/15.0/nios2eds$ cd
jordi@jordi-Aspire-5742Z:~$ eclipse-nios2
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0

I don't understand what you mean by clean and build the project from the command line? if you can explain me ...

So, after lauching eclipse by this way, i follow all the step you describe on the topic, but impossible launching debug session cause of "bladeRF_nios does not contain any Quartus project files"

Jordaw.
Jordaw
Posts: 8
Joined: Thu Mar 17, 2016 8:10 am

Re: What about the Nios2?

Post by Jordaw »

Solving my problem, rebuilding with" ./build_bladerf.sh -s 40 -r hosted ". An error probably occured the first time, but always impossible for me launching a debug session with case "connect JTAG UART to console", this way the message is" Error occured while communicating with System Console Unable to connect to JTAG UART. The device might be occupied by another application.".
xor
Posts: 3
Joined: Wed Mar 25, 2015 11:01 am

Re: What about the Nios2?

Post by xor »

Hi,

I decided to keep posting in this thread because I have an issue with Terasic USB Blaster and Eclipse since I cannot create a debug target.
Being more specific, this is my setup:
Ubuntu 14.04 64 bit, Quartus II 15.0.

running jtagd and jtagconfig all seems working fine, the USB blaster is successfully recognised so I started following the guide section "Build and Debug".
I completed all the steps successfully until I got stuck at this point: when i click "Browse" under "Connections-->Processor" I get:: <<Unable to connect to JTAG Server. Please kill and restart System Console from Eclipse menu: Nios II->System Console.>>
Then I followed the instruction and started the System Console. USB Blaster is correctly detected and recognized from the console under "devices" in system explorer.
Now coming back to debug configurations and clicking again "browse" I got the following error popping up on the NIOS II console: <<design_load: /home/born/bladeRF-master/hdl/fpga/ip/altera/nios_system/software/bladeRF_nios does not contain any Quartus project files>>.
The result is that the USB blaster isn't recognized under the debug configuration.

Please help me understand how to solve this issue.

Thanks

xor
Konstantin
Posts: 22
Joined: Sun Oct 18, 2015 11:43 am

Re: What about the Nios2?

Post by Konstantin »

Hello,
I have one question about LMS initiliazation in the NIOS II.
I have qpsk modulator, my pursopose is just plug in bladerf and transmit signals. As I understood for this I have to modify NIOS II code.
I found that
https://github.com/Nuand/bladeRF/blob/m ... riv.c#L138
this is the device initialization
after this I think I need put it before the big loop in the nios and rebuild
https://github.com/Nuand/bladeRF/blob/m ... ios.c#L160
place for device initialization code

Do you have any ideas how to implement it?
Post Reply