Associate II
October 28, 2021
Question
STM32F4 Discovery Board: TIM6, LED Blink problem with Cube IDE (Code Generation)
- October 28, 2021
- 5 replies
- 1993 views
Hello,
I'm trying to do basic led blink with STM32F4 Dicovery Board with timer6 using Cube IDE.
As you see in picture 84 Mhz clock divided by 8400 and counts to 10000 so i aimed 1 second toggle.
Also interrupt option of timer 6 is enabled which dosen't seem in picture.
Also Led is in GPIO_Output mode.
Here is my interrupt fuciton:
/**
* @brief This function handles TIM6 global interrupt, DAC1 and DAC2 underrun error interrupts.
*/
void TIM6_DAC_IRQHandler(void)
{
/* USER CODE BEGIN TIM6_DAC_IRQn 0 */
/* USER CODE END TIM6_DAC_IRQn 0 */
HAL_TIM_IRQHandler(&htim6);
/* USER CODE BEGIN TIM6_DAC_IRQn 1 */
HAL_GPIO_TogglePin(LD6_GPIO_Port, LD6_Pin);
/* USER CODE END TIM6_DAC_IRQn 1 */
}And i did nothin at main.c
Any suggestion ?
