Dump the input data to file
Correct the wrong word in comment, UART --> USART
Save USART input to qemu.log
Check result from qemu log and gdb dump file
Check result while make gdbauto