TIM1 and TIM8 are on APB2 (72MHz max), other TIMs are on APB1 (36MHz max). Using PIOS_SYSCLK here seems to be wrong.