Page 1 of 1
USART Init
Posted: Tue Dec 02, 2014 8:24 am
by DGW
Good day. When I initialize the USART STM32F205 on TxD signal appears not valid bytes (0s00 or 0xFF). How to solve this problem?
Re: USART Init
Posted: Tue Dec 02, 2014 8:44 am
by Giovanni
Probably it is a glitch on the TX pin when the mode is changed. Do the following:
1) Make sure that TX is programmed as output pust-pull in board.h and initialize it to 1.
2) In the main() start the serial driver using sdStart().
3) Change the pin mode to alternate(x) usin palSetPadMode().
The glitch is caused by the STM32 USART, for some reason the TX signal is set to zero when its clock is not yet enabled.
Giovanni
Re: USART Init
Posted: Tue Dec 02, 2014 9:36 am
by DGW
Did everything you wrote. I am using USART dryver (uartStart ()).