UART initialisation is incorrect - Raspberry Pi Forums
as can see on attached oscilogram - here problem @ initialisation(exactly @ open) /marked red ellipse/ stage of rpi uart - it's trigger tx state lead many communication issues.
- no idea ... possible kernel code of uart initialisation incorrect
code: select all
#include <stdio.h> #include <string.h> #include <unistd.h> #include <fcntl.h> #include <errno.h> #include <termios.h> int main(int argc, char ** argv) { int fd; fd = open("/dev/ttyama0", o_rdwr | o_noctty | o_ndelay); fcntl(fd, f_setfl, fndelay); int n = write(fd,"aaa",3); close(fd); return 0; }
raspberrypi
Comments
Post a Comment