--- Quote Start ---
originally posted by pfab@Nov 21 2005, 12:02 PM
i have tested your program and it works fine.
please give some more information about the hardware you are runing on and the project properties.
some things you could try in the meanwhile:
1. check the system.h file for the uart baud rate and make sure it matches the terminals baud rate.
2. have a clean start for your project coming from the "hello_world" example provided by altera. just replace the main() function with your code and only include stdio.h and unistd.h, these are the only header files you will need.
hope this will help,
--wolf
<div align='right'><{post_snapback}> (index.php?act=findpost&pid=11071)
--- quote end ---
--- Quote End ---
hello mr.Wolf..
thanks for taking pains to execute my prog..
i am really happy to know that my prog. works but
i wonder why it is not the same with my setup....
i am using
->NIOSII IDE to run the code in CYCLONE KIT
->using the project "ACCESSING MEMORY" present in SLS corporation site
->it didnot have any uart component in it and so i added a component to it
and gave pin 42(UART IN) and PIN 47(UART OUT) in the .bdf document...
->i haven't kept the option in IDE that uart to be my stdout and stdin..
->IN the PC i am running a c-prog which continuously transmits a character using the command -
"outportb(<COM port no of pc>,'t')";(i gave the correct port no. i have chkeed it also the data was coming....)
-> i have chked that the baud rate is 11200bps in both pc and uart setup...
plz help me out....