In C 'a' is a character, while "a" is a string. fopen is expecting a pointer to a buffer, so you should use strings. Try with write("a", strlen("a"), 1, fp); If it still doesn't work, I'd suggest to put a signaltap probe on your tx and rx signals. That way you wo...