Skip to main content
November 30, 2016
Question

Character Match in UART setting problem

  • November 30, 2016
  • 2 replies
  • 887 views
Posted on November 30, 2016 at 19:45

Hi,

I am trying to set a character match interrupt on Uart2 of stm32L4 (discovery board).

all things work fine but it just seems to have a bug, in page 1229 of STM32L4X6 datasheet it is written:

''This bit field can only be written when reception is disabled (RE = 0)

or

the USART is disabled(UE=0)''

before i write CR2[32:24] for the Character, i Disable RE, but CR2 doesn't get new value !

it only gets new Value when i Disable UE !

means i have to disable whole uart to be able to write on CR2 character match side.

is it a bug in MCU or i'm doing something wrong ... ?!
    This topic has been closed for replies.

    2 replies

    November 30, 2016
    Posted on November 30, 2016 at 19:59

    ST Technical Moderator
    December 1, 2016
    Posted on December 01, 2016 at 16:32

    Hello,

    Check in the Errata sheet if you have the same conditions as described in the device limitations!

    Regards

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks