I am sure you have managed to use F103.
In my case (wanted to use F411 with the MEMs sensor board) I simply:
-opened the example for F401 (the one with Terminal Logging) in Keil
-replaced the F401 device with F411 in Options->Device tab
-In Options->C/C++ tab enter the 'USE_HAL_DRIVER,STM32F411xE,USE_STM32F4XX_NUCLEO,VECT_TAB_SRAM, RAM_MODE, REMAP' - notice the only change is the F411-related item
I wonder if there is other way of doing it - perfectly how to add BSP to CubeMX generated project, not as in my case stupid changes in original project.
Retrieving data ...