Low baud at STM32 and maple core
Posted: Sun Oct 04, 2020 9:32 pm
Hi,
I'm struggling to read an old sensor with uses a 300 baud rate serial communication with STM32.
Apparently, I need to change the RCC_PRESCALER_APB2 to read this low baud rate. However, I tried Serial2 and Serial3, tried APB2 and APB1 with different clock divisions (1 to 16X), and I couldn't read the data. My code line was: " rcc_set_prescaler(RCC_PRESCALER_APB2,RCC_APB2_HCLK_DIV_8); "
I also looked for a software serial library to use with maple, however, I couldn't make any work. I know that the STM32 has lots of hardware serials, so it seems a bit odd to use a software serial on it.
...However, I don't need any performance, so it would be ok for me to go with software serial.
I was wondering if anyone ever came across with this 'type' of situation.
I'm struggling to read an old sensor with uses a 300 baud rate serial communication with STM32.
Apparently, I need to change the RCC_PRESCALER_APB2 to read this low baud rate. However, I tried Serial2 and Serial3, tried APB2 and APB1 with different clock divisions (1 to 16X), and I couldn't read the data. My code line was: " rcc_set_prescaler(RCC_PRESCALER_APB2,RCC_APB2_HCLK_DIV_8); "
I also looked for a software serial library to use with maple, however, I couldn't make any work. I know that the STM32 has lots of hardware serials, so it seems a bit odd to use a software serial on it.

I was wondering if anyone ever came across with this 'type' of situation.
