To enable PB3, PB4 and PA15 pins you have to disable JTAG: GPIO_PinRemapConfig(GPIO_Remap_SWJ_JTAGDisable, ENABLE);