Date: Thu, 19 Sep 2013 22:29:00 +0100 (BST) From: Richard Tobin <richard@inf.ed.ac.uk> To: Torfinn Ingolfsen <torfinn.ingolfsen@getmail.no>, freebsd-arm@freebsd.org Subject: Re: stm32flash under FreeBSD? Message-ID: <20130919212900.5A46A97324E@macavity.inf.ed.ac.uk> In-Reply-To: Torfinn Ingolfsen's message of Thu, 19 Sep 2013 22:44:24 %2B0200
next in thread | raw e-mail | index | archive | help
> To me (but I am no expert) Nor me, but... > it looks like it never reaches > serial_setup(), it fails after serrial_open(). The log shows open, fcntl, tcgettatr, tcgettatr, tcflush, tcsetattr, tcgettatr. The NLS stuff is inside perror(). serial_open() does open, fcntl, tcgettatr, tcgettatr. serial_setup() does tcflush, tcsetattr, tcgettatr, and then fails if the tcgettatr doesn't match the tcsetattr. Presumably that's what's happening. I would put some debugging printf()s in to see what the settings returned by the tcgettattr in serial_setup() are. -- Richard -- The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130919212900.5A46A97324E>