I manually copy the Components folder and the <board> folder from the STM32Cube firmware folder (something like C:\Users\%USERNAME%\STM32Cube\Repository\STM32Cube_FW_F7_V1.15.0\Drivers\BSP) to a new <projectroot>/Drivers/BSP folder and edit include paths accordingly. SW4STM32 compiles the .c file automatically.