cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
mrbietola
Scholar
Scholar
475 Views
Registered: ‎05-31-2012

No input from JTAG UART psu_coresight_0

Jump to solution

Hi, i followed the instruction to redirect STDIN and STDOUT on ps coresight.

when i open jtagterminal i'm able to see the output of my program in the terminal, but i can't send data to my program.

Is this expected?

STDIN and STDOUT are both set to psu_coresight_0 in the bsp setting

I use Vivado 2019.2 for Ubuntu 16.04

Tags (3)
0 Kudos
1 Solution

Accepted Solutions
mrbietola
Scholar
Scholar
431 Views
Registered: ‎05-31-2012

I found that in my program i was using functions from uartlite driver to receive characters, now since the driver is DCC coresight, i need to use getchar() instead. 

for writing to STDOUT i had no problem because i was using xil_printf() that maps automatically to the DCC coresight driver

Anyway getchar() is blocking so i think i need to use the low level DCC driver functions to make the call unblocking.

View solution in original post

0 Kudos
1 Reply
mrbietola
Scholar
Scholar
432 Views
Registered: ‎05-31-2012

I found that in my program i was using functions from uartlite driver to receive characters, now since the driver is DCC coresight, i need to use getchar() instead. 

for writing to STDOUT i had no problem because i was using xil_printf() that maps automatically to the DCC coresight driver

Anyway getchar() is blocking so i think i need to use the low level DCC driver functions to make the call unblocking.

View solution in original post

0 Kudos