CubeMX does not handle IO alternate functions and peripherals
Hello,
I have a project where I use a L010K8 (LQFP32 package).
Let say that you want to keep PA13 and PA14 for SWD debugging and use PA15 as USART2 Tx.
Now PA15 AF4 is USART2 Rx, but this can be swapped in USARTx->CR2.
First point is that Rx/Tx swap is not reflected in the pinout view.
Second and more important issue, USART2 is disabled as long as SWD is enabled. In real life it is not a problem to have USART2 on PA15 and SWD on PA13, PA14. I believe this is due to the fact that USART is expected to have both Rx and Tx pins.
Please ST, CubeMX should handle peripherals on pin by pin basis.
Last thing, with the default MSI clock of 2,1MHz, we can't set a baud rate above 115200 bps. This is because BRR must have a value higher than 16. CubeMX only reports the maximum baud rate we can achieve without explaining why. I believe it would be helpful to explain why we can't achieve higher baud rate.
Using STM32CubeMX 6.0.1, L0 pack 1.11.2
Best regards.
