Ok for those who use crossworks, even those who dont can simply port this over to something else. Here is my complete test project for a Character LCD (generic 44780). It includes the project files for Crossworks for ARM. I have my CMSIS in C:\stm32f4xx so you may have to alter the file locations to your CMSIS folder.
[DOWNLOAD]

