[RTEMS Project] #2794: ARM TMS570 BSP: Serial port hangs when baudrate change initiates before all characters are sent
RTEMS trac
trac at rtems.org
Sun Oct 2 09:43:37 UTC 2016
#2794: ARM TMS570 BSP: Serial port hangs when baudrate change initiates before all
characters are sent
--------------------+-------------------
Reporter: ppisa | Owner:
Type: defect | Status: new
Priority: normal | Milestone: 4.11
Component: bsps | Version: 4.11
Severity: normal | Resolution:
Keywords: |
--------------------+-------------------
Comment (by ppisa):
Fixed in 94e3c8384ff2573877d61f387eb090e2e5e12aff
bsp/tms570: ensure that change of SCI baudrate is not applied in the
middle of character Tx.
The rtems_monitor_task() setups/updates termios attributes
of the opened TTY and if there is ongoing some other output
it leads to the stuck.
It would be better to use some termios API function which
would call drainOutput() in rtems/cpukit/libcsupport/src/termios.c.
But functionality is not accessible outside of core termios
implementation.
The loop waiting for last character to be sent has to be there anyway
because hardware does not provide Tx machine/shift register empty
interrupt.
Closes #2794
--
Ticket URL: <http://devel.rtems.org/ticket/2794#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project
More information about the bugs
mailing list