OS_ISR_RxErr() -> mistakes in source code?

This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

  • OS_ISR_RxErr() -> mistakes in source code?

    Hello,

    System configuration
    embOS: embOS V3.82n for Renesas SH2A (sources)
    MCU: SH7216
    Application: based on start project (Start_SH7216) from SEGGER

    I think i found some mistakes in embOS source code in UART for embOSView Rx error interrupt handler (_IsrUartErrHandler).
    The ISR check the Serial Status Register (SCSSR) for errorflags and clear them. But ISR checks bit 7, 4, 3, 2 and 0 of SCSSR, which are wrong flags (see SH7216 datasheet page 767).

    Additionaly some other mistake:
    In OS_COM_Init() function are used wrong stand by register for activating UART module (STBCR4). The correct register is STBCR5 (see SH7216 datasheet page 1613). This mistake has no effect in start project, because the UART are already activated in reset routine. But if you use your own reset routine, may be embOSView doesn't work...
  • Hello,

    you are right, there was a mistake, I fixed the uart routines.
    I am sorry for any inconvenience caused by this.

    Regards,
    Til
    Please read the forum rules before posting.

    Keep in mind, this is *not* a support forum.
    Our engineers will try to answer your questions between their projects if possible but this can be delayed by longer periods of time.
    Should you be entitled to support you can contact us via our support system: segger.com/ticket/

    Or you can contact us via e-mail.