-1

I got a problem. I have 2 STM32F407G-DISC1(MB997D) boards and I'm trying to configure it to blink user leds once at second with external oscillator. I configured timer(tim3) to work with external oscillator(ph0, ph1) in STM32CubeMx, but when I flash compiled code to the board and reset it then nothing happens. Same thing for both boards. What can be reason of this issue? Pictures below show my cubeMX configuaration:

Pinout Clock configuration

And code just toggles the leds.

void TIM3_IRQHandler(void)

    {
      /* USER CODE BEGIN TIM3_IRQn 0 */

      /* USER CODE END TIM3_IRQn 0 */
      HAL_TIM_IRQHandler(&htim3);
      /* USER CODE BEGIN TIM3_IRQn 1 */
        HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_12);
        HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_13);
        HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_14);
        HAL_GPIO_TogglePin(GPIOD, GPIO_PIN_15);
      /* USER CODE END TIM3_IRQn 1 */
    }
Vladimir
  • 11
  • 5

1 Answers1

0

Problem is solved. It is bug at stm32cubeMX. Bugreport you can see here.

Vladimir
  • 11
  • 5