You have a typo in your code. You write RCC->AHB1ENR instead of RCC->APB1ENR , so the TIM6 clock is not enabled.
確定! 回上一頁