Forum Discussion

YSuzu21's avatar
YSuzu21
Icon for New Contributor rankNew Contributor
6 years ago
Solved

About debugging using JTAGUART

Write a NIOS/e program to QSPI memory.

I would like to debug using JTAGUART with NIOS II SBT, but is it possible?

Because the program exceeds the capacity of on-chip memory The program is written to the QSPI memory.

  • Hi Yasuyuki,

    Here is my answer,

    When running and debugging code using the Nios II IDE, you can automatically connect to the JTAG UART of your system by following these steps:

    1. Open the Run/Debug configuration (Go to the Run menu, choose Run/Debug and select the run/debug configuration you are using)
    2. Select the Target Connection tab
    3. Choose the JTAG UART in the Nios II Terminal communication device list box

    If you want to access the JTAG UART on the target Nios II system outside of the Nios II IDE, open a Nios II SDK Shell and type the following command:

    nios2-teminal

    If you get the message "You have multiple JTAG cables available", type in the following to get a list of the cables available:

    jtagconfig

    Note the number of the cable that you want to use, and type the following:

    nios2-terminal -- cable=<cable number>

    Let me know if this works for your issue.

    Best regards,

    Isaac.

3 Replies

  • Hi Yasuyuki,

    Here is my answer,

    When running and debugging code using the Nios II IDE, you can automatically connect to the JTAG UART of your system by following these steps:

    1. Open the Run/Debug configuration (Go to the Run menu, choose Run/Debug and select the run/debug configuration you are using)
    2. Select the Target Connection tab
    3. Choose the JTAG UART in the Nios II Terminal communication device list box

    If you want to access the JTAG UART on the target Nios II system outside of the Nios II IDE, open a Nios II SDK Shell and type the following command:

    nios2-teminal

    If you get the message "You have multiple JTAG cables available", type in the following to get a list of the cables available:

    jtagconfig

    Note the number of the cable that you want to use, and type the following:

    nios2-terminal -- cable=<cable number>

    Let me know if this works for your issue.

    Best regards,

    Isaac.