Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12652 Discussions

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

GK4
Beginner
877 Views

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.

 

0 Kudos
3 Replies
Fawaz_Al-Jubori
Employee
658 Views

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

0 Kudos
GK4
Beginner
658 Views

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.

0 Kudos
Fawaz_Al-Jubori
Employee
658 Views

hello,

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

Thanks

0 Kudos
Reply