Suggest that you first configure PA8 as GPIO and toggle. Armed with that success I suspect that you have missed the set-up/enable of some clock.
Look carefully @ the newest TIM1 examples - most I've tried have worked. Check that you have newest version of Keil & that it ''plays'' nicely w/ your code library. Good luck.
I'm trying to get a 4KHz square wave out of PA8 using TIM1 in PWM mode. I've tried the various keil and st examples based on timer 3 but I having trouble gettting this working on TIM1. Is there something extra I've got to configure on timer 1? Could anyone post some source for this? Thanks