We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Noticed the K-Line and L-Line baud rate is 2x too high on a white panda. It should be 10400, but looks like double that on the scope. (see baud rate init code: https://github.com/commaai/panda/blob/master/board/main.c#L383).
uart_set_baud is probably assuming the wrong APB/clock to compute the register settings for UART5 and USART3. https://github.com/commaai/panda/blob/master/board/stm32fx/lluart.h#L191
uart_set_baud
UART5
USART3
Unfortunately #1343 makes it a bit annoying to test a fix. It's on my list to take a stab at that.
The text was updated successfully, but these errors were encountered:
https://github.com/commaai/panda/blob/95c89b8045e9a5731879ae87340f4cd4af7efa20/board/stm32fx/lluart.h#L93C24-L93C33
24000000U needs to be changed to APB1_FREQ .
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Noticed the K-Line and L-Line baud rate is 2x too high on a white panda. It should be 10400, but looks like double that on the scope. (see baud rate init code: https://github.com/commaai/panda/blob/master/board/main.c#L383).
uart_set_baud
is probably assuming the wrong APB/clock to compute the register settings forUART5
andUSART3
. https://github.com/commaai/panda/blob/master/board/stm32fx/lluart.h#L191Unfortunately #1343 makes it a bit annoying to test a fix. It's on my list to take a stab at that.
The text was updated successfully, but these errors were encountered: