AnsweredAssumed Answered

F030 UART framing error

Question asked by Stanislav Husár on May 31, 2018
Latest reply on May 31, 2018 by Stanislav Husár



I am trying to receive data from this GPS, 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,



EDIT: With these settings, I was previously able to receive data from the GPS using another brand of MCU.