DMA0SA and DMA0DA must contain addresses . Writing "UCA0RXBUF" gives you the current value of that register. What happens is that the DMA copies one byte from address 0 to address 0. Use "&UCA0RXBUF" instead. Same applies to "flag_ex".
↧