Posted on October 29, 2015 at 23:45
I'm currently experimenting with writing a driver for USART1 at the register level for the STM32F4 Discovery board. I've followed the initialization procedure on page 963 of RM0090; however, when I connect to ...
Posted on November 02, 2015 at 19:31I found the issue. It was caused by using the wrong clock to set up the BRR register. It should be USART1->BRR = APB2CLK / 9600; However, digging through the HAL library code, I found a handy macro that I think...
Posted on October 30, 2015 at 01:14Thanks! I've changed my USART1 pins over to PB6 and PB7 and updated the code in my first post accordingly. (I wish ST would have made it more obvious that those pins were used by an LED and a USB pin.) However, ...