Here is a 4-bit LCD library for the STM32 that I based off of the LCD4BitLibrary for Arduino. It’s lightweight, but it also incorporates Arduino’s Print class.
STM32 Project template for HD devices
Here is a STM32 project template that I based off of http://www.micromouseonline.com/blog/2009/10/19/another-stm32-project-template.