cancel
Showing results for 
Search instead for 
Did you mean: 

USART - Problem -> write DR Register

aattenberger9
Associate II
Posted on October 01, 2009 at 10:35

USART - Problem -> write DR Register

4 REPLIES 4
aattenberger9
Associate II
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..

domen2
Associate III
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 II
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...

st3
Associate II
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...