-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong baud generation for Serial on STM32F407VGT6 #77
Comments
Works like a charm :) |
Have the devs removed SERIAL_MOD? |
Replaced by SERIALn_PORT. |
Hi @terjeio, can you guide me how to change the USART default serial port to different USART pins? This is what I have modified in the code: #define SERIAL_PORT 2 // GPIOA: TX = 2, RX = 3 |
I'm using the STM32F4 Discovery which has the STM32F407VGT6 controller onboard and when I tried to connect a device on the USART3 (PD8/9, selected by SERIAL_MOD = 3) I only received corrupted data. So after digging a little more I noticed that in
STM32F4xx/Src/serial.c
Lines 216 to 229 in c5b8e6a
From the RM for STM32F405/415, STM32F407/417, STM32F427/437 and STM32F429/439:
Now my solution so far is a big #if mess, but I'm not sure if that's the best solution right now:
The text was updated successfully, but these errors were encountered: