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 agoHi ramesh_8051,
> can anyone plz tell what is wrong in my prog You're writing through an uninitialized pointer (ch). <div class='quotetop'>QUOTE </div> --- Quote Start --- int main () { int i,j,k=0; - char *ch; + char cbuf[1]; + char *ch = cbuf; [/b] --- Quote End --- Regards, --Scott