Associate II
May 31, 2018
Question
F030 UART framing error
- May 31, 2018
- 4 replies
- 1526 views
Posted on May 31, 2018 at 09:29
Hello,
I am trying to receive data from
https://learn.adafruit.com/adafruit-ultimate-gps?view=all
, it should output 9600bd. MCU is STM32F030K6T6. Rx/Tx are crossed as they should be, connected to USART1 (PA2/PA3). I am not using any kind of HAL, just direct register access.HCLK is HSE (8MHz crystal, 18pF capacitors). I am not using PLL.
I have tried multiple values for USART1->BRR:
- 8 000 000 / 9600
- 9600
- 0x0341
Nothing works. Anything I have tried resulted in framing error.
LEDBlink.c is my code. system_stm32f0xx.c is from project template(I am using VisualGDB).
Can someone explain me what should be in BRR? Or where I could have mistake?
Thanks in advance,
Stanislav
EDIT: With these settings, I was previously able to receive data from the GPS using another brand of MCU.
#stm32f0 #uart