Forum Discussion

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

Problems debugging simple program in NIOS II IDE

Hardware and software tools:

NIOS II IDE 10.1 ("Legacy")

Quartus II 10.1

Device:Arria II GX - EP2AGX260FF35I5N

I am using software tools and hardware as described and a custom board.When i am trying to debug through NIOS II 10.1 IDE ("Legacy") ,the simplest debug there is -Hello World ("Hello from NIOS II),i get connection message in the console and i see that USB Blaster is connected (Blue LED is on)- (i am using jtag uart),but i never get the message "Hello from NIOS II" in the console.If i try to program another simple program such as blinking LEDs it doesn't run/debug either.The problem is probably not in the board ,because at my work colleague's computer he is able to run/debug this simple programs without any problems.

11 Replies

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

    Dear cris72

    My fpga is EP3C120f484 and EPCS64.using the nios 9.0 and quartus 9.0

    Now I am meeting some problems with nios debug.

    the problem is in the nios debug window,the console print,here is my information:

    Nios ii download output: Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

    Processor is already paused

    Reading System ID at address 0x00002C28: verified

    Initializing CPU cache (if present)

    OK

    Downloading 00040120 ( 0%)

    Downloading 00050000 (59%)

    Downloaded 108KB in 1.8s (60.0KB/s)

    Verifying 00040120 ( 0%)

    Verifying 00050000 (59%)

    Verified OK

    Leaving target processor paused

    nios ii terminal window:

    nios2-terminal: connected to hardware target using JTAG UART on cable

    nios2-terminal: "USB-Blaster [USB-0]", device 1, instance 0

    nios2-terminal: (Use the IDE stop button or Ctrl-C to terminate)

    Running...

    INFO : TSE MAC 0 found at address 0x00002800

    INFO : PHY National DP83640 found at PHY address 0x01 of MAC Group[0]

    INFO : PHY[0.0] - Automatically mapped to tse_mac_device[0]

    INFO : PHY[0.0] - Restart Auto-Negotiation, checking PHY link...

    INFO : PHY[0.0] - Auto-Negotiation PASSED

    INFO : PHY[0.0] - Checking link...

    INFO : PHY[0.0] - Link established

    INFO : PHY[0.0] - Speed = 100, Duplex = Full

    Waiting for link...OK

    IP address: 219.245.66.185

    IP netmask: 255.255.255.0

    IP gateway: 219.245.66.254

    begin to send...

    nios2-gdb-server output

    Using cable "USB-Blaster [USB-0]", device 1, instance 0x00

    Processor is already paused

    Reading System ID at address 0x00002C28: verified

    Listening on port 1787 for connection from GDB: 59s58saccepted

    Exiting due to 'k' command from GDB

    Leaving target processor paused

    nios2-elf-gdb

    mi_cmd_stack_list_frames: No stack.

    No symbol "new" in current context.

    Current language: auto; currently asm

    Current language: auto; currently c

    kill

    how is the problem solved,as I follow the ways with the website,it doesnot work!

    here is the website:http://www.alteraforum.com/forum/showthread.php?t=28506

    By the way,are you chinese?

    waiting for your reply ,thank you!