Altera_Forum
Honored Contributor
19 years agoUART - problem
hi i am having problems in wrting a C function that can read data streams from the UART and returning it to a buffer . can some body help me out with this.. bye
--- quote start ---
<!--quotebegin-legendbb@Nov 3 2006, 07:15 AM assume your system is based on nios ii:
>map your uart into stdin and stdout
>then check with stdio command then you can verify hardware implementation.
after doing that you can play with hal driver.
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=19145)
--- quote end ---
--- Quote End --- Hi ledendbb, Could you please elaborate how to map UART into stdin and stdout so that stdio command can be used? Thanks, yjp <div align='right'><{post_snapback}> (index.php?act=findpost&pid=19195)</div> [/b] --- Quote End --- Just take a look at the System Library properties page and you'll see the option there. Alternately, you can modify the system.stf file (in the syslib project's top-level directory) to point stdin/stdout/stderr to whichever device you'd like to use. The system.stf is mostly used for holding persistence for GUI settings on the syslib properties page. Cheers, - slacker