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++

Debug with nios2-elf-insight

Altera_Forum
Honored Contributor II
1,256 Views

Hi there, 

I'm having trouble getting the nios2-elf-insight debugger working with a Nios II system on custom hardware. At this stage I'm using the example code supplied with eCos. 

 

Commands:  

> nios2-gdb-server & 

> nios2-elf-insight twothreads 

 

So far so good. Problems arise when issuing the command 'target remote :2342' from the console and I get the following response: 

# [nios2-gdb-server] accepting gdb connection# [nios2-gdb-server] connecting to JTAG debug module# [nios2-gdb-server] CPU will be reset on connect# [nios2-gdb-server] using MDI port: "sld"# [nios2-gdb-server] MDI error FindAndOpenNode Lock Chain: AJI_BAD_HARDWARE.# -1 

05 (nios2-gdb-server_mdi.c line 161)# [nios2-gdb-server] failed to connect  

 

 

 

can anyone explain what AJI_BAD_HARDWARE means ? 

 

In the console window I get the following message:  

Error: Remote communication error: Connection reset by peer. 

 

Thanks
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
515 Views

It looks like you are running an old version of the tools. If you upgrade to the latest release (1.1), you should get a more informative error message which will hopefully help you diagnose the underlying problem.

0 Kudos
Reply