Hi, I think CubeMX is supposed to generate code to initialise the pins with their alternate function mode & open drain etc, but for some reason it isn't doing it (for me either). The MX_GPIO_Init() function should contain something like (in my case)...