Forum Discussion

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

nios2-terminal can't connect!

i use BBII LPT1 download cable,in qII5.0,it work fine!

but when i use it in nios2 sdk shell,it don't work! here is the problem

$ nios2-terminal.exe
nios2-terminal: There are no JTAG UARTs available which match the --device and
nios2-terminal: --instance options you provided.

jtagconfig tool show:

$ jtagconfig
1) ByteBlasterII 
  020820DD   EP1C6

nios2-gdb-server show:

$ nios2-gdb-server
Using cable "ByteBlasterII ", device 1, instance 0x00
Pausing target processor: OK
Restarting target processor

why can't it work?

who can tell me something?

thanks!

2 Replies

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

    now,after i program the flash,i can open the nios2 terminal ,it show message:

    <div class='quotetop'>QUOTE </div>

    --- Quote Start ---

    [SOPC Builder]$ nios2-terminal

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

    nios2-terminal: "ByteBlasterII [LPT1]", device 1, instance 0

    nios2-terminal: Warning: The JTAG cable you are using is not supported for Nios

    nios2-terminal: II systems. You may experience intermittent JTAG communication

    nios2-terminal: failures with this cable. Please use a USB Blaster revision B

    nios2-terminal: cable or another supported cable. Please refer to the file

    nios2-terminal: errata.txt included in the Nios II development kit documents

    nios2-terminal: directory for more information.

    nios2-terminal: starting in terminal mode only (Control-C exits)[/b]

    --- Quote End ---

    but if shut down the power of my board,the nios2-terminal will terminate the connection. if i reboot my board,the nios2-terminal can&#39;t connect my board,

    so i must program flash and don&#39;t shut down my board, so start nios2 terminal connect success! but i receive nothing , if i use the ecosconfig tool to config the console device as /dev/uart(DB9), i can receive the data from the comm,so i can confirm the flash program has success! but why i don&#39;t use jtag uart!!!!
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    this whole work has three steps(i use ecos for nios2):

    1)nios2configtool config the jtag uart as console device;

    2)program_flash hello to my board,it succeed!

    3)open nios2 sdk shell and run nios2-terminal to receive the "hello world" message.

    when restart the board,i can&#39;t use nios2-terminal to connect to my custom board,is it the sopc custom problem?whether do i must custom the target board again?