In the previous article I posted some code to use the STM32 with a TLC5940. Now I improved the library a bit and put it on github. I suggest you use the code there, the documentation is far better. https://github.com/bkarl/tlc5940stm32