For UART, are you sure the wiring of tx pin and GND pin are correct?
Besides, where is the device freeze while flashing?