Forum Discussion

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

how to send a file to fpga through jtag uart?

hi,everyone! i want to sent the file (for exmple a.dat)of host through the jtag uart to the sdram,which in up3 board.i have get some exmples as for the message sent by uart to host,not the file.

but,how can i to cope with it?can someone give the source code for it?thank you !

12 Replies

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

    Or a combination of the two...

    cat <filename> | nios2-terminal >& terminal.log

    You could write more elaborate scripts/code using pipes going into and out of nios2-terminal.

    The above is OK if batch style IO is acceptable.

    Do you know if it is possible to use the IO redirection tricks above to allow an existing windows terminal app to talk (tx and rx) over the jtag uart?

    The all the redirection examples I have seen, the data flow is one-way only.

    I am thinking that you would need something like a virtual serial port.