Forum Discussion
Altera_Forum
Honored Contributor
14 years agoThe problem with the if is that if it is executed before the DMA transfer ends, then you will exit your main function without displaying anything. That's why the original code had a while(). Besides I don't think it's a good idea to wait for the end of the tx operation before setting the tx channel. I don't know how the HAL driver is written, but there is probably nothing happening in the DMA until both the transmit and receive channels have been configured.
You should have a look at the turorials to learn how to use SignalTap. It is relatively easy to use and is an essential debugging tool in those kind of situations.