Programming the usart was about the very first thing I did with STM32 and CubeMX and I immediately ran into a CubeMX bug. I had to setup a communication using 8 databits, even parity, one stopbit and couldn't get it to work. After a bit of frustratio...
Not sure if anyone is still looking for examples of the new HAL CAN driver like I was just this week. The in my opinion most useful yet simple example can be found here:https://github.com/timsonater/stm32-CAN-bus-example-HAL-API