Forum Discussion

GK4's avatar
GK4
Icon for New Contributor rankNew Contributor
6 years ago

Get stdout from Nios (JTAG) to custom application on a PC

Hello,

I am trying to read stdouts from my Nios from JTAG-UART with the JTAG UART Intel FPGA IP in the system console (is this the right place?).

That's because I want to be able to read the output and analyse it with my own software (stdin and out from the console to my application).

With the GDB debugger I am able to read and write, but I need to be able to hot swap the pc where the application is running.

I read some forum entries:

https://forums.intel.com/s/feed/0D50P00003yyTk4SAE

https://forums.intel.com/s/feed/0D50P000045gccwSAA

But I wasn't able to create a "listener".

I tried to fiddle manually with the GDB server:

https://www.intel.com/content/dam/www/programmable/us/en/pdfs/literature/hb/nios2/edh_ed51004.pdf

But I wasn't able to find the correct commands/configuration to read the stdout from the slave.

Any help would be appreciated.

3 Replies

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    Hello,

    We dont have such solution.

    You can only change stdin/stdout if you have a real UART port in your board. In this case, you can port stdin/stdout to that UART, and this UART is connected to PC where you can run your custom application and read the data.

    Thanks

    • GK4's avatar
      GK4
      Icon for New Contributor rankNew Contributor

      Hello,

      Thank you for the information.

      Is this planned? Or do we have to expect that there will never be a some sort of API to communicate with custom software over JTAG/UART?

      I mean there was something like the jtag-atlantic DLL.

  • FawazJ_Altera's avatar
    FawazJ_Altera
    Icon for Frequent Contributor rankFrequent Contributor

    hello,

    I have checked with our internal team, there is no current plan for that.

    Thanks