Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12747 Discussions

Run/Debug with multiple processor

Altera_Forum
Honored Contributor II
1,365 Views

Hi 

 

I've made a system with 2x NIOSII/s cpu's with seperate (on-chip) RAM-modules. By now I'm just testing with the "small Hello world" application writing to the Jtag using the Nios II IDE. 

 

The application runs ok with both cpu's when I test them seperatly, but when I'm using the "NiosII multiprocessor collection" to Run/Debug it runs the application the first cpu, but when accessing the second cpu I'm getting the following error message: 

 

nios2-terminal: Unable to connect to JTAG UART because another application 

nios2-terminal: (nios2-terminal on 127.0.0.1) 

nios2-terminal: is using it (or is using something else which clashes). Please c 

lose 

nios2-terminal: the other application and try again. 

 

After this I have to reprogram the FPGA . 

 

I'm using: 

 

Quartus II 4.2 sp1 full web edition with Nios II evaluation kit 

Stratix 1s10es Evaluation board 

 

-Stian
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
465 Views

This sounds as though you have connected your JTAG UART to both processors. Please try disconnecting it from one of the processors and try again. 

 

If both processors want to send debug text to the host then you should instantiate two JTAG UARTS and connect each one to exactly one processor. 

 

Most of the peripherals shipped with the kitwon't work when connected to more than one processor (unless you are very careful) - for the JTAG UART the problem is that both processors will be interrupted but it will be random which one gets the received character. The other one will get a spurious interrupt if in interrupt driven mode. 

 

The exception to this is of course the 1.1 mutex component which is designed to be connected to multiple processors.
0 Kudos
Altera_Forum
Honored Contributor II
465 Views

Hello, 

 

I am getting the error message/warning : RMT ERROR: failed to get remote thread list, when I run the multi tutorial from Altera. 

 

Every other seesion I do get the processors to step through some code but I get no messages. 

 

Any tips? 

 

Thanks, 

 

-Baycool
0 Kudos
Altera_Forum
Honored Contributor II
465 Views

you should update to v5.1 qii and nios2.

0 Kudos
Altera_Forum
Honored Contributor II
465 Views

Hi Hippo, 

 

I am running Nios II 5.1 and Quartus II 5.1. Also, I updated QII with the recent patch that fixes the db problem that Altera had between 5.0 and 5.1 designs. I think this patch will be updated in Service Pack 1. 

 

The RMT error does not always happen , maybe every three attempts. However, I am never able to see the outputs of any CPU, even though I can step thorugh code for each. I suspect some GDB server problem or something along these lines, but I am not sure. I just started working with this tutorial.  

 

Any additional insight is much appreciated. 

 

Thanks, 

 

-Baycool
0 Kudos
Reply