[RTEMS Project] #4903: TMS570 console driver, SCI frame error (baudrate calculation error)

RTEMS trac trac at rtems.org
Mon May 8 11:46:26 UTC 2023


#4903: TMS570 console driver, SCI frame error (baudrate calculation error)
-----------------------+--------------------
  Reporter:  Usha      |      Owner:  (none)
      Type:  defect    |     Status:  new
  Priority:  normal    |  Milestone:  6.1
 Component:  arch/arm  |    Version:  6
  Severity:  normal    |   Keywords:
Blocked By:            |   Blocking:
-----------------------+--------------------
 bsps/arm/tms570/console/tms570-sci.c: tms570_sci_set_attributes()
 {{{
 /* Apply baudrate to the hardware */
   baudrate *= 2 * 16;
   bauddiv = (BSP_PLL_OUT_CLOCK + baudrate / 2) / baudrate;
   ctx->regs->BRS = bauddiv? bauddiv - 1: 0;

 }}}

 replacing with 2 fixed frame error

 {{{
 ctx->regs->BRS = bauddiv? bauddiv - 2: 0;
 }}}

 there is issue in baudrate calculation

--
Ticket URL: <http://devel.rtems.org/ticket/4903>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list