Import Arduino Libraries
Have you seen this before?
http://www.stm32duino.com/
https://github.com/stm32duino
Otherwise,
If coming from Arduino with out a lot of "real c programming experience" to SW4STM32 and HAL, strap yourself in for one heck of a learning curve.
I do love having a real debugger though and it is worth it.