STM32H7 Auto Baud Rate Detection #1106
Replies: 3 comments 3 replies
-
No, but it sounds useful so I would want to merge a PR with it. You could re-use the current API by passing a special |
Beta Was this translation helpful? Give feedback.
-
Do any other MCUs you've worked with have such a built-in feature? I haven't run into this before. In my oddball situation, it's nice that the feature supports the exact same technique that the factory boot loader uses -- receipt of a 0x7F to measure the baud rate, which isn't completely surprising since ST made both. There's a couple of other patterns as well that the USART auto baud detection circuitry can key on, user configurable via the registers. I'm not clear on how useful this is in real life, because in most cases you want a clearly defined baud rate. In the case of working on this boot loader, I've experienced a wide range of maximum baud rates that work reliably, and I've never been able to pin down exactly why. And with a boot loader specifically, I can see why automatic vs manual baud rate could be helpful -- on the one hand, you can't change it manually if the MCU is erased, but on the other hand, you're potentially sending many hundreds of kilobytes of data back and forth and you'd want to use as fast a speed as possible. |
Beta Was this translation helpful? Give feedback.
-
Somewhat related to this, how do you set baud rate at runtime? I thought I saw a discussion of that in the documentation before, but I can't find it now. I will be doing auto baud later, but for now I want the ability to specify it. |
Beta Was this translation helpful? Give feedback.
-
Going against the grain of the MODM UART system, I noticed the STM32H7's UARTs have auto baud rate detection. This isn't something I would normally use, this is exactly how the factory boot loader (which I am mimicking) works. Short of bypassing MODM completely, is there any support planned for enabling this feature for those MCUs which have it?
Beta Was this translation helpful? Give feedback.
All reactions