Forum Discussion

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

Debug with nios2-elf-insight

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

1 Reply

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

    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.