Skip to main content
aattenberger9
Associate
October 1, 2009
Question

USART - Problem -> write DR Register

  • October 1, 2009
  • 4 replies
  • 847 views
Posted on October 01, 2009 at 10:35

USART - Problem -> write DR Register

    This topic has been closed for replies.

    4 replies

    aattenberger9
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:25

    ... now it works!

    The problem was the Compiler. I use GCC verion 3.4.1, I set the optmizing level from 0 to level 2 and it works...

    domen2
    Associate II
    May 17, 2011
    Posted on May 17, 2011 at 13:25

    Clock, baudrate, status register, pin remapping, see anything on oscilloscope?

    These are the things we can't do for you, and probably can't help without the info.

    aattenberger9
    Associate
    May 17, 2011
    Posted on May 17, 2011 at 13:25

    Hello together,

    I have a problem to use the USART - Port of my STM3210C-EVAL Board.

    To start the USART the first time I use the ''USART_Polling'' example from the stm32f10x stdperiph library. But nothing happend the DR - Register was written..

    st3
    Associate III
    May 17, 2011
    Posted on May 17, 2011 at 13:25

    Quote:

    The problem was the Compiler.

    That's rather a serious accusation - Are you sure?

    In most cases where changing the optimisation level apparently ''fixes'' a bug, it is the source code that is flawed - and the most common flaw is probably failure to use the volatile keyword correctly...