UART 9600 and 14400 works but not 10400?

ChibiOS public support forum for topics related to the STMicroelectronics STM32 family of micro-controllers.

Moderators: RoccoMarco, barthess

User avatar
russian
Posts: 364
Joined: Mon Oct 29, 2012 3:17 am
Location: Jersey City, USA
Has thanked: 16 times
Been thanked: 14 times

UART 9600 and 14400 works but not 10400?

Postby russian » Mon Feb 20, 2023 12:05 am

i have 168MHz stm32f407 discovery codebase https://github.com/rusefi/rusefi/tree/master/firmware running cbibios 20. As a step towards K-line I am trying their weird 10400 baud and it does not work?!

9600 and 14400 works fine. I've already used a logic analyzer to confirm that my CP210x TTL dongle produces at least something at 10400

Do we expect 10400 to be supported by stm32? Do we expect 10400 to be supported by cbibios? What else could I be missing?
Attachments
10400.png
9600.png
http://rusefi.com/ - electronic fuel injection

User avatar
Giovanni
Site Admin
Posts: 14457
Joined: Wed May 27, 2009 8:48 am
Location: Salerno, Italy
Has thanked: 1076 times
Been thanked: 922 times
Contact:

Re: UART 9600 and 14400 works but not 10400?

Postby Giovanni » Mon Feb 20, 2023 7:43 am

Hi,

ChibiOS does nothing about the baud rate except setting the UART prescaler, is that rate obtainable starting from the input frequency? you may want to check that the register value is what you expect.

Giovanni


Return to “STM32 Support”

Who is online

Users browsing this forum: No registered users and 50 guests