Forum Discussion
Altera_Forum
Honored Contributor
20 years agoprob. in accessing UART
Hello ... i have written the following prog. to access my uart in my design it is named as "uart_0" in the SOPC builder.... while running this prog. in NIOSII IDE i was simulataneously running...
Altera_Forum
Honored Contributor
20 years ago --- Quote Start --- originally posted by smcnutt@Nov 17 2005, 11:36 AM hi ramesh_8051,
> can anyone plz tell what is wrong in my prog
you're writing through an uninitialized pointer (ch). <div class='quotetop'>quote
--- quote end ---
--- quote start ---
int main ()
{
int i,j,k=0;
- char *ch;
+ char cbuf[1];
+ char *ch = cbuf;
--- Quote End --- Regards, --Scott <div align='right'><{post_snapback}> (index.php?act=findpost&pid=11036)</div> [/b] --- Quote End --- hi Mr. WOLF i tried as u told but the same result comes.. do i need to take care of any extra UART regs or INTERRUPTS... i have gone thry the pdfs u asked to and proceeded accordingly.. they were very useful but i am not getting o/ps.. plz help..........