Forum Discussion
Altera_Forum
Honored Contributor
10 years agoNIOS UART and esp 8266
Hi all, I'm trying to make an interface between an FPGA and an esp8266 with the NIOS II UART Core, here you found my transmit and receive functions
void uart_send_data(unsigned char char1)...
Altera_Forum
Honored Contributor
10 years agoThe standard Altera UART core has no TX FIFO; then you need to check the tx buffer ready flag before sending each char.
Moreover you have a bug in the receive function, too: you need to update the status var at each cycle of the while loop, otherwise your code will stay indefinitely in the loop until j gets out of control and cause a memory corruption.